Home >Database >Mysql Tutorial >Mysql设置外网连接_MySQL

Mysql设置外网连接_MySQL

WBOY
WBOYOriginal
2016-06-01 13:10:45967browse

Mysql安装完毕,默认是不能进行外网连接的,需要设置一下。

1.任何主机连接

grant ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '连接密码' WITH GRANT OPTION;




2.刷新配置
flush privileges;




Statement:
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
Previous article:mysql 用户授权_MySQLNext article:jdbc链接mysql url_MySQL