雿輻 root 脣 MySQL7 v' C0 O+ [ ]
" F: @, T0 D) p) A, ~
+ e2 _+ f9 C' I7 J
0 E v* R5 G1 V2 G7 k# ^" s# G乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
1 j4 O9 K( H0 \- use mysql;
* U4 H) A& N+ N1 Y -
F2 S! x6 f4 H - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 3 a; ~3 P8 G* z) C) j5 L
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗" G5 y2 E, Q# G$ z1 S
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣
; w9 v0 m4 V- y蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
; X7 f- t7 R# N1 w" g8 F
銴鋆賭誨蝣
- c: ^6 @: M# S! |蝯虫雿輻刻鞈摨怎雿甈嚗
, [2 O- v# x$ O7 b( A/ u4 e- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
* V3 T: y2 d% {
+ B, g4 ^2 p6 G5 ]: \ |
|