|
我下载了mysql解压在了/ust/local下,配置过程如下:
$cd /usr/local/mysql-3.23.55
$./configure --prefix=/usr/local/mysql
$make
$make install
$cd ..
$cd mysql/bin
$./mysql_install_db
$chown -R root /usr/local/mysql
$chgrp -R wjc /usr/local/mysql //如果把这里的wjc改为mysql则系统提示:invalid group name `mysql'
$chown -R root /usr/local/mysql/bin
$chgrp -R wjc /usr/local/mysql/bin
$chown -R root /usr/local/mysql/var
$chgrp -R wjc /usr/local/mysql/var
$chmod 770 /usr/local/mysql/var
$chown -R root /usr/local/mysql/var/mysql
$chgrp -R wjc /usr/local/mysql/var/mysql
$chmod 770 /usr/local/mysql/var/mysql
$chown -R root /usr/local/mysql/var/mysql/*
$chgrp -R wjc /usr/local/mysql/var/mysql/*
$chmod 770 /usr/local/mysql/var/mysql/*
$vi /etc/ld.so.conf
#添加下面一行
/usr/local/mysql/lib
$ldconfig
$cd /usr/local/mysql/bin
$./safe_mysqld &
chown: `mysql': invalid user
Starting mysqld daemon with databases from /usr/local/mysql/var
030329 23:50:38 mysqld ended
$./mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
文提出在哪里?我该怎么办?
还请高手多多指教。。 |
|