Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Êý¾Ý¿âÁ¬½Ó×Ö·û´®´óÈ«(MySQL)


 Êý¾Ý¿âÁ¬½Ó×Ö·û´®´óÈ«(MySQL)   
 
 MyODBC 
 MyODBC 2.50 Local database:
"Driver={mySQL};Server=localhost;Option=16834;Database=mydatabase;"
MyODBC 2.50 Remote database:
"Driver={mySQL};Server=data.domain.com;Port=3306;Option=131072;Stmt=;Database=my-database;Uid=username;Pwd=password;"
MyODBC 3.51 Local database:
"DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3;"
MyODBC 3.51 Remote database:
"DRIVER={MySQL ODBC 3.51 Driver};SERVER=data.domain.com;PORT=3306;DATABASE=myDatabase; USER=myUsername;PASSWORD=myPassword;OPTION=3;"
OLE DB, OleDbConnection (.NET)
Standard:
"Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;"
 Connector/Net 1.0 (.NET)
 Standard:
"Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;"
Download the driver at MySQL Developer Zone.
 Specifying port:
"Server=Server;Port=1234;Database=Test;Uid=UserName;Pwd=asdasd;"
Default port is 3306. Enter value -1 to use a named pipe connection.
 Declare the MySqlClient connection:
C#:
using MySql.Data.MySqlClient;
MySqlConnection oMySqlConn = new MySqlConnection();
oMySqlConn.ConnectionString = "Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;";
oMySqlConn.Open();
VB.NET:
Imports MySql.Data.MySqlClient
Dim oMySqlConn As MySqlConnection = New MySqlConnection()
oMySqlConn.ConnectionString = "Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;"
oMySqlConn.Open()
 MySqlConnection (.NET)
eInfoDesigns.dbProvider:
"Data Source=server;Database=mydb;User ID=username;Password=pwd;Command Logging=false"
This one is used with eInfoDesigns dbProvider, an add-on to .NET
 Declare the MySqlConnection:
C#:
using eInfoDesigns.dbProvider.MySqlClient;
MySqlConnection oMySqlConn = new MySqlConnection();
oMySqlConn.ConnectionString = "my connection string";
oMySqlConn.Open();
VB.NET:
Imports eInfoDesigns.dbProvider.MySqlCl


Ïà¹ØÎĵµ£º

Mysqlµ¼³öÃüÁîÎļþºÍÃüÁîÎļþµ¼Èë

1)ÃüÁîµ¼³ö
ÔÚÃüÁîÌáʾ·ûģʽÏ£º
mysqldump -u  Óû§ -p Êý¾Ý¿â ±íÃû>ÎļþÃû.sql
eg:
mysqldump -u root -p mysql tbcustomerid>a.sql
µ¼³öµÄÃüÁîÎļþÔÚµ±Ç°ÃüÁîÌáʾ·û·¾¶Ï¡£
Èç¹ûÒªµ¼³öÕû¸öÊý¾Ý¿âÃüÁîΪ£º
mysqldump -u  Óû§ -p Êý¾Ý¿â ±íÃû>ÎļþÃû.sql
2£©ÃüÁîÎļþµ¼Èë
   ¢Ùµ ......

×Ô¶¯ÐÞ¸´MySQLµÄmyisam±í

      ³£ÓÃMySQLµÄͯЬ¶¼ÖªµÀÕâ¸ömyisamÀàÐÍµÄ±í¼«ÈÝÒ×Ë𻵣¬¶àÊýÈË¿ÉÄܶ¼ÊÇÓÃmyisamchkÃüÁîÀ´È˹¤ÐÞ¸´£¬ÏÂÃæ½éÉÜÒ»ÖÖ×Ô¶¯ÐÞ¸´myisamµÄ·½·¨£¬Ò²ÊÇÎÒÉÏÎç¸ÕѧµÄ£¬¹²Í¬½ø²½£¬ºÇºÇ~
      ÔÚMySQLµÄÅäÖÃÎļþmy.cnfÖУ¬Æô¶¯Ï·Ö¼ÓÈëmyisam-recoverÉèÖÃÊý¾Ý»Ö¸´¹¦ÄÜ£¬¾ßÌå ......

MYSQLµÄÂý²éѯ·ÖÎö

http://www.cnblogs.com/amboyna/archive/2009/11/16/1603867.html
ÓÐÒ»¶ÎÈÕ×ÓÁË£¬Ôø¾­ÉèÖÃÁËÒ»´Î¼Ç¼ÔÚmysqlÖвéѯÂýÓÚ1ÃëÖÓµÄSQLÓï¾ä¡£¸Õ²ÅͻȻ»ØÏëÉèÖõķ½·¨£¬Óм¸¸ö²ÎÊýµÄÃû³ÆËÀ»î»ØÒä²»ÆðÀ´ÁË£¬ÓÚÊÇÖØÐÂÕûÀíһϣ¬×Ô¼º×ö¸ö±Ê¼Ç¡£
¶ÔÓÚÅŲéÎÊÌâÕÒ³öÐÔÄÜÆ¿¾±À´Ëµ£¬×îÈÝÒ×·¢ÏÖ²¢½â¾öµÄÎÊÌâ¾ÍÊÇMYSQLµÄÂý²éѯÒÔ¼°Ã»Óеà ......

mysql ¹Ø¼ü×Ö keyµÄתÒå


¹Ø¼ü×Ö: key×Ö¶ÎÊÇmysqlÀïÃæµÄ¹Ø¼ü×Ö
insert into app(name,created,key,secret,masterSecret) values ('aa',null,null,null,null);
ÒòΪÕâÀïµÄkey×Ö¶ÎÊÇmysqlµÄ¹Ø¼ü×Ö£¬ËùÒÔÒ»Ö±²å²»½øÈ¥¡£
ÐÞ¸ÄÈçÏÂ:ÔÚkeyµÄÍ·ÉϼÓÉÏÁ½µã(·´ÒýºÅ£¬ËüÔÚ¼üÅ̵Ä~Õâ¸ö¼üÉÏ)¡£¼´¿É¸ã¶¨
 
sql½¨±íÈçÏ£º
Java´úÂë
CREATE T ......

ÎÅÃûåÚåǵÄMySQLÂÒÂëÎÊÌâ

ÎÅÃûåÚåǵÄMySQLÂÒÂëÎÊÌ⣨ת£©
2009-06-07 11:22
Ò»¡¢¸ÅÊö
¡¡¡¡¹«Ë¾Ð¹ºÁËÒ»ÅúPC£¬×¼±¸°Ñ¼¸¸öÐÔÄܽÏÓŵÄPCÉý¼¶ÎªÊý¾Ý¿â·þÎñÆ÷£¬Ìæ»»ÀϾɵĻúÆ÷¡£¹«Ë¾ÓÐÌ×POSÖÕ¶ËÈí¼þ£¬ºǫ́Êý¾Ý´æ´¢ÊÇ MySQL 3.23 °æ¡£ÎÒ×¼±¸Ó²¼þÉý¼¶µÄͬʱÉý¼¶Êý¾Ý¿âÈí¼þ¡£µ«ÊÇÉý¼¶¹ý³ÌÖÐÓöµ½ÎÅÃûµÄ MySQL µÄÂÒÂëÎÊÌâ¡£¾­¹ý²éÕÒ×ÊÁÏ£¬¼ÓÉÏ×Ô¼ºµÄÃþË÷ºÍ¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ