安装mysql数据库遇到mysql.sock的问题~!!

由 king2003 在 01-17-2004 20:55 发表:

安装mysql数据库遇到mysql.sock的问题~!!

我是按照北南兄写的教程装的 第一次装上了 调出php的环境

后来重新安装了系统 又重新装了一下 就出来如下:

/opt/mysql/bin/mysqladmin: connect to server at 'localhost' failed

error:"Can't connect to local MYSQL server through socket '/opt/mysql

/var/mysql.sock'(2)'

check that mysqld is running and that the socket:'/opt/mysql/var/

mysql.sock' exists!

用root联结的时候就出现这个毛病 以前可以用光驱重装系统(刚学的,大家不要

) 现在学校放假 所以没有光驱啦 希望各位大侠帮忙解决 谢谢啦


由 Snoopy 在 01-18-2004 00:19 发表:


是不是少了mysql-sever***包?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 king2003 在 01-18-2004 19:47 发表:


那我应该怎么办呢

我装的时候就是 tar zxvf mysql.4.0.3xxxxx.tar

cd mysqlxxxxxxxxx

./configure 然后加的参数 加了 unix-socket-path参数了呀

make

make install


由 dancingpig 在 01-19-2004 10:33 发表:


老问题。。。我没用过自己编译的那个包

我的mysql直接install_db就可以了

估计你这个自己编译的时候没指定明白或者指定路径有问题

你自己看下mysql.sock这个文件在哪里

find下


由 kenwee 在 01-19-2004 20:57 发表:


1、可能该目录不存在。看看是否运行了install_db?

2、该目录存在,但权限不对,看看是不是777?

3、也许重新启动一下机器就好了?


屏幕守望者……


由 king2003 在 01-22-2004 03:18 发表:


我找啦 没有mysql.sock这个文件 有var目录 并且权限我也设置了

但就是联不上 也

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus