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

System error 5 occurred in net start mysql. Access denied.

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

Share

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

After installing mysql-5.7.19 in Windows yesterday, I want to restart the system today, so I want to shut down mysql and restart the host first.

As a result, this error was reported when it was closed in cmd.

> net start mysql

System error 5 occurred.

Access denied.

Later found that the permissions are wrong, run as an administrator in cmd, and start and shut down

This will be troublesome later because you need to remember to run as an administrator every time.

1. Win+q search to cmd right-click cmd and select "attach to [start] menu (U)"; so you find cmd on the start menu.

2. Win+q finds the directory where cmd is located, right-click to select Properties, select Shortcut, select Advanced, select run as Administrator, and then click OK!

In the future, just open the start menu and click the shortcut above to run cmd as an administrator! Type net start mysql again and you won't make a mistake!

Take a test again:

C:\ WINDOWS\ system32 > net start mysql

The MySQL service is starting.

The MySQL service has started successfully.

C:\ WINDOWS\ system32 > net stop mysql

The MySQL service is stopping.

The MySQL service stopped successfully.

OK! ~

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