L(A/N)MP 中遇到的MySQL的坑
2019獨角獸企業重金招聘Python工程師標準>>>
1.登錄phpmyadmin 賬號密碼正確,提示以上錯誤信息。
????phpMyAdmin - 錯誤
????配置文件權限錯誤,不應任何用戶都能修改!
解決方法:查看了一下phpmyadmin 權限是777 .
phpmyadmin必須在755權限下才可以運行。
chmod -cR 755 phpMyAdmin (解決)
-------------------------------------分割線-----------------------------------------
發現CentOS7開關防火墻的命令service iptables save報錯,使用原始命令開關:
systemctl stop firewalld systemctl mask firewalldThen, install the iptables-services package:
yum install iptables-servicesEnable the service at boot-time:
systemctl enable iptablesManaging the service
systemctl [stop|start|restart] iptablesSaving your firewall rules can be done as follows:
service iptables saveor
/usr/libexec/iptables/iptables.init save也可以安裝的方式。
?
------------------------------------分割線----------------------------------------------------
use mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mysql' WITH GRANT OPTION;
flush privileges;
設置mysql遠程登錄,上面第二句是:設置root用戶任何主機都可以登錄并使用“mysql”的密碼登錄。
?
------------------------------------分割線----------------------------------------------------
?
?
?
?
轉載于:https://my.oschina.net/u/2443771/blog/1073874
總結
以上是生活随笔為你收集整理的L(A/N)MP 中遇到的MySQL的坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 直击面试现场:神级程序员仅100秒,60
- 下一篇: 英特尔高速存储技术