Home > Database > Mysql Tutorial > mysql 开启远程登录_MySQL

mysql 开启远程登录_MySQL

WBOY
Release: 2016-06-01 13:12:08
Original
903 people have browsed it

两步开启mysql远程连接

一,登录mysql

# mysql -uroot -p


二,配置远程连接

mysql > GRANT ALL PRIVILEGES ON *.* TO 'user1'@'%'IDENTIFIED BY 'mypassword';

  或

mysql > GRANT ALLPRIVILEGES ON *.* TO 'root'@'%';


mysql >  FLUSH PRIVILEGES;

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