Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ÎļþÀàÐ͵ÄÅÐ¶Ï £¨×ª£©

LinuxÏ¿ÉÒÔÓÃls –l ÃüÁîÀ´ÅжÏÎļþÀàÐÍ£¬ÈçÉÏ Í¼Ëùʾ¡£¿ÉÒÔÒÀ¾ÝµÚÒ»ÁÐÖеÄ10¸ö×Ö·ûÀ´Åжϡ£
¡¡¡¡• -rw-r—r—Ö¸Ã÷ÁË1.txtÎļþÊÇÒ»¸öÆÕͨÎļþ£¬1.txtºÍmyprog04Îļþ¶¼ÊÇÆÕͨÎļþ¡£ÒÔ”-“¿ªÍ·µÄ¶¼ÊÇÆÕͨÎļþ£¬¶øÒÔ”d”¿ªÍ·µÄÊÇĿ¼Îļþ¡£
¡¡¡¡• brw-rw---- Ö¸Ã÷ÁË/dev/sd ......

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

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

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

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

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


ÕâÊDZ¾ÎĵõÚÈý²¿·Ö,ÔÚÇ°Á½²¿·ÖÖÐ,ÎÒÒѾ­½²ÊöÁËLinux²Ù×÷ϵͳÊÇÈçºÎ±»»úÆ÷bootµ½,²¢ÇÒloadµ½Öƶ¨µÄÄÚ´æµØÖ·µÄ.ÎÒÃǽ«¼ÌÐøµÚ¶þ²¿·ÖµÄÄÚ
ÈÝ,¿´¿´²Ù×÷ϵͳÔÚÍê³ÉÁËbootsect.sºÍsetup.sµÄÔËÐкó,ÔÚhead.sÖÐ×öÁËЩʲô.
ÈÃÎÒÃÇ»ØÒäÒ»ÏÂ,ÔÚsetup.sÖÐ,ÎÒÃÇ°ÑÕû¸ösystemÄ£¿é´ÓµØÖ·0x10000³öÍùÏÂÒƶ¯ÁË0x10000µÄ¾àÀë,Ò²¾ÍÊÇ˵,ÏÖ ......

Oracleѧϰ±Ê¼Ç£ºlinuxÏÂÆôÍ£Oracle


1. linuxÏÂÆô¶¯oracle
su - oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
exit
2. linuxϹرÕoracle
su - oracle
sqlplus /nolog
conn /as sysdba
shutdown immediate
exit
lsnrctl stop
exit
3¡¢Æô¶¯¼àÌýÆ÷
oracle@suse92:~> lsnrctl start
4¡¢Í£Ö¹¼àÌýÆ÷
oracle@suse92:~ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ