¿ªÊ¼ÊÕ¼¯mysqlµÄ¸÷ÖÖÃüÁî
ÕâÀïÊÕ¼¯¸÷ÖÖMysqlµÄ»ù´¡ÖªÊ¶,ΪÁËijЩ³¡ºÏµÄÐèÒª,»¹ÊÇÉáÆúnavicatÖ®ÀàµÄ¹¤¾ß¹Ô¹ÔÓÃÃüÁîÐаÉ
£¨×¢ÒâÓеÄÃüÁîÐèÒª·ÖºÅÓеIJ»ÐèÒª)
Ò».»ù±¾²Ù×÷
1.怬
mysql -u Óû§Ãû -pÃÜÂë Êý¾Ý¿âÃû
ÕâÀïÐèҪעÒâµÄÊÇ-uÓû§ÃûÖ®¼ä¿ÉÒÔÓпոñ,¶ø-pÃÜÂëÖ®¼ä¾ö²»ÄÜÓпոñ,Äã¿ÉÒÔ²»ÌîÃÜÂë,µ±È»Óû§ÃûÄãÒ²¿ÉÒÔ²»Ìî,µ«ÊÇ»áÒÔ¿ÕµÄÓÃ
»§ÃûÀ´µÇ¼,È»ºó²Ù×÷Êý¾Ý¿âµÄʱºò»áÓкܶàÏÞÖÆ,ÖîÈçÖ®ÀàµÄAccess denied for user ''@'localhost' to database´íÎó.
»¹ÓÐ,²»ÒªÔÚºóÃæ¼Ó·ÖºÅ;
2.´´½¨Óû§
grant ȨÏÞ on Êý¾Ý¿â.* to Óû§Ãû@µÇ¼Ö÷»ú identified by "ÃÜÂë";
ÕâÀï×¢ÒâµÄÊÇÒ»¶¨ÒªÊÇ×îºÜ¸ßȨÏÞµÄÓû§²Å¿ÉÒÔ²Ù×÷,Ò»°ã¾ÍÊÇroot,²»ÏÓÂé·³µÄ»°Ò²¿ÉÒÔÖ±½ÓÇÐÈëmysqlÕâ¸öÊý¾Ý¿â°ÑÊý¾ÝÌí¼Ó½ø
user±íÀï.ÕâÀï¸ø¸öÀý×Ó:grant select,insert,update,delete on *.* to Rye@loaclhost Identified by "1234"
Èç¹ûÏ£Íû¸ÃÓû§Äܹ»ÔÚÈκλúÆ÷Éϵǽmysql£¬Ôò½«localhost¸ÄΪ"%".
3.´´½¨³¬¼¶Óû§
grant all privileges on *.* to Óû§Ãû@µÇ¼Ö÷»ú identified by "ÃÜÂë" with grant options;
4.ÐÞ¸ÄÓû§
ÃüÁîÓëÉÏÃæÒ»Ñù,¿ÉÒÔÐÞ¸ÄȨÏÞºÍÃÜÂë
5.ÐÞ¸Äroot ÃÜÂë
Õâ¸öʱºòÒªÔÚδµÇ¼µÄ״̬ÏÂ(Ò²¾ÍÊÇÏÈexitÍ˳ö)ʹÓÃÃüÁî mysqladmin -u Óû§Ãû -pÃÜÂë password ÐÂÃÜÂë
6.¹Ø±ÕÆô¶¯
net stop mysql (δµÇ¼״̬ÏÂ) ¹Ø±Õmysql
net start mysql (δµÇ¼״̬ÏÂ) ¿ªÆômysql
7.Í˳ömysql
quite»òÕßexit
¶þ.²Ù×÷Êý¾Ý¿â
1.show databases; ÏÔʾ¿É¹©²Ù×÷µÄÊý¾Ý¿â£¬ÓÐʱºòÄã»á·¢ÏÖ²¢Ã»ÓÐÏÔʾȫÃæ,ÄÇÊÇÒòΪȨÏÞ²»¹»¡£
2.use Êý¾Ý¿âÃû; &nb
Ïà¹ØÎĵµ£º
MySQL-client-community-5.0.41-0.rhel4.i386.rpm # ¿Í»§¶Ë
MySQL-devel-community-5.0.82-0.rhel4.i386.rpm   ......
¸÷λ¸ßÊֺá£Ð¡µÜѧϰJAVA²»¾Ã£¬È»ºóÔÙÓÃMYSQLÊý¾Ý¿â¡£
ÓÉÓÚÊÇÓñðÈ˵ĵķ¶Àýѧϰ£¬ËùÒÔ³öÏֺܶàÆæ¹ÖµÄÎÊÌâ
ÎÒÓÃ×Ô¼ºµÄMYSQL ·þÎñÆ÷£¬È»ºó°Ñ±ðÈ˵ÄÊý¾Ý¿âµ¼½øÀ´¡£È»ºó³öÏÖ°æ±¾ÎÊÌâ¡£
ÎÊÌâÈçÏÂ
Table './db_librarysys/tb_manager' was created with a different version of MySQL and cannot be read
2010-4-28 22:44 ......
×òÌ죬¹«Ë¾´Ó·þÎñÆ÷ÉϸãÏÂÀ´Ò»¸ö´óµÄÊý¾Ý¿â£¬Îļþ´óСΪ487MB£¬ÓÐͬÊÂ˵½«php.iniµÄÎļþÅäÖÃÖеÄpost_max_size¸ÄΪ±ÈÄãÒªµ¼ÈëµÄÊý¾Ý¿âÎļþ´óһЩµÄ£¬±ÈÈçÏÖÔÚÎÒÒªµÄµ¼ÈëµÄÊý¾Ý¿âÎļþÊÇ487MB£¬ÄÇô¿ÉÒÔ½«´ËÏî¸ü¸ÄΪ£º700MB£¬ÔÙʹÓÃphpMyAdmin¹¤¾ßµÄµ¼È빦ÄÜÀ´ÊµÏÖ£¬µ«ÊÇ£¬ÎÒÊÔÓÃÁË´ËÖÖ·½·¨²»ÄÜ×àЧ£¬È»ºóÓëÓоÑéµÄÅóÓѽ»Á÷£ ......
ERROR 1005 (HY000): Can't create table ' ****.frm' (errno: 150)
ÎÒÊÇ´ÓÒÔϼ¸¸ö·½Ãæ½â¾öÁË´ËÎÊÌ⣺
1¡¢È·±£²ÎÕյıíºÍ×Ö¶ÎÊÇ´æÔڵģ»
2¡¢×é³ÉÍâ¼üµÄ×Ö¶ÎÒªÇó±»Ë÷Òý(Ö÷ÒªÊÇÍâ¼üÄǸö×Ö¶ÎÒªÇóÔÚÆäËû±íÖÐÊÇÖ÷¼ü)£»
3¡¢Íâ¼ü¹ØÁªµÄÁ½±í»ò¶à±íÒªÇó¶¼ÊÇINNODBÀàÐÍµÄ±í£»
4¡¢×Ö¶ÎÀàÐÍ£¨ËµÃ÷£©ÒªÒ»Ñù`itemId` varchar( ......
Can't open the mysql.plugin table. Please run mysql_upgrade to create it
µ±Åöµ½ÕâÑùµÄ´íÎóÊÇûÓгõʼ»¯mysqlÊý¾Ý¿â,¿ÉÒÔÔËÐÐÈçϽű¾¾Í¿ÉÒÔ½â¾ö
cd /opt/mysql-5.1.46
cd scripts/
./mysql_install_db --user=mysql --datadir=/usr/local/mysql/var/
ÔËÐÐÈçϵĴúÂë¾Í¿ÉÒÔ½â¾öÉÏÊöÎÊÌâ ......