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

Linux °²×°mysql

 
1¡¢¶þ½øÖÆÎļþ£¨tar.gz£©°²×°
ÏÈ´´½¨Óû§ºÍÓû§×é
 su - root
groupadd mysql
useradd -g mysql mysql
½âѹ¶þ½øÖÆÎļþ¡£
gunzip -c filename | tar -xf -
¸´ÖÆĿ¼/home/mysqlµ½/usr/local£»
´´½¨mysqlÐí¿É±í£º
linux:/usr/local/mysql #scripts/mysql_install_db --user=mysql
ÉèÖöþ½øÖÆËùÓÐȨ£¬Ê¹Ö®¹érootËùÓУ¬²¢ÊôÓÚmysqlËùÔÚ¹ÜÀí×飺
linux:/usr/local/mysql # chown -R root /usr/local/mysql
linux:/usr/local/mysql # chgrp -R mysql/usr/local/mysql
½«Êý¾ÝĿ¼µÄËùÓÐȨÉèÖÃΪmysql¹ÜÀíÓû§£º
linux:/usr/local/mysql # chown -R mysql /usr/local/mysql/data
Æô¶¯·þÎñÆ÷£º
linux:/usr/local/mysql # bin/mysqld_safe --user=mysql &
µÇÈ룺
linux:/usr/local/mysql # bin/mysql -u mysql
mysql>show databases;
×î³õÖ»ÓÐÁ½¸ö£ºtest£¬information_schema£»
ÒÔrootÉí·ÝµÇÈëÔòÓÐËĸö¡£
ÔËÐÐÃüÁîbin/mysql -u root -p£¬´Ëʱ½«³öÏÖpassword:£¨ÒªÇóÊäÈëÃÜÂ룩£¬µ«Ä¬ÈÏÇé¿öÏÂrootÓû§Ã»ÓÐÃÜÂ룬ËùÒԻسµ¼´¿É¡£´Ëʱ½«½øÈëMySQL½çÃ棬µ±È»ÈÔȻֻÊǸöÃüÁîÐд°¿Ú¶øÒÔ¡£
 
2¡¢´´½¨Óû§²¢ÊÚȨ
´´½¨Ò»¸ö¿ÉÒÔ´ÓÈκεط½Á¬½Ó·þÎñÆ÷µÄÒ»¸öÍêÈ«µÄ³¬¼¶Óû§£¬µ«ÊDZØÐëʹÓÃÒ»¸ö¿ÚÁîuas×öÕâ¸ö
mysql> grant all privileges on *.* to uas@’%’ identified by ’uas with;
×¢Ò⣺ÔÚmysqlÊý¾Ý¿âÖеÄuser±íÖУ¬½øÐв鿴£¬É¾³ýÖظ´Êý¾ÝºÍ²»ºÏ·¨µÄÊý¾Ý
ÈçÏàͬµÄhostÏÂÓÐÏàͬµÄÓû§»òÕßÓû§ÃûΪ¿Õ
3¡¢ÐÞ¸Ä×Ö·û¼¯
 
windowsÏÂÊÇmy.ini
linuxÏÂÊÇmy.cnf
 
locate my.cnf¾Í³öÀ´ÁË£¨Ã»ÓеĻ°ÏÈupdatedb£©
Ôö¼Ó»òÐÞ¸ÄÈçÏÂÅäÖÃ
[mysqld]
default-character-set=utf8
 
[mysql.server]
default-character-set=utf8
 
[mysqld_safe]
 
default-character-set=utf8
 
[client]
default-character-set=utf8
 
[mysql]
default-character-set=utf8
 
½øÈëmysqlÊý¾Ý¿âÓÃstatus;¿´¿´×´Ì¬¡£ÓÃÃüÁîÐ޸ĵÄÉèÖã¬ÔÚmysqlÖØÐÂÆô¶¯ºó»Ø±ä»ØĬÈÏÖµ
 
4¡¢µ¼ÈëÊý¾Ý¿â±í½á¹¹
ÏÈ´´½¨Êý¾Ý¿â£¬ÔÙÔÚÕâ¸öÊý¾Ý¿âϵ¼Èë±í½á¹¹¸ñʽÈçÏ£º
create database name; ´´½¨Êý¾Ý¿â
mysql > mysql -h myhost -u root -p database < sql.txt
 
ÀýÈ磺
mysql > create database uas;
mysql > mysql -h myhost -u root -p uas < sq


Ïà¹ØÎĵµ£º

Linux²Ù×÷ϵͳ×ÀÃæ»·¾³GNOMEºÍKDEµÄÇл» (ת)

Ò»¡¢ÉèÖÃGNOME»òÕßKDEΪĬÈϵÄÆô¶¯×ÀÃæ»·¾³
¡¡¡¡·½·¨1£ºÐÞ¸Ä/etc/sysconfig/desktop£¬¸ù¾ÝÐèÒª½«“DESKTOP”ºóÃæµÄÄÚÈݸÄΪKDE»òGNOME¡£
¡¡¡¡·½·¨2£ºÔÚµ±Ç°Óû§Ä¿Â¼Ï½¨Á¢“.xinitrc”Õâ¸öÎļþ(×¢ÒâÎļþÃûÇ°ÓÐÒ»¸öµãºÅ£¬´ú±í½¨Á¢µÄÊÇÒ»¸öÒþ²ØÎļþ)£¬ÎļþµÄÄÚÈݾÍÒ»ÐÐstartkde»ògnome-session£¬¸ù¾Ý ......

Linux ÌØÊâÎļþ£¨1£©——É豸Îļþ

Ò»¡¢É豸Îļþ
¡¡¡¡LinuxϵÄ/dev Ŀ¼ÖÐÓдóÁ¿µÄÉ豸Îļþ¡£Ö÷ÒªÊÇ¿éÉ豸ÎļþºÍ×Ö·ûÉ豸Îļþ¡£¡¡¡¡¿éÉ豸Îļþ¡¡¡¡ÔÚ¹ýÈ¥£¬ÔÚÌí¼ÓдÅÅ̺ó£¬ÍùÍùÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ¡£ÏÖÔÚͨ³£ÎÒÃDz»ÐèÒªÊÖ¶¯Ôö¼Ó¿éÉ豸Îļþ£¬ÔËÐÐÒ»ÏÂservice kudzu start £¬ÏµÍ³¾Í»á×Ô¶¯ÎªÄúÅäÖÃÏàÓ¦µÄÉ豸¡£¿éÉ豸µÄÖ÷ÒªÌصãÊÇ¿ÉÒÔËæ»ú¶Áд£¬¶ø×î³£¼ûµ ......

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ
LINUXϵͳÏ£¬´ó¶àÊýµÄÐÔÄܼà²â¹¤¾ß±£´æÔÚ/procĿ¼Ï¡£ÕâÀïÎÒÃǽ«Linux AS ºÍ SUSE LINUX EnterpriseServerÖУ¬ÃüÁîÐм°Í¼Ðη½Ê½ÏµÄÐÔÄܼà²â¹¤¾ß×ö¸ÅÀ¨ÐÔ½éÉÜ¡£ÕâЩ¹¤¾ßÓÐЩÔÚϵͳ¹¤¾ßÅÌÀÓÐЩ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ¡£sar,iostat,ºÍpstatÕâÈý¸ö¹¤¾ßÔÚdistributionCDÀҲ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ£¬ÍøÖ·Ê ......

linuxÆô¶¯¹ý³ÌdzÎö(2)

ÔÚ±¾ÎĵĵÚһƪÖÐ,ÎÒÖ÷Òª¶Ôbootsect.s½øÐÐÁ˽²Êö. ÔÚµÚ¶þ²¿·ÖÖÐ,ÎÒ½«¶Ôsetup.s½øÐÐÃèÊö,ÎÒ½«ÆäÊÓΪÊÇLinuxÆô¶¯µÄµÚ¶þ²½Öè.
²Ù×÷ϵͳµÄÆô¶¯¹ý³ÌÊÇÒ»¸öÂþ³¤¶øÓÐÐòµÄ¹ý³Ì,¸÷¸ö½×¶Î¶¼ÓÐÆ䲻ͬµÄ×÷ÓÃ. boot;setup;initËäÈ»¿´Ëƺܽӽü,µ«ÊÇÈ´ÊÇÍêÈ«²»Í¬µÄ¹ý³Ì.ËûÃǸ÷˾ÆäÖ°,°´²¿¾Í°à.boot±È½Ï׼ȷµÄ·­ÒëÓ¦¸ÃÊÇÒýµ¼,¶øsetupµÄ·­Òë ......

Linux 2.6.19.x Äں˱àÒëÅäÖÃÑ¡Ïî¼ò½é

°æȨÉùÃ÷
±¾ÎÄ×÷ÕßÊÇһλ×ÔÓÉÈí¼þ°®ºÃÕߣ¬ËùÒÔ±¾ÎÄËäÈ»²»ÊÇÈí¼þ£¬µ«ÊDZ¾×Å GPL µÄ¾«Éñ·¢²¼¡£ÈκÎÈ˶¼¿ÉÒÔ×ÔÓÉʹÓá¢×ªÔØ¡¢¸´ÖƺÍÔÙ·Ö·¢£¬µ«±ØÐë±£Áô×÷ÕßÊðÃû£¬Ò಻µÃ¶ÔÉùÃ÷ÖеÄÈκÎÌõ¿î×÷ÈκÎÐÎʽµÄÐ޸ģ¬Ò²²»µÃ¸½¼ÓÈκÎÆäËüÌõ¼þ¡£Äú¿ÉÒÔ×ÔÓÉÁ´½Ó¡¢ÏÂÔØ¡¢´«²¥´ËÎĵµ£¬µ«Ç°ÌáÊDZØÐ뱣֤ȫÎÄÍêÕûתÔØ£¬°üÀ¨ÍêÕûµÄ°æȨÐÅÏ¢ºÍ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ