mysql啟動不起來


在剛編譯安裝完成mysql,啟動mysql時報了下面錯誤:

/etc/init.d/mysqld start
Starting MySQL... ERROR! The server quit without updating PID file (/application/mysql-5.6.40/data/ZabbixServer.pid).

顯示是沒有mysq的pid文件

創建之后還是啟動不起來,報上述錯誤。

查看mysql錯誤日志:

2018-09-14 08:28:25 2524 [Note] Plugin 'FEDERATED' is disabled.
2018-09-14 08:28:25 2524 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-09-14 08:28:25 2524 [Note] InnoDB: The InnoDB memory heap is disabled
2018-09-14 08:28:25 2524 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-09-14 08:28:25 2524 [Note] InnoDB: Memory barrier is not used
2018-09-14 08:28:25 2524 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-09-14 08:28:25 2524 [Note] InnoDB: Using Linux native AIO
2018-09-14 08:28:25 2524 [Note] InnoDB: Using CPU crc32 instructions
2018-09-14 08:28:25 2524 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-09-14 08:28:25 2524 [Note] InnoDB: Completed initialization of buffer pool
2018-09-14 08:28:25 2524 [Note] InnoDB: Highest supported file format is Barracuda.
2018-09-14 08:28:25 2524 [Note] InnoDB: 128 rollback segment(s) are active.
2018-09-14 08:28:25 2524 [Note] InnoDB: Waiting for purge to start
2018-09-14 08:28:25 2524 [Note] InnoDB: 5.6.40 started; log sequence number 1626087
2018-09-14 08:28:25 2524 [Note] Server hostname (bind-address): '*'; port: 3306
2018-09-14 08:28:25 2524 [Note] IPv6 is available.
2018-09-14 08:28:25 2524 [Note]   - '::' resolves to '::';
2018-09-14 08:28:25 2524 [Note] Server socket created on IP: '::'.
2018-09-14 08:28:25 2524 [ERROR] Can't start server : Bind on unix socket: Permission denie
d 2018-09-14 08:28:25 2524 [ERROR] Do you already have another mysqld server running on socke
t: /application/mysql-5.6.40/tmp/mysql.sock ?
2018-09-14 08:28:25 2524 [ERROR] Aborting

socket套接字沒有權限;那就加上權限chmod 777 tmp

重啟:/etc/init.d/mysqld start

Starting MySQL. SUCCESS!

啟動成功,

提示:遇到錯誤,首先要學會看報錯日志,判斷問題出現在什么地方,然后再上網查閱解決辦法。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM