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

Linux ±àÒë°²×° MYSQL 5.1 Óë Innodb

Linux ±àÒë°²×° MYSQL 5.1 Óë Innodb
±àÒëmysql5
´úÂë:
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \
--with-extra-charsets=all \
--with-charset=utf8 \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-plugins=all \
--with-pthread \
--enable-thread-safe-client

groupadd mysql
useradd -g mysql mysql
cp support-files/my-medium.cnf /etc/my.cnf
ÔÚmy.cnfÀïÔö¼Óuser=mysql
´úÂë:
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root . ; chown -R mysql data ;chgrp -R mysql .
bin/mysqld_safe --user=mysql &
mysqladmin -uroot password 'new-password'
Æô¶¯mysql:
´úÂë:
/usr/local/mysql/bin/mysqld_safe &
¹Ø±Õmysql:
´úÂë:
/usr/local/mysql/bin/mysqladmin shutdown
´úÂë:
cp ./support-files/mysql.server /etc/rc.d/init.d/mysqld
¿ÉÒÔʹÓÃserver mysqld restartÆô¶¯
debianÏ°²×°mysqlµÄ×¢ÒâÊÂÏî--innodb
Èç¹û´ÓÔ´´úÂë±àÒë°²×°mysql,ȱʡ°²×°Ê±,ÊÇûÓÐinnodbÒýÇæµÄ.ËùÒÔ,ÔÚconfigureµÄʱºò,Òª¼ÓÈë--with- plugins=all(»òÕßmax),ÕâÑù²Å»áÖ§³Öinnodb.ÔÚmysqlÀï¿ÉÒÔÖ´ÐÐshow enginesÃüÁîÀ´²é¿´µ±Ç°µÄmysql·þÎñÆ÷ËùÖ§³ÖµÄ´æ´¢ÒýÇæ.
http://www.mysqlperformanceblog.com/...iled-mysql-51/
¶àÏß³ÌÖ§³Ö·½ÃæֻҪעÒâÑ¡Ôñ--with-pthreadºÍ--enable-thread-safe-clientÑ¡Ïî¾Í¿ÉÒÔÁË¡£µÚÒ»Ïî¿ÉÒÔÖ¸Ã÷ʹÓà posixỊ̈߳¨unixµÄ±àÒ뷽ʽ¿ÉÄÜ»áÓÐЩ²»Ò»Ñù£¬ÒòΪunixµÄÄÚºËÏ̹߳¤×÷·½Ê½ÓëlinuxÏ̹߳¤×÷·½Ê½ÓбȽϴóµÄÇø±ð£¬ÓÈÆäfreebsd£©¡£
my-small.cnf ×îСÅäÖð²×°£¬ÄÚ´æ<=64M£¬Êý¾ÝÊýÁ¿×îÉÙ
my-large.cnf ÄÚ´æ=512M
my-medium.cnf 32M<ÄÚ´æ<64M£¬»òÕßÄÚ´æÓÐ128M£¬µ«ÊÇÊý¾Ý¿âÓëweb·þÎñÆ÷¹«ÓÃÄÚ´æ
my-huge.cnf 1G<ÄÚ´æ<2G£¬·þÎñÆ÷Ö÷ÒªÔËÐÐmysql
my-innodb-heavy-4G.cnf ×î´óÅäÖð²×°£¬ÄÚ´æÖÁÉÙ4G
´úÂë:
delete from mysql.user where User='';
delete from mysql.user where Host='127.0.0.1';
delete from mysql.user where Host='localhost.localdomain';
update user set Host='%';
mysql ²Ù×÷:
²é¿´mysq


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

¿ªÊ¼ÔÚlinux ƽ̨ѧϰ¿ª·¢c++Óöµ½µÄÎÊÌâ

1¡¢classµÄ¶¨ÒåÒ»¶¨ÒªÔÚºóÃæ¼Ó“£»”
2¡¢ÓÃcoutʱҪÔÚmainº¯ÊýÇ°¼Ó using namespace std;
3¡¢³öÏÖ undefined reference to `std::ios_base::Init::Init() ÌáʾµÄ»°£¬ÎÊÌâÊÇgcc±àÒëÆ÷³öÏֵģ¬½â¾öµÄ°ì·¨ÊÇ£ºÔÚlinuxϱàÒëc++ ³ÌÐòҪʹÓÃg++ ±àÒëÆ÷,Èç¹ûÄãÒªÊÇʹÓÃgcc±àÒëÆ÷¾Í»áÓÐÉÏÃæµÄ±¨´íÐÅÏ¢,Ö»ÒªÔÚÔÚgccºó¼Ó ......

Linux Shell±à³Ìstep by step Îı¾Îļþ×îºóÁ½ÐÐÏà¼õ

×÷Õß:fbysss
msn:jameslastchina@hotmail.com 
blog:blog.csdn.net/fbysss
ÉùÃ÷£º±¾ÎÄÓÉfbysssÕûÀí±àд£¬×ªÔØÇë×¢Ã÷³ö´¦
¹Ø¼ü×Ö£ºshell±à³Ì
±³¾°
        ͬÊÂÇóÖú¡£
ÐèÇó
      Ò»¸öÎı¾Îļþ£¬ÒªµÃµ½×îºóÒ»ÐÐÓëµ¹ÊýµÚÒ»ÐÐÏà¼õµÄ½á¹û¡£
²âÊÔÎÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ