1. 程式人生 > >[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

man ren 恢復 tor 服務 sta ann war tmp

問題描述:啟動MySQL後,出現連接不上,報 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
[[email protected] ~]# service mysql start
Starting MySQL [ OK ]
[[email protected] ~]# mysql -uroot -poracle
Warning: Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)
[[email protected]

/* */ ~]# ll /var/lib/mysql/mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
說明:
mysqld.sock是mysql啟動以後自動生成的文件,關閉MySQL服務後,這個文件又會被刪除。如果MySQL啟動異常,就有可能不生成這個文件,登錄的時候就會出現你這個錯誤。
[[email protected] ~]# cd /var/lib/mysql
[[email protected] mysql]# ls
auto.cnf ib_logfile0 mysql01.err RPM_UPGRADE_MARKER-LAST
binarylog ib_logfile1 performance_schema test
ibdata1 mysql RPM_UPGRADE_HISTORY
[[email protected]
/* */ mysql]# vi mysql01.err
錯誤日誌報錯如下:
2017-06-04 04:08:47 2835
2017-06-04 04:08:47 2835 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

分析:
1、磁盤空間目錄不足
2、ibdata1 文件被其他的進程占用
3、 等

解決過程:
1、 -- 查看磁盤空間情況
[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 35G 7.8G 26G 24% /
tmpfs 699M 72K 699M 1% /dev/shm
/dev/sda1 2.9G 4.5M 2.7G 1% /tmp
2、 --InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
已經指出其他的線程啟動已經在運行無法再次創建相關的讀文件進程的權限,也就是說,現有的ibddata文件已經有人讀取了,無法再次啟動!
-- 查看系統 mysql 相關進程
[[email protected]

/* */ ~]# ps aux |grep mysql*
root 1742 0.0 0.0 108336 552 ? S 03:59 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/mysql01.pid
mysql 1930 0.2 37.8 1170956 541948 ? Sl 03:59 0:03 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/mysql01.err --pid-file=/var/lib/mysql/mysql01.pid --port=3306
root 3117 0.0 0.0 103312 876 pts/2 S+ 04:29 0:00 grep mysql*
-- kill -9 殺掉
[[email protected] ~]# kill -9 1930
[[email protected] ~]# ps aux |grep mysql*
root 3186 0.0 0.0 103308 852 pts/2 S+ 04:29 0:00 grep mysql*
-- 啟動
[[email protected] ~]# service mysql start
Starting MySQL.. [ OK ]
[[email protected] ~]# mysql -uroot -poracle
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql>
說明:恢復正常

[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

相關推薦

[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

man ren 恢復 tor 服務 sta ann war tmp 問題描述:啟動MySQL後,出現連接不上,報 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11[[email protected]/* */

MySQL啟動報錯問題排查:InnoDB: Unable to lock ./ibdata1 error

在OS X環境下MySQL啟動時報錯: 016-03-03T00:02:30.483037Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 35 2016-03-03T00:02:30.483100Z 0 [Note] InnoDB:

Warning: Unable to send packet: Error with PF_PACKET send() [11]: Message too long (errno = 90)

今天在使用tcpreplay重放流量時,發現有的資料包沒有傳送成功: Warning: Unable to send packet: Error with PF_PACKET send() [215]: Message too long (errno = 90) Warn

ERROR: JDWP Unable to get JNI 1.2 environment的解決方法

pre 發生 next ret bsp println 資料 new 獲取 當執行如下代碼時: //從控制臺獲取輸入 InputStream is = System.in; Scanner scanner = new Sca

ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2

bug 控制臺 gen 部分 運行 err turn 解決方法 之前 調試程序時,控制臺出現下列錯誤: ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDW

uwsgi部署相關問題Fatal Python error: Py_Initialize: Unable to get the locale encoding

directory config add bound int binary smp odi byte uwsgi uwsgi.ini 啟動報錯 ini文件中切換用戶nginx後,因為權限問題,python虛擬環境變成了系統默認環境,缺少很多庫。 另外切換用戶啟動,

錯誤筆記: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration di

不能 ava 可用 pro virtual cache 出現 nav ive 親測可用 --jack alexander@alexander-virtual-machine:~$ sudo apt-get install -y httpdE: Could not get

python3下:Was unable to import superset Error: No module named 'MySQLdb'

描述:python3.4環境下:superset的資料來源配置成mysql後,執行資料庫配置時:fabmanager create-admin --appsuperset 報如下錯誤: Was unable to import superset Error: No module named

ERROR JDWP Unable to get JNI 1 2 environment jvm GetEnv

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

解決gradle "Error:Cause: unable to find valid certification path to requested target"

這是由於app不信任我們的證書導致https會話失敗。 將jcenter()修改為: jcenter{ url 'http://jcenter.bintray.com' } 1 2 3 參考:http://jimiatwork

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module name

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' 解決方法: 1.找自己電腦上有沒有其他版本的Python,如果有

解決python安裝後cmd報錯Fatal Python error: Py_Initialize: unable to load the file system codec

因為我的電腦中以前裝有python,這次重新從網上安裝python3後與之前殘留的設定產生了衝突,開啟cmd輸入python出現錯誤: Fatal Python error: Py_Initialize: unable to load the file system codec Mo

Mac下USB資訊 & USB error 3: Unable to claim interface: Access denied (insufficient permissions)

檢視usb裝置資訊 在 終端輸入: system_profiler SPUSBDataType 可以檢視連線的usb裝置的資訊 比如我的usb資訊如下(部分內容): Android: Product ID: 0x2769 Vend

ERROR JDWP Unable to get JNI 1 2 environment jvm GetEnv

                ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2今天在用Main函式測試一段程式碼的時候,出現此問題;參考以下文章解決問題:http://blog.csdn.net/

gentoo kvm qemu virt-manager - Unable to complete install: error creating macvtap interface macvtap0@: Operation not supported'

drive ase -m err config inter network 工作 support 碰到這個一般是內核沒有開啟相應的 macvtap 選項,開啟相應選項後,就不會報錯了。 Device Drivers ---> Network Device S

Win10系統安裝Cisco VPN Client時報錯:installing Cisco VPN client -Error 27850. Unable to manage networking c

問題描述: WIN10系統安裝VPN Client時,出現報錯資訊: installing Cisco VPN client -Error 27850. Unable to manage networ

Fatal Python error: Py_Initialize: Unable to get the locale encoding問題記錄

問題: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $P

PyCharm出現錯誤,Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFound。。

借鑑如下的部落格:https://blog.csdn.net/qq_41574830/article/details/81153096 1.找到你安裝的python.exe,記住此地址 2.在Pycharm找到file--->setteing--project Interpret

糾錯: git push error “fatal: Unable to find remote helper for 'https'"

When I upload my local code to Github, I meet the problem of “git push error “fatal: Unable to find remote helper for ‘https’”“.