雿輻 root 脣 MySQL: L$ b! d: O. J
0 l8 \$ o4 Y9 Q! O: q4 U. v1 \ N; h2 |$ J! Q$ M
& q p8 x) l. }$ `
乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈$ u! m! A. V1 K5 g. V) ?% ]
- use mysql;
- B: x+ G" w9 l. V: d -
* G- z; D1 u) I - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 / ~/ _: j. o( Q, q/ q
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗 [# Y3 e2 Y2 M4 R& ~
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 $ D* z$ \& d& |: q) ~" @4 D: J
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';/ \) n* d- L# ?6 F5 k* @! n# l
銴鋆賭誨蝣 2 F9 {9 X0 H0 ^: O2 B3 ?
蝯虫雿輻刻鞈摨怎雿甈嚗
. d% c; _# U! W$ t/ p- n- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:, V: H3 E- E( G+ L1 c
8 M. L6 B1 `) r# |: z' g" e# F* c |
|