亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3367 | 回復(fù): 4
打印 上一主題 下一主題

MySQL server through socket '/tmp/mysql.sock' (2)問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-11-11 15:00 |只看該作者 |倒序?yàn)g覽
各位大哥郁悶死了
我在配置mysql集群,配置完成啟動(dòng)沒有問題
使用ndb_mgm -e 查看
[root@new-host ~]# ndb_mgm -e show
Connected to Management Server at: 192.168.0.38:1186
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=3    @192.168.0.38  (Version: 5.2.3, Nodegroup: 0, Master)
id=4    @192.168.0.39  (Version: 5.2.3, Nodegroup: 0)

[ndb_mgmd(MGM)] 2 node(s)
id=1    @192.168.0.38  (Version: 5.2.3)
id=2    @192.168.0.39  (Version: 5.2.3)

[mysqld(API)]   2 node(s)
id=5    @192.168.0.38  (Version: 5.2.3)
id=6    @192.168.0.39  (Version: 5.2.3)
兩臺(tái)都能啟動(dòng)
進(jìn)入mysql的時(shí)候出現(xiàn)的錯(cuò)誤ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我在網(wǎng)上查過很多資料,全不能解決我的問題
而且機(jī)器上的/var/lib目錄中沒有mysql的文件夾也就沒有mysql.sock的文件,
我自己建立了一個(gè)mysql的目錄在/var/lib中有手動(dòng)建立一個(gè)mysql.sock的文件,建立了一個(gè)連接ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
在進(jìn)入mysql的時(shí)候提示ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
兩臺(tái)機(jī)器的進(jìn)程
1、
root      2556  0.0  0.4   2552  1048 ?        SN   14:33   0:00 /usr/libexec/gam_server
root      2559  0.0  0.5   4776  1460 tty1     Ss   14:36   0:00 -bash
root      2598  0.1  1.0   9844  2796 ?        Ss   14:39   0:00 sshd: root@pts/0
root      2600  0.0  0.5   5072  1528 pts/0    Ss   14:39   0:00 -bash
root      2631  0.1  0.6   7084  1656 ?        Ssl  14:39   0:00 ndb_mgmd --ndb-nodeid=2
root      2642  0.0  0.7   8428  1892 ?        Ss   14:39   0:00 ndbd --ndb-nodeid=4
root      2643  1.2 38.2 298996 97788 ?        Sl   14:39   0:07 ndbd --ndb-nodeid=4
root      2677  0.0  0.4   4484  1096 tty1     S+   14:40   0:00 /bin/sh /usr/bin/mysqld_safe --ndb-nodeid=6
mysql     2719  0.1  5.9 120112 15324 tty1     Sl+  14:40   0:01 /usr/libexec/mysqld --basedir=/usr --datadir=/usr/var --user=mysql --ndb-nodeid=6 --pid-file
root      2760  0.0  0.3   4492   940 pts/0    R+   14:50   0:00 ps -aux

2、

root      2799  0.1  0.4   7152  1716 ?        Ssl  14:39   0:00 ndb_mgmd --ndb-nodeid=1
root      2810  0.0  0.5   8428  1888 ?        Ss   14:39   0:00 ndbd --ndb-nodeid=3
root      2811  1.1 27.1 298996 97904 ?        Sl   14:39   0:07 ndbd --ndb-nodeid=3
root      2844  0.0  0.3   5348  1100 tty1     S+   14:39   0:00 /bin/sh /usr/bin/mysqld_safe --ndb-nodeid=5
mysql     2889  0.1  4.2 120112 15324 tty1     Sl+  14:39   0:01 /usr/libexec/mysqld --basedir=/usr --datadir=/usr/var --user=mysql --ndb-nodeid=5 --pid-file
root      2918  0.0  0.2   5356   940 pts/0    R+   14:49   0:00 ps -aux

如果是使用mysqld_safe 單獨(dú)啟動(dòng)后的話可以進(jìn)入mysql

[ 本帖最后由 daitaohong 于 2009-11-11 15:05 編輯 ]

eeee.JPG (239.06 KB, 下載次數(shù): 20)

eeee.JPG

ddd.JPG (259.76 KB, 下載次數(shù): 18)

單獨(dú)啟動(dòng)myaql

單獨(dú)啟動(dòng)myaql

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2009-11-11 15:44 |只看該作者
請確認(rèn)一下你在Cluster中啟動(dòng)的MySQL是不是成功的?纯炊丝诒O(jiān)聽是不是在?

如果你的sock文件在/tmp下可以通過:
mysql -S /tmp/mysql.sock  試一下。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2009-11-11 15:45 |只看該作者
請確認(rèn)一下你在Cluster中啟動(dòng)的MySQL是不是成功的?纯炊丝诒O(jiān)聽是不是在?

如果你的sock文件在/tmp下可以通過:
mysql -S /tmp/mysql.sock  試一下。

論壇徽章:
8
綜合交流區(qū)版塊每周發(fā)帖之星
日期:2015-12-02 15:03:53數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34酉雞
日期:2013-10-19 10:17:1315-16賽季CBA聯(lián)賽之北京
日期:2017-03-06 15:12:44
4 [報(bào)告]
發(fā)表于 2009-11-11 16:17 |只看該作者
或者在my.cf中顯示指定socket文件位置

論壇徽章:
8
綜合交流區(qū)版塊每周發(fā)帖之星
日期:2015-12-02 15:03:53數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34酉雞
日期:2013-10-19 10:17:1315-16賽季CBA聯(lián)賽之北京
日期:2017-03-06 15:12:44
5 [報(bào)告]
發(fā)表于 2009-11-11 16:18 |只看該作者
另外
ps aux|grep mysql
看下socket文件位置
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP