安装成功后修改默认密码
1、进入 mysql安装目录/bin
2、执行 ./mysql -u root -p
3、切换数据库 use mysql;
4、update user set password=PASSWORD('xxxxxx') where user='root';
-------------------------------------------------------------------------------
赋予远程连接的权限
1、grant all privileges on *.* to '账号'@'%' identified by '密码';
2、FLUSH PRIVILEGES;
-------------------------------------------------------------------------------
开放防火墙端口
1、vim /etc/sysconfig/iptables
2、-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
3、service iptables restart