雿輻 root 脣 MySQL
6 I8 Z9 b- M+ ]7 g2 c4 A( ~: o0 q7 X% O% I6 v( e# P+ L
3 t- c8 r! T6 e* S8 {6 ^
$ {, Z0 z) B5 ]* ^/ \ ~
乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
: @/ R/ |. ]& ^7 b c( H6 t- use mysql;
, p" L; S0 J) E6 N. W( { - : ^" F" K2 `& I5 t: B) O/ b
- INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣
5 V- }' t' A" Y' b9 G憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗
0 d1 B2 r4 [ ]. N; A- q- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 ) j/ L* H- n) Y
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
- C' i9 l6 h# J! B9 u8 V4 Z. x& ]
銴鋆賭誨蝣
) o3 H% O- {( P2 W$ L' X& `蝯虫雿輻刻鞈摨怎雿甈嚗7 t; g) v& I* ? T! L" }. `
- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
* g1 @: w& w8 X" x0 W' T8 C+ B& \" n9 V5 E) W: T
|
|