Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution that mysql can not connect remotely

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the solution that mysql can not be connected remotely, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

Mysql can not connect to the remote solution: 1, open the command prompt, log in to mysql;2, execute [grant all privileges on *. * to root@ "ip" identified by "password] command to give remote access; 3, refresh permissions.

Solution:

First open a command prompt and execute the mysql-u root-p command

Then execute grant all privileges on *. * to root@ "xxx.xxx.xxx.xxx" identified by "password"; the command gives IP-xxx.xxx.xxx.xxx all permissions, including remote access.

Finally, execute the flush privileges; command to refresh the permissions.

These are all the solutions that mysql can't connect remotely. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report