mysql설치 후 실행시 소켓 에러?
mysql을 설치했는데 실행이 안되어 여쭤봅니다.
./configure --with-charset=utf8 --with-extra-charsets=all --prefix=/usr/local/server/mysql
옵션을 주어 컴파일을 하고 실행파일을 만들었습니다.
그리고 소스 디렉터리 안의 support-files에서 my-large.cnf를 /etc/my.cnf로 복사를 하였고 또한
mysql.server파일을 /etc/init.d/mysqld로 변경하여 복사 하였습니다.
mysql유저대신 admin유저를 만들었구요.
>useradd -M -s /bin/false admin
>chown -R admin.admin mysql (mysql directory)
>./mysql_install_db --user=admin
제가 mysql을 실행시켰을 때 아래의 메시지를 보았습니다.
[root@localhost bin]./mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost bin]# ./mysqladmin -u admin -p admin
Enter password:
./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 server]# service mysqld start
Starting MySQL.Manager of pid-file quit without updating fi[실패]
[root@localhost server]#
무엇이 잘못된 것인지 알 수 있을까요..?
댓글 달기