MySQL error 2003µÄ½â¾ö¹ý³Ì
MySQL error 2003µÄ½â¾ö¹ý³Ì¸Õ²ÅÂÛ̳³öÏÖ:
error 2003:Can't connect to MySQL server on ..............
ÎÊÌâ:MYSQLÊý¾Ý¿âûÓÐÆô¶¯~
½â¾ö:°Ù¶ÈÁËÒ»ÏÂ,˵µÄ½â¾ö·½·¨¸÷ÖÖ¸÷Ñù,ºÜ¶à.
1\ÔÚ“ÔËÐДÀïÕÒµ½C:\mysql\bin\mysqld-opt.exe ÔËÐоÍÊÇÁË£¡ÕÒÁË,ûÓÐÕâ¸ö¶«Î÷:(
2 ÔÚDosÏ cd \mysql\bin #°´×°ÅÌ·ûÏ mysqld-nt --install #Æô¶¯Mysql mysql #ÔËÐÐMysql ¿ÉÊǽø²»ÁË,Ò»½ø´ËĿ¼DOSÒ³ÃæÒ»ÉÁ¾ÍÏûʧ.
3\¿ªÊ¼-¹ÜÀí¹¤¾ß--·þÎñÀïÕÒMYSQL,Æô¶¯.È»ºóÖØÆð»úÆ÷. °´´Ë°ì·¨,ÕÒµ½MYSQL,Ëü״̬ÄÇÀï±¾À´¾ÍÏÔʾÓиö"Æô¶¯"µÄ:( ±§×ÅÊÔÒ»ÊÔµÄÏë·¨,µãÁËÏÂËû,×ó±ß³öÏÖÆô¶¯¸Ä·þÎñ,ÔÝÍ£¸Ã·þÎñÕâЩ~ µãÁËÒ»ÏÂ"Æô¶¯",Õâʱ,·¢ÏÖ×ó±ßµÄÁбíÖеÄMYSQLÔÀ´µÄÄǸö"Æô¶¯"Ç°,¶àÁ˸ö"ÒÑÆô¶¯". ÐÄÍ·Ò»¶¯,¸Ï½ô»ØÀ´Ë¢ÐÂÂÛ̳,ºÃÁË. ºÇºÇ,¾ÍÕâÑù. ûÓнøÐкóÒ»²½ÖØÐÂÆô¶¯»úÆ÷.
Ïà¹ØÎĵµ£º
±¾ÎÄͨ¹ýʵÀý½éÉÜÁËMySQLÖеÄgroup_concatº¯ÊýµÄʹÓ÷½·¨£¬±ÈÈçselect group_concat(name) ¡£
MySQLÖÐgroup_concatº¯Êý
ÍêÕûµÄÓï·¨ÈçÏ£º
group_concat([DISTINCT] ÒªÁ¬½ÓµÄ×ֶΠ[Order BY ASC/DESC ÅÅÐò×Ö¶Î] [Separator '·Ö¸ô·û'])
»ù±¾²éѯ
mysql> select * from aa;
+------+------+
| id| name |
+----- ......
mysql> explain select count(id) from t_prehandle_zhigao_05 as zhigao where start_time > '2008-05-30';
+----+-------------+--------+-------+---------------+------------+---------+------+---------+--------------------------+
| id | select_type | table | type | p ......
2007-11-16 15:37
½ñÌì¿´×ÅÊÖ²áÊÔÁËÏ£¬·¢ÏÖÔÀ´´óÊý¾Ýµ¼Èëµ¼³öÊÇÄÇôµÄÇáËÉ£¨²»ÊǺܴó£¬200¶àMµÄÎı¾¶øÒÔ£©
×¢Ò⣺Èç¹û·¢ÏÖMYSQL unknown command '\'ÕâÑùµÄÌáʾ£¬ÔòÉèÖÃһϷþÎñÆ÷µÄ×Ö·û¼¯£¬È磺
mysql -uroot -ppasspass --default-character-set=utf8 databaseName <d:bakcup.sql
ÕâÑù¾Í²»»á±¨´íÁË£¬^_^
µ¼³ö ......
use mysql
update user set Password=password('newpassword') where User='root';
flush privileges;
Ê×ÏÈÒªÉùÃ÷Ò»µã£¬´ó²¿·ÖÇé¿öÏ£¬ÐÞ¸ÄMySQLÊÇÐèÒªÓÐmysqlÀïµÄrootȨÏ޵ģ¬
ËùÒÔÒ»°ãÓû§ÎÞ·¨¸ü¸ÄÃÜÂ룬³ý·ÇÇëÇó¹ÜÀíÔ±¡£
·½·¨Ò»
ʹÓÃphpmyadmin£¬ÕâÊÇ×î¼òµ¥µÄÁË£¬ÐÞ¸Ämysql¿âµ ......
mysqlÍ£Ö¹ÃüÁî
bin/mysqladmin -uroot -p shutdown
mysqlÆô¶¯ÃüÁî
bin/mysqld_safe &
mysql ÐÞ¸ÄrootÃÜÂë
1.Í£Ö¹mysql·þÎñ
2.Æô¶¯mysql·þÎñʱ¸½¼Ó²ÎÊý
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
3.ÒÔroot½øÈëmysql
mysql -u root mysql
4.Ö´ÐÐsqlÓï¾ä
mysql> UPDATE user S ......