雿輻 root 脣 MySQL
3 h0 S, G0 `: X
. ~: x, K4 l" w# {
! t! t' n' @# j% e5 G3 `
) s* ?" I7 l& D4 y/ {3 g& V乩靘啣銝雿輻刻 user1, 撖蝣潸身摰 user1pwd, 銝虫蝯虫鞈摨怎甈
& g T* r9 k, m8 }$ q E9 { e- use mysql;
/ s' L' y9 z/ ^8 U' C: f% o& U -
2 S5 ?0 u) l3 a) K' ~. q! `: S' J - INSERT INTO user(host,user,password) VALUES('%','user1',password('user1pwd'));
銴鋆賭誨蝣 : ~, K( @7 M. _3 J* [
憒閬蝯虫雿輻刻孵鞈摨怎鈭雿甈嚗. O) i2 ~) E4 ?' }" ?2 n3 R
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣
- L5 m4 i. L6 D0 L4 U$ p! U6 L蝯虫雿輻刻孵鞈摨怎雿甈嚗- GRANT all ON dbname.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
( ?+ Q+ b! V8 I( ]4 O2 L4 Y" V
銴鋆賭誨蝣 ! z' W3 o/ s- H" n3 [* c
蝯虫雿輻刻鞈摨怎雿甈嚗7 Q- E8 I; f. ~0 J
- GRANT all ON *.* TO 'user1'@localhost IDENTIFIED BY 'user1pwd';
銴鋆賭誨蝣 憪:7 c! z; M. X! w! R8 H8 n ?
. f) Z% f' a/ x8 n
|
|