52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-31 08:01:47 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2014-12-31 09:25 蝺刻摩
) c+ w( k( c- q9 j" ]9 D( r. T8 p" o: H$ B! Z
隤芣
) m6 _2 _7 p1 W* ?2 M) L/ P% z5 H8 V  K6 SMySQL鞈摨急甈祆蝡荔靘憒嚗銝撣唾蝬摰蝯奸ocalhost閰梧閰脣董芾賢決ySQL鞈摨急祆雿輻剁閬曄策蝡臭蜓璈蝺衽ySQL鞈摨思蜓璈閰梧撠勗撠撣唾蝬摰蝯阡蝡臭蜓璈雿輻剁銝嫣蝝寞孵賣舀甈芷斗甈嚗MySQL甈敺憭臭誑銝:8 f+ J: f( s: {) E

6 l# L0 M$ |; w, L3 L' A# j" r. S6 u5 ^) p/ n% P
) z( L& |# F1 e1 |3 V* ^
鞈摨(DateBase)鈭蝔格:
( v9 F" i  v& }; l* B$ G# y$ Z
6 V* g- n; x9 A( y+ B
+ q% ~! u0 ^! c, b
ALL PRIVILEGESALTERCREATEDELETEDROPFILEINDEXINSERTPROCESSREFERENCESRELOADSELECTSHUTDOWNUPDATEUSAGE9 Z9 p0 X' b. L7 F/ h
5 E# G/ [# n& c- `. l" f: \7 N, |; X6 A
' P5 E7 F) S) B% l$ c

. V  x4 o2 W) f0 r
! \1 Y, u) n/ N
鞈銵(Table)怎車甈:
  t* I% x$ C4 y) h1 p" z' O' \. n" w4 d& w5 k

' q; C. w4 ]0 k2 h& h. o$ u" J& ?SELECTINSERTUPDATEDELETECREATEDROPINDEXALTER
( m0 [- u- z9 M* S9 Y  J
" u  H  V" _; ^, A# {3 {% ]

( i) `7 L8 K* d! Z( A, z
$ z1 t# {9 o7 x' t. c: W

" |" E4 n3 L( r# c鞈甈(column)銝蝔格:
* `, N- i, p) ?: R- \0 Q& n
- E( D% V1 {. V
7 @' Q& ~% Z8 C+ m* u+ ]
SELECT INSERT UPDATE
. _( _" j- r! @* d" Y3 m% \# V' S( T+ }# G3 t% z! ]
; I- _# ^) j9 |2 ]( X' k* e& u

% s! r8 N, M5 \撖虫:
7 W1 ]0 h& b' j4 q6 y$ G/ r- t% ?0 V& o' [

8 P5 C6 @, X! n( k( @( `[root@localhost ~]# mysql -u root -p
5 C" Q7 \7 q+ p5 o% s% e3 OEnter password:
6 H4 `9 |% r/ k0 L: b$ {, D4 hWelcome to the MySQL monitor.  Commands end with ; or \g./ v- C" |4 M8 d- A- l
Your MySQL connection id is 2
0 _" S$ m+ N2 T  C) J0 EServer version: 5.1.52 Source distribution! a7 v. G7 T- F9 U/ r& t! j0 }
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.- h, k9 V8 _/ Y9 y2 }1 L
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
8 E" c2 e& ~) d+ w3 jand you are welcome to modify and redistribute it under the GPL v2 license
" f: [* w' @3 T) x  {( P+ ?0 y
2 P# p- R/ M) E! s

0 P7 e5 p6 I0 B0 }  g. Q3 q; X2 p' ?. V6 kType 'help;' or '\h' for help. Type '\c' to clear the current input statement., p1 F  u1 Q" f7 r# L' B

& x2 @- u$ v- I0 q& D6 b8 a: Z
$ p) L5 c/ B8 n& I/ j4 F
mysql> grant all privileges on *.* to test@localhost identified by '1234567'; //蝚砌留atabase嚗蝚砌眩able, g6 I* |' H! e0 g! Q. J# M  X

- x) \7 b/ l2 k, y' B
" \$ u( F+ Y! l% M5 T: A7 c, ]
Query OK, 0 rows affected (0.00 sec)     //撱箇test撣唾祆甈5 `- {% t/ h; \5 G- J1 N

3 b% [( U% F) S  |0 \

4 h3 }2 `$ z$ K" J% e$ V" xmysql> grant all privileges on *.* to [email protected] identified by '1234567';. l  v6 g/ r. }0 a3 h. w# h
1 D' G* l* Y+ h+ [

, ~2 i( P* X: ?3 b: u8 l  LQuery OK, 0 rows affected (0.01 sec)   //撱箇test撣唾蝡舀
7 ~& g6 x: v2 |' J% j; x7 A! t! v4 c- @) C  v

$ D) J5 t3 [# Q' ?

3 s5 P' D4 D/ K0 Cmysql> select host,user from mysql.user;   //亥岷MySQL甈撣唾) [  r  _) ]2 {0 R" E
+ C' D: K3 K: y$ V

7 J2 b$ q" M* L+-----------------------+-------+$ A/ |1 I, J2 [7 [0 B
| host                  | user  |
; M3 g6 a/ j7 I( s$ D+-----------------------+-------+1 K. x' f+ L$ U; }) T% U7 j& n
| 127.0.0.1             | root  |! W. Y/ L. a/ Q& j8 h8 Z
| 192.168.1.2           | test  |       //撣唾test蝡舀甈8 F6 [( I5 g- x# L/ H0 u
| localhost             |       |# Q  W( @4 J  \# n9 l% u' J) B7 g
| localhost             | test  |        //撣唾test祆甈8 Q8 h* O3 \- X( N
| localhost             | root  |( N4 x; a3 O- q4 Y
| localhost.localdomain |       |' I+ a) v* n! C9 c9 e1 Z' T4 q. W( U
| localhost.localdomain | root  |
# @8 |: A# `; H# t+-----------------------+-------+
3 u: b  V. U% f) F! \& J6 L5 U. J: ?$ N7 rows in set (0.00 sec)3 J# R; W$ _0 Y# a1 C) n
* F6 F5 F: w# K: J
/ u( E3 k( M* E' E5 v
mysql> quit   //aMySQL
0 ?$ G4 Q/ b/ l3 n; QBye
' ?; L- o  f( V/ X[root@localhost ~], {  Y9 f# b% [
* p0 I4 j$ h, I! R
p.s 嗡mysql 閬隤瘜隢http://mail.hmes.kh.edu.tw/~jona/redhat/mysqlphp/mysqlsyntax.htm
0 N5 I3 N) }% [5 K: p) v1 M) Y

1 d; ~- H8 l5 P4 I  n* }- o1 L- b$ a5 ]+ c

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-26 15:19 , Processed in 0.065282 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵