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

How to solve the problem of missing data folder in Mysql5.7 base directory

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article is mainly about the Mysql5.7 base directory data folder missing how to solve the content, if you are interested, then take a look at this article, I believe that after reading the Mysql5.7 base directory data folder missing how to solve the problem for you more or less reference value.

MySQL database in the upgrade to version 5.7, and the previous version is somewhat different, there is no data folder, we all know that MySQL database files are saved in the data folder, some people on the Internet said to copy the 5.6 version of the data folder, this argument is not reliable, I also tried, I can indeed log in, but can not change the administrator password, here is a standard solution.

After installing MySQL5.7, open the cmd command window, go to the bin directory in the MySQL installation directory, and enter the following command to enter:

Mysqld-initialize-insecure-user=mysql or enter mysqld-initialize-insecure

After executing the above command, MySQL will create a data folder and set up a default database. The login user name is root, the password is empty, and the later operation is the same as the previous version.

The above about the Mysql5.7 base directory data folder missing how to solve the details, is it helpful to you? If you want to know more about it, you can continue to follow our industry information section.

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