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't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- docker mysql mysqld: Error on realpath() on ‘/var/lib/mysql-files‘ No such file or directoryDockerMySqlError
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- [ERROR] mysqld: Can‘t open shared library ‘/usr/local/mysql/lib/plugin/validate_password.so‘ (errno:ErrorMySqlPlugin
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- mysql執行報錯mysql.sockMySql
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- E: 無法獲得鎖 /var/lib/apt/lists/lock - openAPT
- ubuntu解決Could not get lock /var/lib/dpkg/lock-frontendUbuntu
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- 問題解決:無法獲得鎖 /var/lib/dpkg/lock
- Can't debug c++ project because unable to static library start program *.libC++Project
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- 排錯./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either doErrorHTTPUIXML
- E: 無法獲得鎖 /var/lib/dpkg/lock-frontend - open (11: 資源暫時不可用) E: 無法獲取 dpkg 前端鎖 (/var/lib/dpkg/lock-front前端
- 2、MySQL錯誤日誌(Error Log)詳解MySqlError
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError
- Ubuntu 報錯:無法獲得鎖 /var/lib/dpkg/lock解決辦法Ubuntu
- cadvisor報錯failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/docAI
- E: 無法獲得鎖 /var/lib/dpkg/lock - open (11: 資源暫時不可用) E: 無法鎖定管理目錄(/var/lib/dpkg/),是否有其他程式正佔用它?
- E: 無法定位軟體包、E: 無法獲得鎖 /var/lib/dpkg/lock - open (11: 資源暫時不可用)、E: 無法鎖定管理目錄(/var/lib/dpkg/)
- lib 安裝失敗,error Microsoft Visual C++ 14.0 is required.ErrorROSC++UI
- mysqld: Can‘t create directory ‘E:\Software\mysql-5.7.24-winx64\data\‘ (Errcode: 2 - NoMySql
- Ubuntu中E: 無法獲得鎖 /var/lib/dpkg/lock - open (11: 資源暫時不可用) E: 無法鎖定管理目錄(/var/lib/dpkg/),是否有其他程式正佔用它?Ubuntu
- mysql Unknown error 1054MySqlError
- Ubuntu apt-get安裝時提示無法獲得鎖 /var/lib/dpkg/lock - openUbuntuapt-get
- mysql遇到Variable can’t be set to the value of ‘NULL’MySqlNull
- 無法獲得鎖 /var/lib/dpkg/lock -open(11: 資源不可用) 解決方法
- ubuntu:無法獲得鎖 /var/lib/dpkg/lock - open (11: 資源暫時不可用)Ubuntu
- MySQL error 錯 誤 碼MySqlError
- 無法獲得鎖 /var/lib/dpkg/lock-frontend - open (11: 資源暫時不可用)
- Mac使用Docker時,卷預設掛載路徑/var/lib/docker/volumes不存在問題MacDocker
- 關於var a = 2; JS幹了什麼?JS