雿輻 root 脣 MySQL
+ F/ z" S1 u" o/ ?) J' C' `1 T0 c' p; v
4 Z+ q$ O2 z! U2 {" ?
6 r# L+ r8 x" K* B, `9 e$ J! t0 R7 o( [
乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
' D8 I3 {8 |( H' {& Z5 D, Q# i- use mysql;5 D- y, u, n$ w8 v* a+ O
-
, J ?- U: J7 m$ A - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣
0 H o4 U* H9 k1 a! G3 h憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗
+ h2 v0 V2 U$ O8 ?- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 1 R; Y2 H- D; n, s' X# i7 }0 |
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';3 |$ P; Z0 f. M) W k4 A V
銴鋆賭誨蝣 1 t8 S9 @/ J( H1 ~
蝯虫雿輻刻鞈摨怎雿甈嚗
) Y9 n* {. @' G$ ~7 i5 _0 g5 a- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:/ R/ A) c: f* @! V4 ^4 w! g
2 w" {( M" R: h
|
|