雿輻 root 脣 MySQL( S* n9 \$ q$ U
2 x" r( z5 i- c3 _% I4 y: a) s0 m6 G k# C' j$ L7 U
8 m% B, s# ^/ j3 s$ {乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
0 k, J& j. b! `: e" j- use mysql;, W( c. j8 {% P
-
1 W) j5 A2 k2 H8 Q - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 2 {7 c- R8 u+ \. R l
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗2 ~9 o% ~, h* x7 U
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 + s9 H3 \( j" V2 { a3 L! O
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd'; R% [" l6 O1 _/ \& ?$ ?' C
銴鋆賭誨蝣
' B! u; C3 _6 M蝯虫雿輻刻鞈摨怎雿甈嚗$ ^4 K% y+ l8 A" J% W' {( i% O
- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
! }' \3 O7 t: H( e/ v* n/ q$ s( b$ i) \9 a( j* f# k4 C) p
|
|