雿輻 root 脣 MySQL& ^! ~: Q4 i8 c1 `) {
- q$ E9 ?. B, I9 F T7 ~" s
, U3 D C( r1 K0 i, B
: a- I @: ~" D2 g ~ t& c乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
3 _5 [, D, Y. s2 t$ w6 L- use mysql;: B' c5 B& L) H+ G7 Z
-
+ T' V6 S& Z% [ - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 9 h% h4 w" r* O( _7 F
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗
+ W* j. |9 f4 l$ P- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 / j4 U* F6 @/ \8 Q) n. v
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
9 F2 v: g4 O q' D
銴鋆賭誨蝣
* t$ \% g# ~4 _0 k& i. p% `蝯虫雿輻刻鞈摨怎雿甈嚗
- Q) M5 m. L. Z, x, \- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
" C3 ?/ x5 a, a$ e x$ g
6 j. D I3 i# `- k# S3 t3 v! K, {6 I |
|