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

mysqlÓû§ÈÏ֤ЭÒé¸ü»»£¨mysqlʹÓÃÎÊÌâ)

°²×°ºÃmysqlºó£¬ÔÚʹÓÃmysqʱ£¬³öÏÖÁËÈçÏÂÎÊÌâ.
java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:327)
at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)
at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
at org.gjt.mm.mysql.Driver.connect(Driver.java:167)
at java.sql.DriverManager.getConnection(DriverManager.java:523)
MYSQL 4.1ÒÔºó, ²ÉÓÃÁËÒ»ÖÖеÄÓû§ÈÏ֤ЭÒé, ¶ÔÓÚÀϵĿͻ§¶Ë»á³öÏÖ²»Ö§³ÖÈÏ֤ЭÒéµÄ´íÎó, ÒÔÏÂÊǹٷ½ÍøÕ¾µÄ½â¾ö·½·¨﹔
1When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
ʹÓÃÒÔÇ°½¨Á¢µÄÕ˺ÅÁ¬½Ó£¬¶ÔÓÚÔÚеÄÈÏ֤ЭÒéϽ¨Á¢µÄÕË»§¾Í²»ÐÐÁË
£³Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function: mysql> SET PASSWORD FOR 
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Alternatively, use UPDATE and FLUSH PRIVILEGES: mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') -> WHERE Host = 'some_host' AND User = 'some_user'; 
mysql> FLUSH PRIVILEGES;
Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
ÕâÊÇÒ»¸ö²»´íµÄ°ì·¨£¬Ð½¨Á¢µÄÕ˺ŲÉÓÃÀÏʽµÄ¼ÓÃÜЭÒé
£´Tell the server to use the older password hashing algorithm: 
Start mysqld with the --old-passwords option.
ÕâÑùÐÂÈÏ֤ЭÒéµÄÓŵã¾Íû·¨Ê¹ÓÃÁË
£µAssign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query: mysql> SELECT Host, User, Password from mysql.user 
-> WHERE LENGTH(Password) > 16;
For each account record displayed by the query, use the Host and User values and assign a password using th


Ïà¹ØÎĵµ£º

תÔØ mysqlÔõôȡ³ö×îÐÂÔö¼ÓµÄÊý¾Ý

´ÓºËÌÒ²©¿Í
תÔØ£¬
ÓÑÇéÎÊ´ð2-mysqlÔõôȡ³ö×îÐÂÔö¼ÓµÄÊý¾Ý
ÔÚhttp://zhidao.baidu.com/question/131093225.html
ÓÐÈËÎÊ“mysqlÔõôȡ³ö×îÐÂÔö¼ÓµÄÊý¾Ý”£¬
ÆäʵÕýÈ·µÄ·½Ê½Êǽ«×ֶζ¨Òå³Éint primary key
auto_increment£¬È»ºóÓÃlast_insert_id()È¡³öÀ´£¬ÒòΪÕâÊÇÃæÏòÁ¬½ÓµÄ£¬Ḭ̈߳²È«µÄ£¬Èç¹ûÈ¡max(id)ÕâÑ ......

MySQLѧϰ±Ê¼Ç£ºInnoDBºÍMyISAMµÄ²î±ð


InnoDB
ºÍMyISAM
ÊÇÔÚʹÓÃMySQL
×î³£ÓõÄÁ½¸ö±íÀàÐÍ£¬¸÷ÓÐÓÅȱµã£¬ÊÓ¾ßÌåÓ¦Óöø¶¨¡£»ù±¾µÄ²î±ðΪ£ºMyISAM
ÀàÐͲ»Ö§³ÖÊÂÎñ´¦ÀíµÈ¸ß¼¶´¦Àí£¬¶øInnoDB
ÀàÐÍÖ§³Ö¡£MyISAM
ÀàÐ͵ıíÇ¿µ÷µÄÊÇÐÔÄÜ£¬ÆäÖ´ÐÐÊý¶È±ÈInnoDB
ÀàÐ͸ü¿ì£¬µ«ÊDz»ÌṩÊÂÎñÖ§³Ö£¬¶øInnoDB
ÌṩÊÂÎñÖ§³ÖÒѾ­Íⲿ¼üµÈ¸ß¼¶Êý¾Ý¿â¹¦ÄÜ¡£
MyIASMÊÇIASM± ......

½â¾öÔ¶³ÌÁ¬½Ómysql´íÎó1130´úÂëµÄ·½·¨

http://hi.baidu.com/qk618/blog/item/f61e5830f2125d93a9018e0c.html
½â¾öÔ¶³ÌÁ¬½Ómysql´íÎó1130´úÂëµÄ·½·¨
½ñÌìÔÚÓÃÔ¶³ÌÁ¬½ÓMysql·þÎñÆ÷µÄÊý¾Ý¿â£¬²»¹ÜÔõôŪ¶¼ÊÇÁ¬½Ó²»µ½£¬´íÎó´úÂëÊÇ1130£¬ERROR 1130: Host 192.168.2.159 is not allowed to connect to this MySQL server
²ÂÏëÊÇÎÞ·¨¸øÔ¶³ÌÁ¬½ÓµÄÓû§È¨ÏÞÎÊÌâ¡£½á¹ ......

MySQL±í±ÀÀ£

Èç¹ûÔÚһЩ¸üÐÂÃüÁîÖ®ºó£¬mysqld×ÜÊǵ±µô£¬»òÕßÈç¹ûÄãÓöµ½±»ÆÆ»µµÄ±í£¬Äã¿ÉÒÔÓÃÏÂÃæµÄ²Ù×÷²âÊÔ¿´Õâ¸öȱÏÝÊÇ·ñÊÇ¿ÉÖظ´²úÉúµÄ£º
жµôMySQLÊØ»¤½ø³Ì£¨ÓÃmysqladmin shutdown£©¡£
¸ø¸Ã±í×ö±¸·Ý£¨·ÀÖ¹ÐÞ¸´²Ù×÷·´¶ø¸ã»µÕâÖֺܲ»¿ÉÄܳöÏÖµÄÇé¿ö£©¡£
Óà myisamchk -s database/*.MYI ¼ì²éËùÓÐµÄ±í£¬ÓÃmyisamchk -r database/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ