Home > Database > Mysql Tutorial > mysql 开启远道 访问

mysql 开启远道 访问

WBOY
Release: 2016-06-07 16:25:31
Original
1103 people have browsed it

mysql 开启远程 访问 mysql -uroot -p 输入密码,执行下面这条语句 grant all privileges on *.* to ‘user‘@’%‘ identified by ‘password‘ with grant option; 其中,user是用户名,mysql默认的是root ,password是密码自己设置 。%表示任意主机。这样

mysql 开启远程 访问

mysql -uroot -p

输入密码,执行下面这条语句

grant all privileges on *.* to ‘user‘@’%‘ identified by ‘password‘ with grant option;

其中,user是用户名,mysql默认的是root ,password是密码自己设置 。%表示任意主机。这样就允许远程任意一台主机访问了。


Related labels:
source:php.cn
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