Home > Database > Mysql Tutorial > mysql开启远程访问权限_MySQL

mysql开启远程访问权限_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:30:44
Original
1085 people have browsed it

bitsCN.com

mysql开启远程访问权限

 

mysql开启远程访问权限

 

用root用户登录mysql

 

1、在mysql命令行中执行如下命令:[plain] # mysql> GRANT ALL PRIVILEGESON *.* TO 'root'@'%' WITH GRANT OPTION;  2、重启mysqld服务:[plain] # service mysqld restart  3、配置防火墙让Mysql的3306端口接收远程访问:[plain] # iptables -I INPUT -p tcp--dport 3306 -j ACCEPT  4、编辑/etc/sysconfig/iptables文件,在INPUT链开始添加如下规则:[plain] # iptables -A INPUT -p tcp --dport 3306 -jACCEPT
Copy after login

 


bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template