error:'Can'tconnecttolocalMySQLserverthroughsocket'/var/lib/mysql/mysql.sock'(2)'
[root@luozhonghua ~]# /usr/bin/mysqladmin -u root password `aaaaaa`
/usr/bin/mysqladmin: connect to server at `localhost` failed
error: `Can`t connect to local MySQL server through socket `/var/lib/mysql/mysql.sock` (2)`
Check that mysqld is running and that the socket: `/var/lib/mysql/mysql.sock` exists!
解決:
1》/etc/rc.d/init.d/mysqld status 看看mysql是否已經啟動
2》service mysqld start
相關文章
- Can'tconnecttolocalMySQLserverthroughsocket'/var/lib/mysql/mysql.sock'(2)MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解決方法MySqlServer
- 更換mysql資料目錄後出現ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 的解決辦法MySqlErrorServer
- docker mysql mysqld: Error on realpath() on ‘/var/lib/mysql-files‘ No such file or directoryDockerMySqlError
- ERROR 2002(HY000):Can't connect to local MySQL socket '/tmp/mysql.sock'ErrorMySql
- 解決Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "MySqlServer
- ERROR 2002 (HY000): Can't connect server socket /tmp/mysql.sockErrorServerMySql
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- "locate: can not open `/var/lib/mlocate/mlocate.db"問題解決
- 【MySQL】ERROR 1093 You canMySqlError
- [ERROR] mysqld: Can‘t open shared library ‘/usr/local/mysql/lib/plugin/validate_password.so‘ (errno:ErrorMySqlPlugin
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- mysql [ERROR] Can't create IP socket: Permission deniedMySqlError
- mysql.sock的作用MySql
- MYSQL ERROR 2003 (HY000) CanMySqlError
- MySQL "ERROR 1010(HY000):Error dropping database(canMySqlErrorDatabase
- mysql執行報錯mysql.sockMySql
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- mysql can't connect error about privilege----not root userMySqlError
- ERROR 2002 (HY000): Can't connect server socket /var/run/mysqld/mysqld.sockErrorServerMySql
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- Last_Error:Unabletouseslave'stemporarydirectory/var/tmpASTError
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- mysql報CanMySql
- 【MySQL】Can't get stat of './mysql/slow_log.CSV' (Errcode: 2)MySql
- Error: The action can not be performed because ...could not be locked?ErrorORM
- E: 無法獲得鎖 /var/lib/apt/lists/lock - openAPT
- Check mod for temporary file : /usr/local/centreon/var/lib/centplugins/Plugin
- ubuntu解決Could not get lock /var/lib/dpkg/lock-frontendUbuntu
- MySQL案例-不同尋常的[ERROR]Can't create a new thread (errno 11)MySqlErrorthread
- mysql [ERROR] InnoDB: ./ibdata1 can't be opened in read-write modeMySqlError
- 【MySQL】ERROR 1005 (HY000): Can't create table' (errno: 150)MySqlError
- MySQL報錯'ERROR 2002 (HY000): Can't connect to local MySQL server through'MySqlErrorServer
- ERROR in Entry module not found Error Can't resolve 'babel' in ' UseErrorBabel