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

ÔÙ̸mysqlµÄÅäÖÃÎļþmy.ini or my.cnf (Ö®¶þ)

ÈçÈôתÔØ£¬Çë×ðÖظöÈËÀͶ¯£¬Îñ±Ø×¢Ã÷ԭʼ³ö´¦£º(http://blog.csdn.net/iihero/archive/2010/05/13/5585039.aspx)
±¾ÎÄΪiihero@CSDNÔ­´´¡£
ÔÚǰһƪ¶ÌÎÄÀïÌáµ½ÁËmy.ini/cnfµÄ¼ÓÔØ˳Ðò£ºC:\WINDOWS\my.cnf->C:\WINDOWS\my.ini->C:\my.cnf ->C:\my.ini ->$installdir\my.ini¡£(%MYSQL_HOME%\my.ini)-> --defaults-extra-file=path
,
(linuxÏ£¬/etc/my.cnf->/etc/mysql/my.cnf->SYSCONFDIR/my.cnf->$MYSQL_HOME/my.cnf-> --defaults-extra-file->~/my.cnf
Èç¹ûÕ⼸¸öλÖö¼ÕÒ²»µ½ÏàÓ¦Ô­ÅäÖÃÎļþÄØ¡£
ÄÇôһ¶¨ÊǷŵ½Ä³Ò»¸öλÖÃÁË£¬ÔÚmysql³ÌÐòÒѾ­ÆðÀ´µÄÇé¿öÏ£¬ÈçºÎËÑÑ°Õâ¸öËùνµÄmy.ini¡£
ÔÚLinuxÏ£¬Ò»Ìõps -efÃüÁî¾ÍÄÜÕÒµ½×îÖÕʹÓõÄmy.cnfµÄÎïÀíλÖá£
ÔÚwindowsÏ£¬ÄãÓÃtasklistÃüÁîÊÇÕÒ²»³öÀ´µÄ£¬Ö»ÄÜ¿´µ½mysqld»òÕßmysql-nt½ø³ÌÃû£¬ÆäÃüÁîÐвÎÊýÔòÕÒ²»µ½¡£Ö±½Ó²é¿´services.mscҲδ±ØºÃÕÒ¡£
Õâʱºò£¬¿ÉÒÔ½èÖúÓÚרÓù¤¾ßÁË¡£
1. Èç¹ûÄãÓùýMKS toolsÖ®ÀàµÄÀàunixÃüÁîÐй¤¾ß£¬ps -ef | grep mysql¼´¿É¶¨Î»
È磺
d:\>ps -ef | grep mysql
  SYSTEM  1112   764  0 04:56:49 CONIN$  0:00 D:\mysql-5.0.9-beta-win32\bin\mysqld-nt --defaults-file=D:\mysql-5.0.9-beta-win32\bin\my.ini
mysql5
2. Èç¹ûûÓÐ1ËùÌáʾµÄ¹¤¾ß£¬Ä㻹¿ÉÒÔÏÂÔØÒ»¸öWinDbg for windows (ÕâÊÇ΢ÈíÌṩµÄÃâ·Ñ³¬Ç¿debug¹¤¾ß)£¬°ÑËüµÄ°²×°Â·¾¶ÉèÖõ½pathÀïÍ·£¬È»ºó
   ÔËÐÐÃüÁîtlist -v | findstr mysql¼´¿É¡£È磺
d:\>tlist -v | findstr mysql
 0 32 3240 Console.exe     Title: Console - findstr mysql
 0 32 1112 mysqld-nt.exe   Svcs:  mysql5
     Command Line: D:\mysql-5.0.9-beta-win32\bin\mysqld-nt --defaults-file=D:\mysql-5.0.9-beta-win32\bin\my.ini mysql5
     Command Line: findstr mysql
3. ×îºó£¬Èç¹ûÄãʵÔÚ²»Ï²»¶ÃüÁîÐУ¬ÄǾÍÓÃͼÐνçÃæºÃÁË£¬ÏÂÒ»¸öProcessExplore-NT.zip
    http://technet.microsoft.com/en-us/sysinternals
--> Process Explorer
   ÔËÐÐÕâ¸öͼÐνçÃæµÄ½ø³Ì¹ÜÀíÆ÷£¬
  
Ñ¡Ôñview->select columns£¬È»ºóÔÚprocess imageÀïÍ·£¬°ÑImage PathºÍC


Ïà¹ØÎĵµ£º

MysqlÎÊÌâ»ã×Ü

1£¬Mysql²åÈë¶þ½øÖÆ´ó¶ÔÏó³öÏÖÒì³££¬²åÈë¶þ½øÖƳöÏÖÒì³££¬Ôõô½â¾öcom.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '' at line 1
½â¾ö°ì·¨£ºurl=url=+"?useUnicode=true& ......

mysql±àÂëÉèÖÃ

mysql
> SHOW VARIABLES LIKE
'character_set_%';
+--------------------------+----------------------------+

| Variable_name | Value |
+--------------------------+----------------------------+

| character_set_client | latin1 |
| character_set_connection |
latin1 |
| character_set ......

MYSQL[ÃüÁîÐÐÏÂ]µ¼Èëµ¼³ö´óÊý¾Ý·½·¨£¡


2007-11-16 15:37
½ñÌì¿´×ÅÊÖ²áÊÔÁËÏ£¬·¢ÏÖÔ­À´´óÊý¾Ýµ¼Èëµ¼³öÊÇÄÇôµÄÇáËÉ£¨²»ÊǺܴó£¬200¶àMµÄÎı¾¶øÒÔ£©
×¢Ò⣺Èç¹û·¢ÏÖMYSQL unknown command '\'ÕâÑùµÄÌáʾ£¬ÔòÉèÖÃһϷþÎñÆ÷µÄ×Ö·û¼¯£¬È磺
mysql -uroot -ppasspass --default-character-set=utf8 databaseName <d:bakcup.sql
ÕâÑù¾Í²»»á±¨´íÁË£¬^_^
µ¼³ö ......

MySQLÐÔÄÜÓÅ»¯

×÷Õߣºandyao
Ô­ÎÄlink: http://andyao.javaeye.com/admin/show/144033
תÔØÇëÁôÃû
1. ¼ò½é
ÔÚWebÓ¦ÓóÌÐòÌåϵ¼Ü¹¹ÖУ¬Êý¾Ý³Ö¾Ã²ã£¨Í¨³£ÊÇÒ»¸ö¹ØϵÊý¾Ý¿â£©ÊǹؼüµÄºËÐIJ¿·Ö£¬Ëü¶ÔϵͳµÄÐÔÄÜÓзdz£ÖØÒªµÄÓ°Ïì¡£MySQLÊÇĿǰʹÓÃ×î¶àµÄ¿ªÔ´Êý¾Ý¿â£¬µ«ÊÇMySQLÊý¾Ý¿âµÄĬÈÏÉèÖÃÐÔÄܷdz£µÄ²î£¬½ö½öÊÇÒ»¸öÍæ¾ßÊý¾Ý¿â¡£Òò´ËÔÚ ......

WindowsÏ»·¾³±äÁ¿Ð޸ģ¨Éæ¼°MySQLÃüÁîµÄÖ±½ÓÔËÐУ©


ÓÒ¼üÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿
¿ÉÒÔ¿´µ½ÓÐÓû§±äÁ¿ºÍϵͳ±äÁ¿
ÔÚÕâÀïÎÒÃÇ¿ÉÒÔ½øÐÐÐ޸Ļ·¾³±äÁ¿
±ÈÈç˵ÎÒÃÇ°²×°ÁËMySQL·þÎñÆ÷£¬Ïë½øÈëMySQLµÄÃüÁîÐеĻ°¾Í±ØÐëÔËÐÐcmd
Èç¹ûûÓÐÉèÖû·¾³±äÁ¿µÄ»°ÎÒÃDZØÐë½øÈëMySQLµÄ°²×°Â·¾¶²ÅÄÜʹÓÃmysql -u root -pÕâ¸öÃüÁî
ÕâÑù»á¸øÎÒÃÇ´øÀ´ºÜ¶àÂé·³£¬ÕâʱºòÎÒÃÇÏëÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ