52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
     
亦: 3908|敺: 0
銝銝銝駁 銝銝銝駁

[蝬脤隡箸沘 [mysql]甈閮剖(恍蝡臬)

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-31 08:01:47 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2014-12-31 09:25 蝺刻摩
' C4 ]  p& v- q" E" ^" A7 Q4 V6 \* j; S
隤芣2 s8 `$ v  {* r' _4 \7 A0 ?2 A" o' |
MySQL鞈摨急甈祆蝡荔靘憒嚗銝撣唾蝬摰蝯奸ocalhost閰梧閰脣董芾賢決ySQL鞈摨急祆雿輻剁閬曄策蝡臭蜓璈蝺衽ySQL鞈摨思蜓璈閰梧撠勗撠撣唾蝬摰蝯阡蝡臭蜓璈雿輻剁銝嫣蝝寞孵賣舀甈芷斗甈嚗MySQL甈敺憭臭誑銝:
- e! ?9 c$ o  B+ V9 Y9 _$ o) R- w% p4 P: t& h
) O- ]5 X( y) f$ a
2 a# n3 N! [) ]9 T/ Y( P/ i
鞈摨(DateBase)鈭蝔格:4 Q/ e  t' b4 e1 l8 c! x3 e
1 {. O9 g8 {4 g) ~
! ?" P: F) }9 i! X$ H1 I
ALL PRIVILEGESALTERCREATEDELETEDROPFILEINDEXINSERTPROCESSREFERENCESRELOADSELECTSHUTDOWNUPDATEUSAGE
: u9 m6 L" `* J  N+ Z
) Z8 N2 W0 t7 D* l! x

7 J1 n4 R/ r) n4 B
6 e# Q4 A2 L* k* r& o/ u# \. a
- z  p, f" P& M. K" o+ t
鞈銵(Table)怎車甈:
9 ]; [8 M/ i. {$ Z5 n2 k. g/ O& y  C% H
# R! E! f# E0 U' I; K  L
SELECTINSERTUPDATEDELETECREATEDROPINDEXALTER
3 o4 K8 M/ }! j* U6 r% P2 P) F2 A
* z; W+ b3 |! {8 R" @8 y9 M

0 g- i9 }+ i' ]! T9 z: r

9 Q( F2 e  W- I$ T9 g$ d3 O鞈甈(column)銝蝔格:1 f. c( \5 p5 I
2 p6 n5 q5 B' q. m: D, ^
) L. z! T. z4 A" v6 {
SELECT INSERT UPDATE
+ H/ K9 `$ d' J( v: }0 v0 N1 x
' w, D* u' L/ l4 G, b% H( l
& U' \4 I4 y( E; X

& O# y: a) T7 [& ^( s: H) P5 b3 e0 r撖虫:3 p" @! |9 W2 g! M
; g. h8 f, A  h
7 o+ K. E0 R: j- h3 T
[root@localhost ~]# mysql -u root -p
( d1 O/ h0 m" \/ L8 X" aEnter password:
/ ^4 K/ I/ ]9 J5 Z( y2 `Welcome to the MySQL monitor.  Commands end with ; or \g.3 i4 F2 i1 S) P0 N) u. e/ d& g
Your MySQL connection id is 2
$ r! X1 S: V) p( L) s# @5 T% }! uServer version: 5.1.52 Source distribution
% C9 s) Q9 u5 `- KCopyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.* w$ r! f9 p2 I
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
! k: S: f( l) n! }6 c2 Mand you are welcome to modify and redistribute it under the GPL v2 license
+ X1 a* x3 b5 q! Y( B1 |  l) y; _
! G. X# @" T" ]/ M" e  I; j

# \6 L; t. d3 hType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
1 h" g* p' |: A4 A$ n% t3 J, C/ q& Q4 Y! |* b. @

0 y; c6 F4 x; T- t6 f, r9 O9 Amysql> grant all privileges on *.* to test@localhost identified by '1234567'; //蝚砌留atabase嚗蝚砌眩able
# ^8 }) y9 I3 P/ I/ t: ]5 u( ~* S1 ~) H/ h
/ c! z- d" i( E1 W
Query OK, 0 rows affected (0.00 sec)     //撱箇test撣唾祆甈
4 j% P1 N/ M. z5 V: o% K: X+ W6 u% Q+ G) x' _4 r9 _. Q

; ~3 X" ]# c; R! N- W- wmysql> grant all privileges on *.* to [email protected] identified by '1234567';* k* a6 ^8 k  ]! }9 U
/ p8 g9 C( B8 F& h* \  k
. i) {0 G9 g/ f. n7 J
Query OK, 0 rows affected (0.01 sec)   //撱箇test撣唾蝡舀
# E7 B4 A! t, N8 Z7 n. h7 ?6 x/ {

( ]% N. ]5 I, R) r) e4 L, _3 ^8 H6 ]
( e( o* t! c4 x
mysql> select host,user from mysql.user;   //亥岷MySQL甈撣唾
  |" l" [; {( ^! N/ s4 R, w, R9 G  d

" s& \0 j" v# @* a' ^2 J+-----------------------+-------+" U5 `3 h" T) B- r
| host                  | user  |
3 _% R  q" K9 X0 d# ?+-----------------------+-------+
2 ^+ e; M2 l9 w6 k( \% `# e| 127.0.0.1             | root  |7 ~# ]' L1 ]* D8 D" @9 H4 k
| 192.168.1.2           | test  |       //撣唾test蝡舀甈
, d& R0 J# U3 {, k% {* S" V) u| localhost             |       |4 d; V; V+ q; N
| localhost             | test  |        //撣唾test祆甈
0 ?0 X# D% v- t0 H5 ~! ~' v* w" A3 J| localhost             | root  |
4 r, b+ S4 E/ M! X! P| localhost.localdomain |       |& h7 j- M3 D7 G
| localhost.localdomain | root  |6 p& o: d& ]3 Z: b( f
+-----------------------+-------+5 e# X8 ~% A8 s. t
7 rows in set (0.00 sec)
* M  s5 O' L) P+ E+ W
2 _( h- ]( v/ S( W- s/ j6 g6 v

' m( h/ S: }  j" s; i' Lmysql> quit   //aMySQL
( O$ s$ I$ ?+ V$ pBye
! E+ A* k+ m7 ^5 [8 Q: V$ v[root@localhost ~]$ V  l+ T& A7 R* I7 z1 t: {3 E& m* \

% S0 l3 k6 E! J5 d! V" W( hp.s 嗡mysql 閬隤瘜隢http://mail.hmes.kh.edu.tw/~jona/redhat/mysqlphp/mysqlsyntax.htm, @" a: j9 p4 q
3 W/ z7 q1 x/ l" W$ S

' [4 w) C  h' s( p, S# _: B" F4 Z

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-26 02:53 , Processed in 0.062681 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵