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 method to solve the problem that MySql can't connect to the local address localhost

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

Share

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

This article will explain in detail how to solve the problem that MySql cannot connect to the local address localhost. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The solution that mysql can not connect with localhost: 1, check whether the IP address can be ping; 2, check whether the firewall releases port 3306, if not, set the port number to 3306, launch the database command "net start mysql" to try to connect.

The first kind: check whether the IP address can be connected by ping, and look at the second one if you can

The second is to check whether the firewall has released port 3306, and management tools-- Advanced Security Firewall-- inbound rules-- New rules.

Click on the port

Set the port number to 3306

Allow connection-- write the name casually, for example: allow port 3306 to enter

Then the administrator runs the command (win+R) cmd

Start the database net start mysql and try to connect!

This is the end of the way to solve the problem that MySql cannot connect to the local address localhost. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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