LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 901|回复: 1

Mysql启动出现问题……

[复制链接]
发表于 2006-2-27 19:27:19 | 显示全部楼层 |阅读模式
我的系统是debian 3.1的,安装了mysql却无法启动,具体过程如下:
[root@ltiredboy mysql-4.1.18]#
./configure --prefix=/usr/local/mysql --with-mysqld-user=tiredboy --with-extra-charsets=all --with-unix-socket-path=/usr/local/mysql/var/mysql.sock

make

make install

cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf

创建mysql授权表
/usr/local/mysql/bin/mysql_install_db
已经成功并产生了var目录

chmod 755 /usr/local/mysql/var
chown -R tiredboy:tiredboy /usr/local/mysql/var

/usr/local/mysql/share/mysql/mysql.server start

MYSQL启动失败,失败日志如下:

  1. 060227 18:07:48 [ERROR] Can't start server : Bind on unix socket: No such file or directory
  2. 060227 18:07:48 [ERROR] Do you already have another mysqld server running on socket: /opt/mysql/var/mysql.sock ?
  3. 060227 18:07:48 [ERROR] Aborting

  4. 060227 18:07:48 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  5. 060227 18:07:48  mysqld ended
复制代码

请不要告诉我日志已经讲得很清楚,谢谢,因为我实在没办法理解这个日志中的错误,比如,我并没有/opt/mysql这个文件夹,他却说:Do you already have another mysqld server running on socket: /opt/mysql/var/mysql.sock ?这个我就搞不懂,难道说mysql一定得装在opt这个文件夹里?
谢谢
 楼主| 发表于 2006-2-27 19:42:51 | 显示全部楼层
唉,想想我真是笨,刚才竟然漏了vi /etc/my.cnf这一步,现在问题解决了,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表