MySQL啟動的問題 - Linux
By Agnes
at 2010-07-10T22:20
at 2010-07-10T22:20
Table of Contents
看著鳥哥的網站
剛剛想說架設Apache + MySQL + PHP
目前
Apache + PHP
算是完成了
現在剩下MySQL
鳥哥版的是這樣
[root@linux ~]# /etc/init.d/mysqld start
# 如果是初次使用這個指令來啟動,你的 /var/lib/mysql 會建立資料庫。
[root@linux ~]# netstat -tuln | grep ':3306'
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
# 底下在測試看能否以手動的方式連上 MySQL 資料庫!
[root@linux ~]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> quit
Bye
但我的版本是這樣
[root@localhost ~]# /etc/init.d/mysql start
bash: /etc/init.d/mysql: 沒有此一檔案或目錄
[root@localhost ~]# netstat -tuln | grep ':3306'
[root@localhost ~]# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var
/lib/mysql/mysql.sock' (2)
[root@localhost ~]# quit
bash: quit: command not found
首先我說一下
/var/lib/mysql 這個目錄,裡面其實沒有任何資料的啦
是我要在那目錄裡面擺資料嗎
還是說一點關係都沒有
--
Tags:
Linux
All Comments
By Kristin
at 2010-07-13T13:10
at 2010-07-13T13:10
By Rachel
at 2010-07-14T08:01
at 2010-07-14T08:01
By Sarah
at 2010-07-16T00:11
at 2010-07-16T00:11
Related Posts
kdenlive 改善
By Oliver
at 2010-07-10T10:01
at 2010-07-10T10:01
CentOS掛在VMware下的PHP問題
By Doris
at 2010-07-10T08:06
at 2010-07-10T08:06
CentOS掛在VMware下的PHP問題
By Barb Cronin
at 2010-07-10T01:10
at 2010-07-10T01:10
ubuntu重新安裝在雙系統下,硬碟分割問題。
By Lily
at 2010-07-09T15:48
at 2010-07-09T15:48
fedora12 在灌pidgin時遇到問題
By Andrew
at 2010-07-09T01:22
at 2010-07-09T01:22