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

WindowsÏÂÐÞ¸ÄMySQL°²×°Ä¿Â¼ºÍMySQLÊý¾ÝĿ¼ ʧ°Ü

ϵͳµÄʼþ²é¿´Æ÷ÖпÉÒÔ¿´µ½Å¶

ÔØ£ºTable 'mysql.host' doesn't existµÄ´íÎó
»¹ÊDz»Äܽâ¾öÎÊÌâ

²Î¿¼ÈçÏÂ
indowsÏÂÐÞ¸ÄMySQL°²×°Ä¿Â¼ºÍMySQLÊý¾ÝĿ¼
2009-04-04 08:49:20
¡¡±êÇ©£ºMySQL¡¡¡¡¡¡[ÍÆË͵½¼¼ÊõȦ]

Windowsϰ²×°MySQL£¬Ò»°ãµÄĬÈÏĿ¼ÊÇcÅÌ£¬Òò´ËÔÚ°²×°ÍêºóÎÒÃÇÒ»°ã»áÒª¸ü¸ÄÎļþµÄ°²×°Ä¿Â¼ºÍMySQLÊý¾ÝĿ¼¡£
Ò»°ãµÄÐ޸ķ½·¨ÊÇ£º
1¡·ÐÞ¸Ämy.iniÎļþ¡£´ò¿ªÖ®ºó±à¼­ÆäÖеÄbasedirºÍdatadir£¬
  [mysqld]
basedir=E:\Program Files\mysql        #Ð޸ijÉÄãµÄmysql°²×°Ä¿Â¼
datadir=E:\Program Files\mysql\data    #Ð޸ijÉÄãµÄmysqlÊý¾ÝĿ¼
2¡·Æô¶¯Dos½çÃæ£¬ÔËÐÐnet start mysql±¨´í£¬ÏµÍ³ÕÒ²»µ½Ö¸¶¨Â·¾¶¡£
ÒòΪÎÒÃǸıäÁËmysqlµÄ°²×°Ä¿Â¼£¬µ¼ÖÂÕÒ²»µ½binÆô¶¯Ä¿Â¼¡£
Ð޸Ļ·¾³±äÁ¿£¬ÔÚpath·¾¶Ï¼ÓÈ룺E:\Program Files\mysql\bin
3¡·´ËʱÆô¶¯mysql£¬Èç¹û»¹±¨´íÎ󣬴ò¿ª×¢²á±í£¬ËÑË÷Ô­À´mysqlµÄ°²×°Â·¾¶£¬²¢½«ÆäÌæ»»ÎªÏÖÔÚÐµİ²×°Â·¾¶¡£
4¡·×¢ÏúÏ£¬ÖØÐÂÔËÐÐnet start mysqlÃüÁî¼´¿É¡£
×¢Ò⣺Æô¶¯MysqlʱÅöµ½ÁË 1067 ´íÎó£¬Ò»°ãÊÇmysqlµÄÅäÖÃÎļþmy.iniÓÐÎÊÌ⣬´ò¿ªÖص㿴ÏÂÀïÃæµÄbasedirºÍdatadir·¾¶ÊÇ·ñºÍÄãµÄʵ¼Ê°²

װĿ¼Ïàͬ¡£ÁíÍâÈç¹û»¹²»ÐУ¬¿ÉÒÔÖØÐÂÔËÐÐÏÂÄãµÄmysqlÅäÖÃÏòµ¼£¬ÖØÐÂÅäÖÃÏ¡£

ÏÂÃæÊÇ´ÓÍøÂçÉÏËѼ¯µÄ¹ØÓÚ1067´íÎóµÄ½â¾ö·½°¸£º
°²×°ºóMYSQL5ºó£¬·¢ÏÖÆô¶¯³ö´í£¬ÓÐʱÆô¶¯Õý³££¬µ«¼Ó½ÓʱÂíÉϳö´í¡£
³ö´í´úÂ룺1067
½â¾ö°ì·¨ÈçÏ£º
1.ɾ³ý%windows%/my.ini
2.ɾ³ýÆäËüµØ·½µÄmy.ini
3.ÔÚmysql°²×°Ä¿Â


Ïà¹ØÎÊ´ð£º

Çó¾ÈMySqlÄ£ºý²éѯÎÊÌâ

Java code:

Ä£ºý²éѯÊé°´ÕÕÊéÃû-------------------
java.sql.SQLException: Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
at com.mys ......

mysqlÈçºÎʵÏÖ¸ßЧµÄËÑË÷£¿

Ò»¸öÐÐÒµÍøÕ¾£¬ÒªÊµÏֵŦÄÜÒªÇóΪ£º

Ò»ËÑË÷±íµ¥¿ÉÑ¡ËÑË÷ ²úÆ·/×ÊѶ/É̼ң¬ËÑË÷ʱϣÍûÏÈËѱêÌâºóÈ«ÎÄ£¬µ±Ç°µÄÊý¾ÝÁ¿¹À¼Æ3Íò¶à£¬¶¨Î»ÆÚÍûÔÚ°ÙÍò¼¶Ò²¿ÉÓá£

Êý¾ÝÀàÐÍΪinnodb£¬µ±Ç°µÄ·½·¨ÊǶԹؼü´Ê½øÐÐ ......

MySQL´´½¨´æ´¢¹ý³Ì³ö´í

ÔÚMySQL5.0Öд¬½¢´æ´¢¹ý³Ìͨ²»¹ý£¬Ìáʾ£º
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' ......

mysqlÖÐ repair table

ÔÚmysqlÖÐrepair table xxxxx;Ìáʾ

mysql> repair table recordTbl;
+-----------------+--------+----------+----------------------------------------------+
| Table        ......

MYSQLÖиù¾Ý×Ö¶ÎÖµÅжϷµ»Ø²»Í¬µÄÖµ

ÔÚmysqlÖÐÓÐÒ»ÕÅ±í£¬ÓÐÈý¸ö×Ö¶Îtotal,max, min£¬¶¼ÊÇintÐ͵ÄÖµ£¬¿ÉÒÔдһ¸ösqlÓï¾äÍê³É¹¦ÄÜ£º
¸ù¾ÝÿÌõ¼Ç¼ÖУ¬Èç¹ûtotal>max,·µ»Ø2£¬Èç¹ûtotal <min·µ»Ø1£¬Èç¹û¶¼Ìõ¼þ¶¼²»·ûºÏ·µ»Ø0¡£¼±Ç󣡣¡£¡£¡
mysql? ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ