linuxÏ´´½¨mysqlÓû§
1¡¢´´½¨mysqlÊý¾Ý¿âµÄ¹ÜÀíÓû§
Êý¾Ý¿â°²×°ºÃºó£¬ÎÒÃÇÓ¦¸ÃΪmysqlÊý¾Ý¿â´´½¨Ò»¸ö¹ÜÀíÕʺš£Òª°ÑrootÓû§ÉèÖÃΪ¹ÜÀíÔ±£¬´ËʱÐèÒªÖ´ÐÐÏÂÃæÃüÁ
[root@CDS2 bin]# /usr/bin/mysqladmin -u root password 123456
˵Ã÷£ºÉÏÃæ´´½¨µÄmysqlÊý¾Ý¿â¹ÜÀíԱΪroot£¬ÃÜÂë123456
2¡¢´´½¨Ò»°ãµÄÓû§
¹¤×÷ÖÐÓõ½web·þÎñÆ÷ºÍmysql·þÎñÆ÷²»ÔÚͬһ̨¼ÆËã»úÉÏ°²×°µÄÔËÓá£ÐèҪͨ¹ýmysqlµÄÔ¶³ÌÕË»§·ÃÎÊmysql¡£
ÏÈÉÏÓï·¨£º
grant [ȨÏÞ] on [Êý¾Ý¿âÃû].[±íÃü] to ['Óû§Ãü']@['web·þÎñÆ÷µÄipµØÖ·'] identified by ['ÃÜÂë'];
ʵÀý£º(SQL)
GRANT all privileges
ON *.*
TO tstest@'%' IDENTIFED BY '123'; //¸øÓû§tstestÌí¼Ó%ÊÚȨ
GRANT all privileges
ON *.*
TO tstest@localhost IDENTIFIED BY '123'; //¸øÓû§tstestÌí¼ÓlocalhostÊÚȨ
ÒÔÉÏsqlÐèµÇ½µ½mysqlÖ´ÐУ¬ÈçÏ£º
[root@me ~]# mysql -uroot -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> *********************************
Ö´Ðкó¿ÉÒÔÓÃtstestÓû§Õý³£µÇ½ÈçÏ£º
[root@me ~]# mysql -utstest -p123
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> exit
Bye
ÁíÍâ¿ÉÒÔд³É½Å±¾ÎļþÖ´ÐУ¬root½øÈëmysqlºósource /Îļþ·¾¶/Îļþ
3¡¢MYSQL³·È¨²¢É¾³ýÓû§
ҪȡÏûÒ»¸öÓû§µÄȨÏÞ£¬Ê¹ÓÃREVOKEÓï¾ä¡£REVOKEµÄÓï·¨·Ç³£ÀàËÆÓÚGRANTÓï¾ä£¬³ýÁËTOÓÃfromÈ¡´ú²¢ÇÒûÓÐINDETIFED BYºÍWITH GRANT OPTION×Ӿ䣺
REVOKE privileges (columns) ON what from user
user²¿·Ö±ØÐëÆ¥ÅäÔÀ´GRANTÓï¾äµÄÄãÏ볷ȨµÄÓû§µÄuser²¿·Ö¡£privileges²¿·Ö²»ÐèÆ¥Å䣬Äã¿ÉÒÔÓÃGRANTÓï¾äÊÚȨ£¬È»ºóÓÃREVOKEÓï¾äÖ»³·Ïú²¿·ÖȨÏÞ¡£
REVOKEÓï¾äֻɾ³ýȨÏÞ£¬¶ø²»É¾³ýÓû§¡£¼´Ê¹Äã³·ÏúÁËËùÓÐȨÏÞ£¬ÔÚuser±íÖеÄÓû§¼Ç¼ÒÀÈ»±£Áô£¬ÕâÒâζ×ÅÓû§ÈÔÈ»¿ÉÒÔÁ¬½Ó·þÎñÆ÷¡£ÒªÍêȫɾ³ýÒ»¸öÓû§£¬Äã±ØÐëÓÃÒ»ÌõDELETEÓï¾äÃ÷È·´Óuser±íÖÐɾ³ýÓû§¼Ç¼£
Ïà¹ØÎĵµ£º
ÎÞÏÞ·ÖÀàÊÇÎÒÃÇ¿ª·¢Öзdz£³£¼ûµÄÓ¦Óã¬ÏñÂÛ̳µÄµÄ°æ¿é£¬CMSµÄÀà±ð£¬Ó¦Óõĵط½Ìرð¶à¡£
ÎÒÃÇ×î³£¼û×î¼òµ¥µÄ·½·¨¾ÍÊÇÔÚMySqlÀïID ,parentID,name£º
ÓŵãÊǼòµ¥£¬½á¹¹¼òµ¥¡£
ȱµãÊÇЧÂʲ»¸ß£¬ÒòΪÿһ´ÎµÝ¹é¶¼Òª²éѯÊý¾Ý¿â£¬¼¸°ÙÌõÊý¾Ý¿âʱ¾Í²»ÊǺܿìÁË£¡
´æ´¢Ê÷ÊÇÒ»ÖÖ³£¼ûµÄÎÊÌ⣬¶àÖÖ½â¾ö·½°¸¡£Ö÷ÒªÓÐÁ½ÖÖ·½·¨£ºÁÚ½Ó±íµ ......
MySqlÊý¾Ý¿âµÄÁÐÀàÐÍ£¨×Ö¶ÎÀàÐÍ)
MySQLÊý¾Ý¿âµÄ±íÊÇÒ»¸ö¶þά±í£¬ÓÉÒ»¸ö»ò¶à¸öÊý¾ÝÁй¹³É¡£
ÿ¸öÊý¾ÝÁж¼ÓÐËüµÄÌض¨ÀàÐÍ£¬¸ÃÀàÐ;ö¶¨ÁËMySQLÈçºÎ¿´´ý¸ÃÁÐÊý¾Ý£¬ÎÒÃÇ¿ÉÒÔ°ÑÕûÐÍÊýÖµ´æ·Åµ½×Ö·ûÀàÐ͵ÄÁÐÖУ¬MySQLÔò»á°ÑËü¿´³É×Ö·û´®À´´¦Àí¡£
MySQLÖеÄÁÐÀàÐÍÓÐÈýÖÖ£ºÊýÖµÀà¡¢×Ö·û´®ÀàºÍÈÕÆÚ/ʱ¼äÀà¡£
´Ó´óÀàÀ´¿´ÁÐÀàÐͺÍÊýÖ ......
·½±ãµÄlinuxÃüÁîÊÖ²á
À´Ô´: ChinaUnix²©¿Í ¡¡ÈÕÆÚ£º 2006.07.24 00:31¡¡(¹²ÓÐ0ÌõÆÀÂÛ) ÎÒÒªÆÀÂÛ
NO
·ÖÀà
PS1
ÃüÁîÃû
Ó÷¨¼°²ÎÊý
¹¦ÄÜ×¢½â
¶ÔÓ¦Õ½Ú
1
Îļþ¹ÜÀí
#
ls
ls -a
Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
Îļþ¹ÜÀí
#
ls
ls -l»òll
Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸР......
LinuxÄÚºË×·×Ùÿ¸ö½ø³ÌʹÓõÄ×Ê ±ÈÈç ¶ÑÕ» ´úÂë¶Î Êý¾Ý¶Î ÔËÐеÄλÖÃ
int getrusage(int who , struct rusage * usage) ¼ì²é½ø³Ì±¾Éí£¬×Ó½ø³Ì»òÕßÁ½ÕßÖ®ºÍµÄ×ÊԴʹÓÃ
º¯Êý·µ»ØÒ»¸öusage½á¹¹£¬´æ·Å½ø³ÌʹÓõÄ×ÊÔ´
usageÊǺܳ¤µÄL ......
1. I/O Port
¡¡¡¡ºÍÓ²¼þ
´ò½»µÀÀë²»¿ªI/O Port
£¬ÀϵÄ
ISA
É豸¾³£ÊÇÕ¼ÓÃʵ¼ÊµÄ
I/O
¶Ë¿Ú£¬ÔÚ
linux
Ï£¬²Ù×÷
ϵͳûÓжÔ
I/O
¿ÚÆÁ±Î£¬Ò²¾ÍÊÇ˵£¬ÈκÎÇý¶¯³ÌÐò¶¼¿É¶ÔÈÎÒâµÄ
I/O
¿Ú²Ù×÷£¬ÕâÑù
¾ÍºÜÈÝÒ×ÒýÆð»ìÂÒ¡£Ã¿¸öÇý¶¯³ÌÐòÓ¦¸Ã×Ô¼º±ÜÃâÎóÓö˿ڡ£
¡¡¡¡ÓÐÁ½¸ö
ÖØÒªµÄkernel
º¯Êý ......