# mysql -u root
error 2002 (hy000) can't connect to local mysql server through socket '/tmp/mysql.sock' (111)
접속 하려고 했더니 위와 같이 에러가 발생이 된다.
# rm -rf /var/lib/mysql/mysql.sock
# service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.71-log Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
'Linux' 카테고리의 다른 글
The requested URL /index.html was not found on this server. You don't have permission to access index.html on this server. (0) | 2015.03.31 |
---|---|
xfs 파일 시스템 복구하기 mount: structure needs cleaning (0) | 2015.03.26 |
ypwhich: Can't communicate with ypbind (0) | 2015.02.27 |
solaris 10 x86 iso (0) | 2015.02.16 |
디렉토리별로 용량 체크 (0) | 2015.02.12 |