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

¿ªÊ¼ÊÕ¼¯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 µÄ ÄÚ´æ±íºÍÁÙʱ±í

1 ÄÚ´æ±íµÄ±í»ú¹¹»¹ÊÇÔÚÊý¾Ý¿âÖеģ¬Ö»ÊÇÊý¾Ýʱ·ÅÔÚÄÚ´æÖеġ£
2 ÄÚ´æ±íÖв»¿ÉÒÔʹÓÃTEXTºÍBLOBÀàÐ͵Ä×ֶΡ£
3 ÄÚ´æ±í¿ÉÒÔͨ¹ýmax_heap_table_size = 2048MÀ´¼Ó´óʹÓõÄÄÚ´æ¡£
1 ÁÙʱ±íµÄ±í»ú¹¹ºÍÊý¾Ý¶¼ÊÇ·ÅÔÚÄÚ´æÖеÄ
¾ßÌå¼ûÏ£º
ÄÚ´æ±íʹÓùþϣɢÁÐË÷Òý°ÑÊý¾Ý±£´æÔÚÄÚ´æÖУ¬Òò´Ë¾ßÓм«¿ìµÄËٶȣ¬Êʺϻº´æÖÐСÐÍÊý¾Ý¿ ......

mysql °²×°°ü

MySQL-client-community-5.0.41-0.rhel4.i386.rpm                    # ¿Í»§¶Ë
MySQL-devel-community-5.0.82-0.rhel4.i386.rpm                ......

mysql¼¶ÁªÉ¾³ý Mysql µÄ Cascade Restrict

½ñÌìÓöµ½Êý¾Ý¿âµÄÒ»¸öÎÊÌ⣬¾ÍÊÇÿµ±´ÓÖ÷±íÖÐɾ³ýÒ»¸öÖ÷¼üidʱ£¬ÓÉÓÚÓëËûÏà¹ØÁªµÄ±íÖÐÓÐÏà¹ØµÄ×Ö¶ÎÊý¾Ý£¬ËùÒÔÎÞ·¨É¾³ý¡£²éÁËÒ»´ó¶Ñ×ÊÁÏ£¬·¢ÏÖÎÒ½¨±í¹ØÁªÓõÄÊÇon Restrict.¿ÉÄÜÎÊÌâ¾Í³öÔÚÕâÀï°É¡£ 
Íâ¼üÔ¼Êø¶Ô×Ó±íµÄº¬Òå: 
  Èç¹ûÔÚ¸¸±íÖÐÕÒ²»µ½ºòÑ¡¼ü,Ôò²»ÔÊÐíÔÚ×Ó±íÉϽøÐÐinsert/update 
Íâ¼üÔ¼Êø ......

MySQL²»ÄÜÆô¶¯·þÎñ1067´íÎó

MySQLÖØа²×°µÄʱºò³öÏÖÁËÎÊÌ⣺Could not start the service MySQL. Error:0,Ô­ÒòÊÇûÓжԾɵÄMySQLÍêȫжÔصô¡£
    ÔÚÄã´ÓµçÄÔÀïжÔؾɵÄMYSQLÊý¾Ý¿â·þÎñʱ£¬Ê×ÏÈÏÈÔÚWINDOWS·þÎñÀïÍ£µôMYSQLµÄ·þÎñ¡£ÔÙµ½¿ØÖÆÃæ°åÀïµÄÔö¼Óɾ³ý³ÌÐòÄÚ½øÐÐɾ³ý£¬È»ºóÊÖ¶¯É¾³ýÔ­°²×°Îļþ,µ«ÊÇÄã²¢²»ÄÜÍêÕûµÄ°ÑMYSQL·þÎñɾ ......

mysql ´íÎó×ܽá

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/
ÔËÐÐÈçϵĴúÂë¾Í¿ÉÒÔ½â¾öÉÏÊöÎÊÌâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ