1. 程式人生 > >MySQL Study之--MySQL啟動錯誤“/var/lib/mysql/mysql.sock”

MySQL Study之--MySQL啟動錯誤“/var/lib/mysql/mysql.sock”

檢視系統資訊:

[[email protected] ~]# ls -l /var/lib/mysql
total 110620
-rw-rw----. 1 mysql mysql       56 Sep  6 18:08 auto.cnf
-rw-rw----. 1 mysql mysql 12582912 Sep  8 16:18 ibdata1
-rw-rw----. 1 mysql mysql 50331648 Sep  8 16:18 ib_logfile0
-rw-rw----. 1 mysql mysql 50331648 Sep  6 18:06 ib_logfile1
drwx------. 2 mysql mysql     4096 Sep  6 18:06 mysql

srwxrwxrwx. 1 mysql mysql        0 Sep  8 16:18 mysql.sock
drwx------. 2 mysql mysql     4096 Sep  6 18:06 performance_schema
-rw-rw----. 1 mysql mysql        5 Sep  8 16:18 rh64.pid
-rw-r--r--. 1 root  root       293 Sep  6 18:07 RPM_UPGRADE_HISTORY
-rw-r--r--. 1 mysql mysql      293 Sep  6 18:07 RPM_UPGRADE_MARKER-LAST

drwx------. 2 mysql mysql     4096 Sep  6 18:06 test

檢視系統日誌:
[[email protected] ~]# tail /var/log/mysqld.log 
2015-09-08 16:18:10 2370 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.25-73.1 started; log sequence number 1626017
2015-09-08 16:18:10 2370 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2015-09-08 16:18:10 2370 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2015-09-08 16:18:10 2370 [Note] Server hostname (bind-address): '*'; port: 3306
2015-09-08 16:18:10 2370 [Note] IPv6 is available.
2015-09-08 16:18:10 2370 [Note]   - '::' resolves to '::';
2015-09-08 16:18:10 2370 [Note] Server socket created on IP: '::'.
2015-09-08 16:18:10 2370 [Note] Event Scheduler: Loaded 0 events
2015-09-08 16:18:10 2370 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.25-73.1'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Percona Server (GPL), Release 73.1, Revision 07b797f

相關推薦

MySQL Study--MySQL啟動錯誤“/var/lib/mysql/mysql.sock

檢視系統資訊:[[email protected] ~]# ls -l /var/lib/mysqltotal 110620-rw-rw----. 1 mysql mysql       56 Sep  6 18:08 auto.cnf-rw-rw----. 1 mysql mysql 125829

MySQL Study--MySQL普通使用者無法本地登陸

一、登入後檢視mysql.user表的情況可以看到,我的資料庫中有rose使用者和匿名使用者localhost;mysql> show grants for rose; +------------------------------------------------------------------

MySQL安裝成功之後啟動錯誤 3534、28000和簡單使用

MySQL下載地址: http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.16-winx64.zip 配置環境變數: 我的解壓地址為: E:\develop_utils\mysq

mysql遠程連接錯誤10038--navicat for mysql (10038)

bind bsp ont 這一 tle ng- 轉載 statistic detail mysql遠程連接錯誤10038--navicat for mysql (10038) 轉載:http://blog.csdn.net/chana1101/article/detail

Linux命令--多個Mysql的配置與啟動方式,mysqld mysql_safe mysql.server 區別

1.首先明確啟動mysql的方式有: 一、啟動方式 1、使用 service 啟動:service mysqld start 2、使用 mysqld 指令碼啟動:/etc/inint.d/mysqld start (不建議此方式,這是直接啟動mysqld程序,不管

ubuntu下mysql連結出現錯誤:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

轉自:https://www.cnblogs.com/adolfmc/p/5875584.html ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

Linux上mysql登陸錯誤解決辦法ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 解決方法:1:首先確認你在root許可權下 [[email p

啟動mysql出錯Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/spark01.pi

參考檔案的連結地址:http://icesquare.com/wordpress/mysql-starting-mysql-error-the-server-quit-without-updating-pid-file/

mac mysql啟動不了 Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2)

      官方直接下載的安裝包安裝後會出現一些問題,所以建議用工具下載安裝 mac的mysql意外無法正常啟動。 sudo mysql.server start Password: Starting MySQL .. ERROR! The server qu

Centos7啟動mysql5.6 提示ERROR! The server quit without updating PID file (/var/lib/mysql/XXX.pid).

Centos7安裝安裝MySQL-server-5.6.35-1.el7.x86_64.rpm,提示安裝失敗,因為Centos7安裝時預設安裝mariadb-libs.XXXXXX.rpm, 需要解除

MYSQL啟動異常:Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2) "

一次異常關機之後,再次啟動mysql服務,報出異常Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.s

MySQL——service mysql start出錯,mysql啟動不了,解決mysql: unrecognized service錯誤

ervice mysql start出錯,mysql啟動不了,解決mysql: unrecognized service錯誤的方法如下: [[email protected] ~]# service mysql start mysql: unrec

mysql啟動錯誤eror: Found option without preceding group in config file: /Users/gukey/.my.cnf at line: 1

Mac Os下啟動mysql5.6時,出現如下錯誤: eror: Found option without preceding group in config file: /Users/gukey/.my.cnf at line: 1 解決方法: mysql的配置檔案.m

啟動失敗的日誌提示通過more /var/lib/mysql/localhost.localdomain.err檢視

有時候在更換伺服器或者升級伺服器、遷移伺服器時候,必須遷移資料庫時候往往會出現一些意外事情。 大致情況如下: 一、故障和問題分析 1、啟動service mysqld restart 時候卻提示錯誤 [[email protected] ~]# service

[ 轉載 ] Centos 安裝mysql啟動失敗 出現 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock

details .sh fail oot The trac mysql csdn mks MySQL Daemon failed to start Mysql出問題一定要學會查看log https://blog.csdn.net/shuai825644975/arti

mysql】service mysql start出錯,mysql啟動不了,解決mysql: unrecognized service錯誤

開機 init.d starting 設置 tin 執行 rest root lan service MySQL start出錯,mysql啟動不了,解決mysql: unrecognized service錯誤的方法如下: [[email protected]/

mysql啟動錯誤處理

start ini 啟動 tar fail pre nbsp error innodb 1.當啟動MySQL時,報如下錯誤 [ERROR] Plugin ‘InnoDB‘ init function returned error.[ERROR] Plugin ‘InnoDB

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

local soc sock localhost 端口 cal error 優先 使用 當使用host參數為“localhost”連接Mysql服務時,會優先使用“sock文件”進行連接,而不是使用“IP:端口”進行連接,而Mysql嘗試使用“sock文件”進行連接時,卻無

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 的解決辦法

mark logs 都是 try cal iat resp 路徑 str 更換mysql數據目錄後出現ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql

出現”/var/lib/mysql/mysql.sock“不存在的解決方法

解決辦法如下 文件 socket pan 創建 pass 修改 ip地址 .so 這種情況大多數是因為你的mysql是使用rpm方式安裝的,它會自動尋找 /var/lib/mysql/mysql.sock 這個文件,通過unix socket登錄mysql。常見解決辦法如下