雿輻 root 脣 MySQL; b" `! [- X/ p
% s6 e0 I3 w+ c5 b% U, b/ D6 l& M
- [- i! X5 @2 q# ~/ u: T c
' e6 f$ d* T+ O0 C8 ]+ B乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
8 R3 ]5 U, ]2 O4 [5 j) {- use mysql;
" z5 A0 W& A5 c, T& K3 b4 o4 | - . V% ]( u+ k, n5 U) O
- INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 7 p8 ~5 O3 W7 y! }1 \
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗
0 E, j: Y( n2 Z. t$ s3 `+ ^! r- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 / Q1 J8 l5 V& A5 t& Q: f s/ H8 t
蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
; m! t2 `7 t* {1 h4 V
銴鋆賭誨蝣 2 [& u( k; ?& D0 t1 x
蝯虫雿輻刻鞈摨怎雿甈嚗
) o* @& \3 i7 ^$ B4 g- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:7 Y" E8 `8 i- E2 B
- @; m, Y# R5 ]9 |* T) i |
|