Database °æ (¾«»ªÇø)
·¢ÐÅÈË: rhine (·çÓêÎÞ×è), ÐÅÇø: Database
±ê Ìâ: MySQLÊý¾Ý¿â¼°ÆäODBC½Ó¿ÚµÄ½éÉÜ(2)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê07ÔÂ05ÈÕ19:05:28 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
Îå.MySQLµÄȨÏÞ¹ÜÀí
MySQLµÄȨÏÞ¹ÜÀí·Ç³£¸´ÔÓ,¿ÉÒÔ˵ÕâÊÇËüµÄµÃÒâÖ®´¦,°²È«µÄ¹ÜÀíÓÐÀûÓÚϵͳµÄ
Îȶ¶¨.
»ù±¾ÔÔò: [user] from [host] to [db] (of localhost)
ϵͳÊý¾Ý¿âmysqlÖÐÓÐËĸö·ÖÇø:func,user,db,host.ÆäÖкóÈý¸öÓйØȨÏÞ¹ÜÀí
.
ËüÃǵĽṹÈçÏÂ:
Database: mysql Table: user Rows: 3
+---------------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+----------+------+-----+---------+-------+
| Host | char(60) | | PRI | | |
| User | char(16) | | PRI | | |
| password | char(16) | | | | |
| ......_priv | char(1) | | | N | |
+---------------+----------+------+-----+---------+-------+
Database: mysql Table: db Rows: 3
+-------------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------+------+-----+---------+-------+
| Host | char(60) | | PRI | | |
| Db | char(32) | | PRI | | |
| User | char(16) | | PRI | | |
| ......_priv | char(1) | | | N | |
+-------------+----------+------+-----+---------+-------+
Database: mysql Table: host Rows: 0
+-------------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------+------+-----+---------+-------+
| Host | char(60) | | PRI | | |
| Db | char(32) | | PRI | | |
| ......_priv | char(1) | | | N | |
+-------------+----------+------+-----+---------+-------+
1.δÔÚdb±íÖÐÁгöµÄÈÎÒâÊý¾Ý¿â,user±íÖеÄȨÏÞ¶¼ÎªÓÐЧ.
¿ÉÖ»ÔÚuser±íÖÐÉèÖÃijЩsuperuserµÄȨÏÞ,¶øÔÚdb±íÖв»Éæ¼°.
2.hostÖ»ÓÃÀ´Î¬»¤ÓÐЧµÄserver,ȱʡΪ¿Õ±í,¼´Îª¾ÖÓòÍøÄÚ
µÄËùÓлúÆ÷.
3.¿ÉÓÃmysql -u root mysqlÃüÁîÐÞ¸ÄȨÏÞ.
4.ȨÏÞÆ¥Åäʱ×ñѵÄÔÔòÊÇ:
a. ±í˳Ðò: host -> db -> user;
b. hostºÍdbÓò¿ÉÓÐͨÅä·û%ºÍ_,±íʾËùÓк͵¥¸ö×Ö·û;
c. ͬһ±íÖÐ,Ò²ÊÇ host->db->userÓòµÄ˳Ðò,ÎÞͨÅä·ûÓÅ
ÓÚÓÐͨÅä·û;
d. userÓòΪ¿Õ(''),±íʾƥÅäËùÓÐÆäËûµÄÓû§;
e. host¿ÉΪ»úÆ÷Ãû,localhost,IP,»òͨÅä·û(Èç192.10.10.%),
µ«²»ÔÊÐíÓÃÊý×ֺ͵ãºÅ¿ªÍ·(Èç123.321.1.edu.cn);
f. ¸÷±íÖеÄȨÏÞ×îºóÏà"»ò";
5.ÐÞ¸ÄÍêÖ®ºó,Ö´ÐÐmysqladmin -u root reload¸üÐÂ
--
º£ÄÉ°Ù´¨£¬
ÓÐÈÝÄË´ó£¬
±ÚÁ¢Ç§³ß£¬
ÎÞÓûÔò¸Õ¡£
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: sy.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º6.758ºÁÃë