雿輻 root 脣 MySQL3 C" k. g% q9 S/ Y; d& E W
( c6 t" s* M. b( M/ {' |, R T7 T# i4 P% x
8 k3 n' z+ f) Y; h
乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
2 `9 Z. G* F5 f2 K$ ~. J- use mysql;! ^! Y0 U7 c- ]( Z8 H& M5 H! U
- $ T4 v2 r: B( o) ?! X% \: M( r! o
- INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣
6 H$ G9 V5 H3 I, d1 H憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗; K7 [; P5 M3 g/ C0 {
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣
1 _; n; f1 X0 B& P! Q8 T \* A蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
0 `: G7 G5 d7 t0 m: b
銴鋆賭誨蝣
7 H/ t0 l* p% O蝯虫雿輻刻鞈摨怎雿甈嚗
, R% n' T: H6 b* |7 @4 S3 |- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:
! b& I" ^# w8 g
9 U4 E/ e7 i' h2 ?$ W, K8 q# Y0 ~5 f |
|