1.登陆phpmyadmin 帐号密码正确,提示以上错误信息。php
phpMyAdmin - 错误mysql
配置文件权限错误,不该任何用户都能修改!sql
解决方法:查看了一下phpmyadmin 权限是777 .spa
phpmyadmin必须在755权限下才能够运行。
chmod -cR 755 phpMyAdmin (解决)rest
-------------------------------------分割线-----------------------------------------code
发现CentOS7开关防火墙的命令service iptables save报错,使用原始命令开关:ip
systemctl stop firewalld systemctl mask firewalld
Then, install the iptables-services package:it
yum install iptables-services
Enable the service at boot-time:table
systemctl enable iptables
Managing the service登录
systemctl [stop|start|restart] iptables
Saving your firewall rules can be done as follows:
service iptables save
or
/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”的密码登陆。
------------------------------------分割线----------------------------------------------------