雿輻 root 脣 MySQL
3 m! L% q! o6 R- r
* _1 {( ]% ?4 l, q, \- r4 P8 M8 B( _: s, D
* B: z, |; M5 P6 W乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
) c6 D9 _' D! U6 [- use mysql;
/ Q9 H. E' E* B2 z -
! B+ e; A4 P) J/ @ - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣
2 |, ^0 i( N# m U憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗 M8 z" h* ^7 I. `$ R
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣
) Z Y$ R" x. @5 @蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
H3 C: ~1 X: M, a( d' k; n! Z
銴鋆賭誨蝣
3 X8 |+ d5 q4 g6 C1 v8 F蝯虫雿輻刻鞈摨怎雿甈嚗' L8 l6 l% _2 D$ M% A8 c' J
- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
/ x B' W* J, s# n/ ~
6 j. f5 D: p' z8 } |
|