锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久在线视频,中文字幕亚洲一区二区av在线,精品欧美一区二区精品久久http://www.aygfsteel.com/jasmine214--love/category/47311.html鍑′簨涓嶆槸璇翠竴瀹氳鍋氬緱鏈濂姐佺珯鍦ㄦ渶鍓嶃佹案榪滅涓錛岃屾槸璇磋繖縐嶇Н鏋佸悜涓婄殑蹇冩佸崄鍒嗛噸瑕併傚湪婕暱鐨勪漢鐢熶腑錛屼綘浠竴瀹氳鏈夊媷姘旓紝姘鎬簤絎竴錛岀Н鏋佸潗鍦ㄧ敓媧葷殑鍓嶆帓鍛銆傗?/description>zh-cnSat, 15 Jan 2011 13:05:53 GMTSat, 15 Jan 2011 13:05:53 GMT60ubuntu mysql榪滅▼榪炴帴http://www.aygfsteel.com/jasmine214--love/archive/2011/01/14/342981.html騫繪搗钃濇ⅵ騫繪搗钃濇ⅵFri, 14 Jan 2011 06:11:00 GMThttp://www.aygfsteel.com/jasmine214--love/archive/2011/01/14/342981.htmlhttp://www.aygfsteel.com/jasmine214--love/comments/342981.htmlhttp://www.aygfsteel.com/jasmine214--love/archive/2011/01/14/342981.html#Feedback0http://www.aygfsteel.com/jasmine214--love/comments/commentRss/342981.htmlhttp://www.aygfsteel.com/jasmine214--love/services/trackbacks/342981.html ubuntu mysql榪滅▼榪炴帴 http://blog.csdn.net/helen_shw/archive/2010/01/22/5224524.aspxkiki@kiki-desktop:/etc/apache2

mysql error number 2003   

Can't connect to MySQL server xxx.xxx.xxx.xxx (10061)

鍦╱buntu 9.04涓粯璁ゅ畨瑁呬簡mysql錛岄粯璁ゅ彧鑳芥湰鍦拌闂紝google浜嗕竴涓嬶細(xì)

閲囩敤

鐧誨綍鍒癕ySQL鏈嶅姟鍣ㄧ錛屽湪mysql搴撲笅鎵ц

grant all on *.* to 'remote'@'172.16.21.39' identified by 'password';

鍗沖彲

濡傛灉瑕佽緗負(fù)浠諱綍瀹㈡埛绔兘鍙互浠oot榪炴帴鐨勮瘽錛屽彲浠ヨ繖涔堝啓錛?br /> grant all on *.* to 'root'@'%' identifiied by 'root鐨勫瘑鐮?

鏍煎紡錛歡rant select on 鏁版嵁搴?* to 鐢ㄦ埛鍚岪鐧誨綍涓繪満 identified by "瀵嗙爜"

綾諱技榪欑敤鏂規(guī)硶鐨勬暣鐞嗗涓嬶細(xì)

1銆?nbsp;鏀硅〃娉曘傚彲鑳芥槸浣犵殑甯愬彿涓嶅厑璁鎬粠榪滅▼鐧婚檰錛屽彧鑳藉湪localhost銆傝繖涓椂鍊欏彧瑕佸湪localhost鐨勯偅鍙扮數(shù)鑴戯紝鐧誨叆mysql鍚庯紝鏇存敼 "mysql" 鏁版嵁搴撻噷鐨?nbsp;"user" 琛ㄩ噷鐨?nbsp;"host" 欏癸紝浠?localhost"鏀圭О"%"

mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;



2. 鎺堟潈娉曘備緥濡傦紝浣犳兂myuser浣跨敤mypassword浠庝換浣曚富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣ㄧ殑璇濄?/p>
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;



濡傛灉浣犳兂鍏佽鐢ㄦ埛myuser浠巌p涓?92.168.1.3鐨勪富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣紝騫朵嬌鐢╩ypassword浣滀負(fù)瀵嗙爜

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 

浣嗛棶棰樹粛娌℃湁瑙e喅錛?/p>

鎵懼埌 鍛戒護(hù)   mysql> flush privileges    //浣夸慨鏀圭敓鏁?/p>

                鏄劇ず褰卞搷浜嗛浂琛屻?/p>

闂渚濈劧娌℃湁瑙e喅錛岄噸鏂板惎鍔╩ysql  sudo /etc/init.d/mysql restart

榪樻槸涓嶈銆?/p>

浠?http://www.aygfsteel.com/waterjava/archive/2008/04/27/196385.html

浜嗚В鍒癿ysql鏈夋湰鏈虹粦瀹氾紝鎵懼埌闂鎵鍦ㄣ?/p>

緙栬緫 /etc/mysql/my.cnf

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1

灝?#8221;bind-address = 127.0.0.1“娉ㄩ噴
sudo /etc/init.d/mysql restart閲嶅惎鍗沖彲榪滅▼璁塊棶

闂瑙e喅


****************************************************************************************
root@kiki-desktop:/etc/apache2# apt-get install libapache2-mod-auth-mysql
  apt-get install  lighttpd
  apt-get install openssl
root@kiki-desktop:/etc/apache2# apt-get install libapache2-mod-gnutls

$ mysql -u root -p
mysql> use authz_db;

mysql> CREATE TABLE users(
    -> user_name CHAR(30) NOT NULL,
    -> user_passwd CHAR(20) NOT NULL,
    -> PRIMARY KEY (user_name)
    -> );
   
mysql> GRANT SELECT
    -> ON authz_db.users
    -> TO authuser@localhost
    -> IDENTIFIED BY 'Your Password Here';
   
    mysql> flush privileges;
   
    mysql> INSERT INTO users VALUES('test',ENCRYPT('TEST'));
   
   
   
root@kiki-desktop:/etc/apache2# chkconfig --level 35 mysqld on

---------------------------------
濡傛灉瑕佽緗負(fù)浠諱綍瀹㈡埛绔兘鍙互浠oot榪炴帴鐨勮瘽錛屽彲浠ヨ繖涔堝啓錛?br /> grant all on *.* to 'root'@'%' identifiied by 'root鐨勫瘑鐮?

榪涘叆mysql,
grant all on *.* to 'root'@'%' identifiied by 'root鐨勫瘑鐮?

root@kiki-desktop:/etc/mysql# vim /etc/mysql/my.cnf
緙栬緫 /etc/mysql/my.cnf

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
灝?#8221;bind-address = 127.0.0.1“娉ㄩ噴

root@kiki-desktop:/etc/mysql# /etc/init.d/mysql restart



]]>
sql 瀛楁鍊艱漿鎴愬ぇ鍐欑殑鍑芥暟http://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340162.html騫繪搗钃濇ⅵ騫繪搗钃濇ⅵThu, 09 Dec 2010 09:11:00 GMThttp://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340162.htmlhttp://www.aygfsteel.com/jasmine214--love/comments/340162.htmlhttp://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340162.html#Feedback0http://www.aygfsteel.com/jasmine214--love/comments/commentRss/340162.htmlhttp://www.aygfsteel.com/jasmine214--love/services/trackbacks/340162.html 鍘熸枃錛歨ttp://www.baicaiba.com/article/Default.aspx?Id=26
sql涓父甯哥鍒板ぇ鍐欒漿灝忓啓錛屽湪SQL Server鍙互寰堟柟渚跨殑榪涜澶у皬鍐欒漿鎹紝鍏蜂綋鏂規(guī)硶濡備笅錛? Upper(expr) :杞崲涓哄ぇ鍐? Lower(expr)錛氳漿鎹負(fù)灝忓啓
鑼冧緥:(1)Select  lower(title)  from baicaiba
      (2)Select  Upper(title)  from baicaiba

]]>
鑱氬悎鍑芥暟-瑙i噴瀹炰緥http://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340161.html騫繪搗钃濇ⅵ騫繪搗钃濇ⅵThu, 09 Dec 2010 09:09:00 GMThttp://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340161.htmlhttp://www.aygfsteel.com/jasmine214--love/comments/340161.htmlhttp://www.aygfsteel.com/jasmine214--love/archive/2010/12/09/340161.html#Feedback0http://www.aygfsteel.com/jasmine214--love/comments/commentRss/340161.htmlhttp://www.aygfsteel.com/jasmine214--love/services/trackbacks/340161.html

涓銆佺浉鍏蟲蹇?/span>

     濡傛灉鍦ㄥ鏁版嵁榪涜緇熻鍒嗘瀽鏃訛紝鏃㈤渶瑕佷繚瀛樻煡璇㈢粨鏋滐紝鍙堣兘鍦ㄦ煡璇㈢粨鏋滀笅闈㈠皢緇熻緇撴灉鏄劇ず鍑烘潵錛屾垜浠彲浠ヤ嬌鐢╟ompute by 瀛愬彞銆?/p>

    Compute瀛愬彞鐢ㄤ簬鐢熸垚鍚堣錛屽茍灝嗗叾浣滀負(fù)闄勫姞鐨勬眹鎬誨垪鍑虹幇鍦ㄧ粨鏋滈泦鐨勬渶鍚庯紝褰撲笌by涓璧蜂嬌鐢ㄦ椂錛孋ompute瀛愬彞鍦ㄧ粨鏋滈泦鍐呯敓鎴愭帶浠朵腑鏂拰鍒嗙被姹囨匯傚彲鍦ㄥ悓涓鏌ヨ鍐呮寚瀹欳ompute by鍜孋ompute銆?/p>

鍏惰娉曟牸寮忓涓嬶細(xì)

[Compute

{

{Avg | count | max | min | stdev | stdevp| var | varp | sum  (expression)}[,…n]

[by expressin [,….]]

}]

Compute瀛愬彞涓嬌鐢ㄧ殑鑱氬悎鍑芥暟

娉ㄦ剰錛氳仛鍚堝嚱鏁頒笉鑳戒嬌鐢ㄥ瓧孌靛埆鍚嶃?/span>

 

浜屻佸疄渚嬭鏄?/span>

1銆佸噯澶囧伐浣?/span>

01 if object_id('student','table') is not null
02 drop table student
03 go
04 create table student
05 (
06 ID int identity(1,1) not null,
07 sex varchar(4) not null,
08 sclass varchar(10),
09 score int ,
10 constraint zhujian primary key(ID),
11 constraint scorecheck check(score>0 and score<=10)
12  
13 )
14 insert into student values('鐢?,1,2)
15 insert into student values('濂?,2,4)
16 insert into student values('濂?,2,6)
17 insert into student values('濂?,1,2)
18 insert into student values('鐢?,3,3)
19 insert into student values('鐢?,2,5)

 2銆乬roup by瀛愬彞

1 --group瀛楀彞
2 select sex,sclass,score,sum(score) as 鎬誨垎
3 from student
4 group by sex,sclass,score
5 order by sex
緇撴灉濡備笅錛?/div>
3銆佷嬌鐢╟ompute by瀛愬彞
1 --comlpute by瀛楀彞
2 select sex,sclass,score,sum(score) as 鎬誨垎
3 from student
4 group by sex,sclass,score
5 order by sex
6 compute sum(score),avg(score),max(score),min(score) by sex
緇撴灉濡備笅錛?/div>
瀹屽伐錛屾嫓鎷溿?br /> 鍘熸枃 錛?http://www.cnblogs.com/yuananyun/archive/2010/11/25.html


]]> 主站蜘蛛池模板: 称多县| 呼玛县| 临泉县| 三河市| 万州区| 天祝| 静乐县| 秭归县| 凯里市| 张家界市| 巩义市| 五指山市| 宁阳县| 房山区| 合水县| 罗平县| 龙口市| 罗源县| 徐水县| 峨眉山市| 治县。| 女性| 丰都县| 邢台县| 通城县| 元阳县| 勃利县| 湛江市| 景谷| 萍乡市| 昌都县| 新营市| 吉林市| 淮南市| 泌阳县| 广水市| 惠州市| 济宁市| 平罗县| 德昌县| 宜章县|