我的Centos 6:阿帕奇不能安装</p> <p>的MySQL 5.7连接到MySQL
如果我连接到服务器Software error:
Can't connect to the database. Error: Access denied for user ''@'localhost' to database 'bugzilla_DB' Is your database installed and up and running? Do you have the correct username and password selected in localconfig?
和重启HTTPD服务全部开始工作,直到下一次重新启动。
我检查:
1. mysql starts a lot before httpd
2. waiting few minutes after server starts not help until i make httpd restart
3. mysql.pid and mysql.sock are ok
4. selinux disabled
5. iptables not used and disabled
6. no additional error in mysql.log
Apache通常不会连接到MYSQL – RiggsFolly
'''@'localhost''看起来您并未在连接中设置USERID。空''''应该是一个用户名**检查你的localconfig ** – RiggsFolly
当我使用相同的本地配置重新启动服务,它工作正常 – Alexk