|
我的系统是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启动失败,失败日志如下:
- 060227 18:07:48 [ERROR] Can't start server : Bind on unix socket: No such file or directory
- 060227 18:07:48 [ERROR] Do you already have another mysqld server running on socket: /opt/mysql/var/mysql.sock ?
- 060227 18:07:48 [ERROR] Aborting
- 060227 18:07:48 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete
- 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这个文件夹里?
谢谢 |
|