安裝mysql問題解決


[root@apollo init.d]# /etc/init.d/mysqld start
my_print_defaults: Can't read dir of '/etc/my.cnf.' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Starting MySQL.my_print_defaults: Can't read dir of '/etc/my.cnf.' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/my.cnf.' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Logging to '/data/mysql/apollo.err'.
ERROR! The server quit without updating PID file (/data/mysql/apollo.pid).

============================================

沒有 Can't read dir of '/etc/my.cnf.' 提示 的'/etc/my.cnf.'文件夾

千萬不要忘記這個點 ‘.’

[root@apollo init.d]# mkdir /etc/my.cnf.    

創建這個加.的文件成功

============================================

[root@apollo init.d]# /etc/init.d/mysqld start
Starting MySQL.Logging to '/data/mysql/apollo.err'.
........................................ SUCCESS!


免責聲明!

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



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