日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

linus启动mysql失败_Linux下MySQL启动失败的解决一例

發布時間:2025/3/19 数据库 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linus启动mysql失败_Linux下MySQL启动失败的解决一例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Linux下MySQL啟動失敗的解決一例:

當敲mysql命令時

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

當敲service mysqld start命令時,或者/etc/init.d/mysqld start

Timeout error occurred trying to start MySQL Daemon.

查看log日志命令less /var/log/mysqld.log

看看你是什么錯誤,我的是:

071119 23:09:04 mysqld started

InnoDB: The first specified data file ./ibdata1 did not exist:

InnoDB: a new database to be created!

071119 23:09:05 InnoDB: Setting file ./ibdata1 size to 10 MB

InnoDB: Database physically writes the file full: wait...

071119 23:09:05 InnoDB: Log file ./ib_logfile0 did not exist: new to be created

InnoDB: Setting log file ./ib_logfile0 size to 5 MB

InnoDB: Database physically writes the file full: wait...

071119 23:09:05 InnoDB: Log file ./ib_logfile1 did not exist: new to be created

InnoDB: Setting log file ./ib_logfile1 size to 5 MB

InnoDB: Database physically writes the file full: wait...

InnoDB: Doublewrite buffer not found: creating new

InnoDB: Doublewrite buffer created

InnoDB: Creating foreign key constraint system tables

InnoDB: Foreign key constraint system tables created

071119 23:09:06 InnoDB: Started; log sequence number 0 0

071119 23:09:06 [Note] /usr/libexec/mysqld: ready for connections.

Version: '5.0.22' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution

InnoDB: Error: trying to create a MySQL system table mysql/user of type InnoDB.

InnoDB: MySQL system tables must be of the MyISAM type!

071129 17:08:42 [Note] /usr/libexec/mysqld: Normal shutdown

071129 17:08:42 InnoDB: Starting shutdown...

071129 17:08:46 InnoDB: Shutdown completed; log sequence number 0 2566023

071129 17:08:46 [Note] /usr/libexec/mysqld: Shutdown complete

071129 17:08:46 mysqld ended

071201 12:09:10 mysqld started

071201 12:09:11 InnoDB: Started; log sequence number 0 2566023

071201 12:09:11 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

071201 12:09:11 mysqld ended

071201 12:10:49 mysqld started

071201 12:10:49 InnoDB: Started; log sequence number 0 2566023

071201 12:10:49 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

071201 12:10:49 mysqld ended

071201 12:12:34 mysqld started

071201 12:12:34 InnoDB: Started; log sequence number 0 2566023

071201 12:12:34 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

071201 12:12:34 mysqld ended

071201 12:14:51 mysqld started

071201 12:14:51 InnoDB: Started; log sequence number 0 2566023

071201 12:14:51 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

071201 12:14:51 mysqld ended

總結

以上是生活随笔為你收集整理的linus启动mysql失败_Linux下MySQL启动失败的解决一例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。