雿輻 root 脣 MySQL
. Q4 U! D" N' c4 S
' U v" G/ z( B+ o! o7 G7 f9 q3 H) Y0 H( M
- a% ^- v9 x% Q ^* r) V
乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
' @! k; t# A7 ]8 {" h# \. ^- use mysql;
# M \3 V: Q1 e" s8 x, R$ y -
* E% ^! \4 `% M8 s' Y - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣
6 U% K1 P1 D+ f* P憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗' z) M/ e/ A# d M& K: K
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 ( I0 R4 P. p; [3 B
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
, n) f) b+ r3 |: H: h5 j! V. i% z( D
銴鋆賭誨蝣 1 G- V: G% t, L
蝯虫雿輻刻鞈摨怎雿甈嚗: u2 T; Y+ w" t" Q4 q
- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
0 F# F9 ^9 Y7 u4 u) ^
' ]9 P0 a% Q4 x4 A |
|