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

linuxÏ°²×°mysql °¢ Ìì µÄ

×î½üÏëÔÚ·þÎñÆ÷ÉÏÊÔÊÔMySQL5.1µÄ·ÖÇø£¬ÓÚÊǾÍÏë×Å×°¸öMySQL5.1£¬¾­¹ýÍ´¿àµÄÒ»¶Î¾­Àúºó£¬ÖÕÓÚÕÒ¸öÏÂÃæ×°¸öºÜºÃµÄ½Ì³Ì£¬ÌûÉÏÀ´±¸Íü¡£
1¡¢MySQLÃâ°²×°°æ/¶þ½øÖÆ°æÈí¼þ£¬²»ÓñàÒ룬ÏÂÔصØÖ·£º
     http://dev.mysql.com/downloads/
     Îļþ¸ñʽ£ºMYSQL-VERSION-OS.tar.gz
2¡¢´´½¨mysql×飬½¨Á¢mysqlÓû§²¢¼ÓÈëµ½mysql×éÖС£
     £¨²»Í¬°æ±¾µÄUnixÖУ¬groupaddºÍuseraddµÄÓï·¨¿ÉÄÜ»áÉÔÓв»Í¬¡££©
     #groupadd mysql
     #useradd -g mysql mysql
3¡¢½øÈëĿ¼/usr/local£¬½âѹËõÃâ°²×°°æ£¬²¢ÔÚ´ËĿ¼Öн¨Á¢ÃûΪmysqlµÄÈíÁ´½Ó¡£
     #cd /usr/local
     #gunzip < /path/to/MYSQL-VERSION-OS.tar.gz | tar xvf -
     (¸ÃÃüÁî»áÔÚ±¾Ä¿Â¼Ï´´½¨Ò»¸öÃûΪMYSQL-VERSION-OSµÄÐÂĿ¼¡£)
     (ʹÓÃGNU tar£¬Ôò²»ÔÙÐèÒªgunzip¡£Äã¿ÉÒÔÖ±½ÓÓÃÏÂÃæµÄÃüÁîÀ´½â°üºÍÌáÈ¡·Ö·¢£º
          #> tar zxvf /path/to/mysql-VERSION-OS .tar.gz)
     #ln -s MYSQL-VERSION-OS mysql
4¡¢Ìí¼ÓMySQLÅäÖÃÎļþ¡£
      Èç¹ûÄãÏëÒªÉèÖÃÒ»¸öÑ¡ÏîÎļþ£¬Ê¹ÓÃsupport-filesĿ¼ÖеÄÒ»¸ö×÷Ϊģ°å¡£ÔÚÕâ¸öĿ¼ÖÐÓÐ4¸öÄ£°åÎļþ£¬ÊǸù¾Ý²»Í¬»úÆ÷µÄÄڴ涨ÖƵġ£
     #cp support-files/my-medium.cnf /etc/my.cnf
     (¿ÉÄÜÄãÐèÒªÓÃrootÓû§ÔËÐÐÕâЩÃüÁî¡£)
5¡¢É趨Ŀ¼·ÃÎÊȨÏÞ£¬ÓÃmysql_install_db´´½¨MySQLÊÚȨ±í³õʼ»¯£¬²¢ÉèÖÃmysql,rootÕʺŷÃÎÊȨÏÞ¡£
     #cd mysql
     #chown -R mysql .
     #chgrp -R mysql .
     #scripts/mysql_install_db –user=mysql
     #chown -R root .
     #chown -R mysql data
     (×¢ÒâÒÔÉÏÃüÁîÖеÄ" . "·ûºÅ²»ÄÜÉÙ¡£)
6¡¢ÔËÐÐmysql
     #bin/mysqld_safe –user=mysql &
      (Èç¹ûûÓÐÎÊÌâµÄ»°,Ó¦¸Ã»á³öÏÖÀàËÆÕâÑùµÄÌáʾ:
 


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

ÔÚLinux»·¾³Ïµ¥»úÉÏʵÏÖMySQL5Ö÷´ÓÊý¾Ý¿âͬ²½¸´ÖÆ

1.°²×°MySQL£¨ÂÔ£©
2.Æô¶¯¶à¸öMySQL·þÎñÆ÷
    ҪʵÏÖÔÚµ¥»úÉÏÆô¶¯¶à¸öMySQL·þÎñÆ÷£¬ÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊÇÖ±½ÓʹÓÃmysqld_safeÀ´ÔËÐжà¸ö·þÎñÆ÷
µ±È»ÕâÑù·Ö±ð±à¼­ÅäÖÃÎļþ£¬¶øÇҹرշþÎñÆ÷µÄʱºòÒ²Òª¶ÁÈ¡ÅäÖÃÎļþ£¬ËùÒԱȽÏÂé·³£¬ÁíÒ»ÖÖ·½·¨ÊÇʹÓÃ
MySQLÌṩµ½¹¤¾ßmysqld_multi½Å±¾À´¹ÜÀí¶à¸ö·þÎñÆ÷£¬ÏÂÃæ ......

Linux: netstatµÄÓ÷¨

×ÊÁÏ1£º
·netstat –s
±¾Ñ¡ÏîÄܹ»°´ÕÕ¸÷¸öЭÒé·Ö±ðÏÔʾÆäͳ¼ÆÊý¾Ý¡£Èç¹ûÎÒÃǵÄÓ¦ÓóÌÐò£¨ÈçWebä¯ÀÀÆ÷£©ÔËÐÐËٶȱȽÏÂý£¬»òÕß²»ÄÜÏÔʾWebÒ³Ö®ÀàµÄÊý¾Ý£¬ÄÇôÎÒÃǾͿÉÒÔÓñ¾Ñ¡ÏîÀ´²é¿´Ò»ÏÂËùÏÔʾµÄÐÅÏ¢¡£ÎÒÃÇÐèÒª×Ðϸ²é¿´Í³¼ÆÊý¾ÝµÄ¸÷ÐУ¬ÕÒµ½³ö´íµÄ¹Ø¼ü×Ö£¬½ø¶øÈ·¶¨ÎÊÌâËùÔÚ¡£
·netstat –e
±¾Ñ ......

MysqlÖÐÎÄÂÒÂëÎÊÌâ


MysqlĬÈϵıàÂëÊÇlatin1£¬ËùÒÔͨ¹ýSqlyog»òÕßJava³ÌÐò¶ÁдÊý¾Ý¿âʱ£¬ÖÐÎĶ¼½«ÏÔʾΪÂÒÂ룬µ«ÔÚ¿ØÖÆ̨ͨ¹ýÃüÁîÐпÉÒÔÏÔʾÖÐÎÄ¡£
ÈçºÎ½â¾öÖÐÎÄÂÒÂëÎÊÌâÄØ£¬¸Ä±äMysqlϵͳµÄ±àÂ뷽ʽ£¬ÔÚMySqlĿ¼ÏµÄmy.iniÎļþÖеÄdefault-character-set=latin1¸ÄΪdefault-character-set=gbk(»òÆäËû),ÔÙÖØÆô·þÎñ¡£µ«ÈÔÈ»ÏÔʾΪÂÒÂ룬ԭÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ