RedHat Linux 7.2 下成功安装MySql后为什么不能使用?(在线守候)

RedHat Linux 7.2 下成功安装MySql后为什么不能使用?(在线守候)

[root@localhost root]# cd /usr/local/mysql/bin

[root@localhost bin]# ./safe_mysqld &
[1] 1890
[root@localhost bin]# Starting mysqld daemon with databases from /usr/local/mysql/var
020804 10:47:28  mysqld ended


[1]+  Done                    ./safe_mysqld

[root@localhost bin]# ./mysqladmin -u root -password "lifei"
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@localhost bin]#      
看log啊
把mysql目录改边所有权      
cp ../support-files/mysql.server /etc/rc.d/init.d/mysql
chmod a+x /etc/rc.d/init.d/mysql

cp ../support-files/mysql_medium.cnf /etc/my.cnf