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

mysqlÆô¶¯Åöµ½¹ýµÄÎÊÌâ

ÎÒµÄmysql×°ÔÚ/usr/local/mysqlĿ¼ÏÂÆô
¶¯Åöµ½¹ýºÜ¶àÎÊÌâ¡£×î³£¼ûµÄÊÇ£º
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (111)
½â¾ö°ì·¨£º
[root@test mysql]# /usr/local/mysql/bin/mysqladmin -u root /
>  -S /var/lib/mysql/mysql.sock password 'your.passwd'
»òÕß×ö¸öÁ¬½Ó
ln -s /var/lib/mysql/mysql.sock /tmp
ÆäʵÌáʾÕÒ²»µ½ /tmp/mysql.sockÓÐʱҲ²¢²»ÊÇ/tmpĿ¼ÏÂûÕâ¸öÎļþ£¬ÊÇÆô¶¯
ÃüÁî²»¶Ô£¬ÎÒÅöµ½¹ý
³£¼ûµÄ¼¸ÖÖÆô¶¯·½Ê½£¬×Ô¼ºÒ²²»ÊǼǵúÜÇå³þ£¬Èç¹ûÄãÈ·¶¨tmpÏÂÓÐmysql.sockÕâ
¸öÎļþ²»·ÁÊÔÊÔÁíÍâµÄ¼¸¸öÃüÁî
/usr/local/mysql/bin/mysql -u root -p
/usr/local/mysql/bin/mysqld --user=mysql&
/usr/local/mysql/bin/mysqld --user=root&
/usr/local/mysql/bin/mysqld_safe --user=root&
/usr/local/mysql/bin/mysqld_safe --user=mysql&
/usr/local/mysql/bin/safe_mysqld--uer=root&(×¢Òâsafe_mysqldÓë
mysqld_safeÊDz»Í¬µÄ£¬&±íʾmysqlÔÚºǫ́ÔËÐÐ)Îҵľͻᱨ´íÁË
STOPPING server from pid file
/usr/local/mysql/data/localhost.localdomain.pid
060304 11:46:21  mysqld ended
ÕâÊÇȨÏÞÎÊÌ⣬ÎÒµÄmysqlĿ¼ÊôÓÚrootÓû§£¬Ò²ÊôÓÚrootȺ×飬¸ÄÓÃmysqld_safeÆô¶¯¾ÍûÎÊÌâÁË£¬
´ó¼ÒֻҪעÒâÕ⼸¸ömysql,safe_mysqld,mysqld_safe,mysqld,mysqladmin.¶àÊÔ
¼¸´Î
ÆäʵÓÐʱmysqlÒѾ­Õý³£Æô¶¯ÁË£¬²é¿´mysqlÊÇ·ñÆô¶¯ÃüÁî
ps -aux | grep mysqld
»á¿´µ½ÈçÏÂÀàËÆÄÚÈÝ
mysql     6394  0.0  1.5 10528  992 pts/3    S    16:16   0:00
/usr/local/mysql/
mysql     6395  0.0  1.5 10528  992 pts/3    S    16:16   0:00
/usr/local/mysql/
mysql     6396  0.0  1.5 10528  992 pts/3    S    16:16   0:00
/usr/local/mysql/
root      6422  0.0  1.1  2408  732 pts/3    S    16:20   0:00 grep
mysql
²é¿´mysqlÊÇ·ñÔÚ¼àÌý¶Ë¿ÚÃüÁî
netstat -tl | grep mysql
»á¿´µ½Èç


Ïà¹ØÎĵµ£º

MySQL¿ª·¢Ð¡½á

       ×î½üÕýÔÚ½øÐÐÒ»¸ö¶þ´Î¿ª·¢½Ó¿ÚµÄÏîÄ¿£¬ÔÚ¿ª·¢¹ý³ÌÖз¢ÏÖ£ºÎÒÃÇ֮ǰʹÓõĴ¦Àí¿Í»§¶ËºÍWEBÖ®¼ä±àÂë¼æÈÝÎÊÌâµÄ·½·¨ÊÇ´æÔÚÎÊÌâµÄ¡£ÓÉÓÚΪÁËÖ§³Ö¶àÓïÑÔ£¬Êý¾Ý¿â±íÖÐÀàÐÍΪvarcharµÄ×ֶΣ¬ËûÃǵÄ×Ö·û¼¯¶¼ÉèÖóÉÁËutf8¡£Ö®Ç°µÄ×ö·¨ÊÇ¿Í»§¶Ë½«×Ö·û´®µÄ±àÂë¸Ä³Éutf8±àÂ룬Ȼºó½«¸Ãutf8±àÂëµÄ× ......

mysql µÄdelimiter

ÎÒÔÚ EMS SQL Manager 2005 for MySQL Õâ¸ö MySQL ͼÐοͻ§¶ËÏ¿ÉÒÔ˳ÀûÔËÐС£µ«ÊÇÔÚ SQLyog MySQL GUI v5.02 Õâ¸ö¿Í»§¶Ë¾Í»á³ö´í¡£×îºóÕÒµ½Ô­ÒòÊÇûÓÐÉèÖúà delimiter µÄÎÊÌ⡣ĬÈÏÇé¿öÏ£¬delimiter “;” ÓÃÓÚÏò MySQL Ìá½»²éѯÓï¾ä¡£ÔÚ´æ´¢¹ý³ÌÖÐÿ¸ö SQL Óï¾äµÄ½áβ¶¼Óиö “;”£¬Èç¹ûÕâʱºò£¬Ã¿ ......

mysqlÐÔÄÜÓÅ»¯µÄ²ÎÊý¼ò½é


1)¡¢back_log£º
ÒªÇó MySQL ÄÜÓеÄÁ¬½ÓÊýÁ¿¡£µ±Ö÷ÒªMySQLÏß³ÌÔÚÒ»¸öºÜ¶Ìʱ¼äÄڵõ½·Ç³£¶àµÄÁ¬½ÓÇëÇó£¬Õâ¾ÍÆð×÷Óã¬È»ºóÖ÷Ï̻߳¨Ð©Ê±¼ä(¾¡¹ÜºÜ¶Ì)¼ì²éÁ¬½Ó²¢ÇÒÆô¶¯Ò»¸öÐÂÏ̡߳£ 
back_logÖµÖ¸³öÔÚMySQLÔÝʱֹͣ»Ø´ðÐÂÇëÇó֮ǰµÄ¶Ìʱ¼äÄÚ¶àÉÙ¸öÇëÇó¿ÉÒÔ±»´æÔÚ¶ÑÕ»ÖС£Ö»ÓÐÈç¹ûÆÚÍûÔÚÒ»¸ö¶Ìʱ¼äÄÚÓкܶàÁ¬½Ó£¬ÄãÐèÒªÔ ......

ÅäÖÃMySQLÖ÷´Ó¸´ÖÆ(Replication)


MySQLÖ§³Öµ¥Ïò¡¢Òì²½¸´ÖÆ£¬¸´Öƹý³ÌÖÐÒ»¸ö·þÎñÆ÷³äµ±Ö÷·þÎñÆ÷£¬¶øÒ»¸ö»ò¶à¸öÆäËü·þÎñÆ÷³äµ±´Ó·þÎñÆ÷¡£Ö÷·þÎñÆ÷½«¸üÐÂдÈë¶þ½øÖÆÈÕÖ¾Îļþ£¬²¢Î¬»¤ÈÕÖ¾ÎļþµÄÒ»¸öË÷ÒýÒÔ¸ú×ÙÈÕ־ѭ»·¡£µ±Ò»¸ö´Ó·þÎñÆ÷Á¬½Óµ½Ö÷·þÎñÆ÷ʱ£¬Ëü֪ͨÖ÷·þÎñÆ÷´Ó·þÎñÆ÷ÔÚÈÕÖ¾ÖжÁÈ¡µÄ×îºóÒ»´Î³É¹¦¸üеÄλÖᣴӷþÎñÆ÷½ÓÊÕ´ÓÄÇʱÆð·¢ÉúµÄÈκθüУ¬È ......

MYSQL ×Ö·û¼¯ÎÊÌâ

 
 
 
MySQLµÄ×Ö·û¼¯Ö§³Ö(Character Set Support)ÓÐÁ½¸ö·½Ã棺
     ×Ö·û¼¯(Character set)ºÍÅÅÐò·½Ê½(Collation)¡£
¶ÔÓÚ×Ö·û¼¯µÄÖ§³Öϸ»¯µ½Ëĸö²ã´Î:
     ·þÎñÆ÷(server)£¬Êý¾Ý¿â(database)£¬Êý¾Ý±í(table)ºÍÁ¬½Ó(connection)¡£
1.MySQLĬÈÏ×Ö·û¼¯
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ