52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-31 08:01:47 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2014-12-31 09:25 蝺刻摩
- r$ n7 Y9 g$ ~8 a# W/ y4 H7 [# B, j3 p
隤芣, [" o: e7 G! q
MySQL鞈摨急甈祆蝡荔靘憒嚗銝撣唾蝬摰蝯奸ocalhost閰梧閰脣董芾賢決ySQL鞈摨急祆雿輻剁閬曄策蝡臭蜓璈蝺衽ySQL鞈摨思蜓璈閰梧撠勗撠撣唾蝬摰蝯阡蝡臭蜓璈雿輻剁銝嫣蝝寞孵賣舀甈芷斗甈嚗MySQL甈敺憭臭誑銝:' `+ K3 d- r, p  T. j6 Q

* q1 h1 i+ U! D& j% C4 ^$ n) J. v7 [

1 L" _! h9 e  p, M/ A+ }鞈摨(DateBase)鈭蝔格:
3 k# Z8 U: x  N' z# Q! c# C
1 f! I8 p9 f& P+ Q1 E0 A

+ a) Q% O# Y) n7 `- nALL PRIVILEGESALTERCREATEDELETEDROPFILEINDEXINSERTPROCESSREFERENCESRELOADSELECTSHUTDOWNUPDATEUSAGE# S7 q! v9 h2 U$ \2 g- V2 u& Q
" f$ q2 I4 Q* p4 h- Z% B
/ j& r5 `2 N5 `3 s6 l& s
" n9 i8 y  U$ f6 K; V3 V
/ H: ?: d/ N+ N) S# f
鞈銵(Table)怎車甈:
4 A7 `) s0 z$ m8 M1 t- A6 n
4 q4 |4 l/ [' w1 |+ U8 M
3 Q$ U8 F6 I+ Z5 B8 o" \5 H5 ?
SELECTINSERTUPDATEDELETECREATEDROPINDEXALTER2 l% k; Q% Y. w# Z6 L& k
. ?0 m: `" b; B/ ?' M
) y2 o  l0 J7 n( u( t# N8 i+ P
; X6 y9 ]& N+ d1 n& }: e8 H

( V& Z! b+ ^5 S7 w$ C3 i" K鞈甈(column)銝蝔格:( R/ h0 j' F; l2 b, c7 k
6 O0 v5 d$ x5 q' |: |6 H# ~
; D. M  D: B5 o5 r/ C* B8 Z, d8 [7 u
SELECT INSERT UPDATE$ v8 r5 f3 \* g' d! W/ O9 {

  [7 S- b8 V  b5 s4 \/ W; d$ S4 t/ r, h& D. |5 y) X

* S' U) e: C; [9 m! ?撖虫:
5 V! S6 h! [6 L( B  a' A# c) E3 x$ @# J5 \0 A

3 a$ _$ L. Q) q6 P) r[root@localhost ~]# mysql -u root -p2 j; y9 h4 L$ h' F% o3 `1 y9 s* s
Enter password:
3 N+ j3 Z6 O; [, s& K7 sWelcome to the MySQL monitor.  Commands end with ; or \g.8 O+ j" N5 p1 w! F
Your MySQL connection id is 2
. H& C! S0 q! t  v& EServer version: 5.1.52 Source distribution. ?0 n2 b5 }6 ]( H7 z
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
$ H- o. J, E9 a5 \% r! ]This software comes with ABSOLUTELY NO WARRANTY. This is free software,
6 B5 E: `; ?2 S6 b5 L  _2 U/ g( Land you are welcome to modify and redistribute it under the GPL v2 license: q6 o$ Y7 y# ?% e0 b+ v
# v3 d& G8 ^' S  a
. K9 Z( c$ ]4 \4 o6 n
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
7 N& `  y  L0 D4 B+ S% y. P
7 y5 N) j  X- @4 A$ U4 N
0 @; Z. n# X) {$ a5 m
mysql> grant all privileges on *.* to test@localhost identified by '1234567'; //蝚砌留atabase嚗蝚砌眩able& j1 C' L9 }: P' |

3 K/ z* f/ a' p" C: `# i: u/ R
2 E' U& F- f+ ]
Query OK, 0 rows affected (0.00 sec)     //撱箇test撣唾祆甈6 s  K# g9 \! K+ R0 D

( v( g3 n( q- [+ f0 m

; k  j# t0 C5 g; M8 {mysql> grant all privileges on *.* to [email protected] identified by '1234567';
* d' x; N" S" p1 J( G3 Y0 V
6 u2 ]$ z7 \# O
% m; I" R2 G% q' x. s
Query OK, 0 rows affected (0.01 sec)   //撱箇test撣唾蝡舀
: I3 o2 C! m2 Q! }8 ~3 V
1 [4 \. ?; A- N6 V! n- M' ]) D% K* d, f' K2 K! \  e& @
' w2 ~$ j- {( }5 n3 B3 M
mysql> select host,user from mysql.user;   //亥岷MySQL甈撣唾: r2 M. t/ w: ]! @0 V; n
4 i0 w5 u# o3 a
, k! e6 a  V% K& W8 ?; M$ i
+-----------------------+-------+% ]4 F; [$ k9 b* {
| host                  | user  |. s: J; q, c, {7 ~, {
+-----------------------+-------+
9 T& @% V" u6 e% N| 127.0.0.1             | root  |! V4 S/ k2 ?8 O6 b+ o. \" Z1 t
| 192.168.1.2           | test  |       //撣唾test蝡舀甈" C! c: |. F9 O
| localhost             |       |
% F' D9 Q  H+ i6 S| localhost             | test  |        //撣唾test祆甈
5 H2 `1 [6 S! c1 o9 l+ a& ~  E| localhost             | root  |; ?. P" B) m. H4 G' y
| localhost.localdomain |       |8 l5 ]. H% s1 p7 l! ?& R
| localhost.localdomain | root  |& p) w  s# N. Y& s* E
+-----------------------+-------+1 h! @1 k0 v% z  D/ ]+ l5 [# o
7 rows in set (0.00 sec)5 a& w! B, p8 _  M' [( ]' c7 R  ?# ^
; s1 W7 ?3 {2 r- [* E* l
* ^: P- C8 o# H. |; c# V- ], |+ m
mysql> quit   //aMySQL
" v9 ]; Z/ m' v% EBye
  Q/ f3 G: Y" t- a[root@localhost ~]) Y3 t/ A7 P8 k! }' e& b" {

6 M, ~0 t) h. k7 Dp.s 嗡mysql 閬隤瘜隢http://mail.hmes.kh.edu.tw/~jona/redhat/mysqlphp/mysqlsyntax.htm
; G. [3 N; b" j) R/ }% E* U7 c& m+ {% X
: q) C6 N! S# J0 g
2 @1 F- l; k4 d, K" n' b

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 09:58 , Processed in 0.055907 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵