Home > Database > Mysql Tutorial > How to log in to the remote database with mysql?

How to log in to the remote database with mysql?

零下一度
Release: 2017-06-23 11:27:57
Original
1269 people have browsed it

1.Loginmysql

##2.e mysql;

3.For example, the username and password are root/root.

Do you want to root use root to connect to # from any host ##mysql Server words.

@' '

followed by ip The address is generally localhost or 127.0.0.1 * % means that any ip can be accessed. GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

4.

Flush privileges

flush privileges;

If you cannot connect to the remote database, the port may not be open.

Add a new inbound rule to open the port used by mysql (common 3306)

The above is the detailed content of How to log in to the remote database with mysql?. For more information, please follow other related articles on the PHP Chinese website!

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