当前位置:网站首页>net stop/start mysql80 access denied
net stop/start mysql80 access denied
2022-08-01 08:25:00 【time Friend】
Enter cmd in the lower left corner of the computer to open the command panel,On the premise of closing the database, enter net start mysql80, and it shows that access is denied and access error.

The reason may be that the cmd version is too low, so when opening cmd, some additional operations are required.
The specific operations are as follows:
Enter cmd in the lower left corner of the computer, then press and hold shift+ctrl+enter at the same time to enter the command prompt interface as an administrator.
If you need to start mysql, enter net start mysql80, you can see the corresponding prompt.

If you need to stop mysql, enter net stop mysql80, you can see the corresponding prompt.

Foreword:
After the MySQL installation is complete, you need to start the service process, otherwise the client cannot connect to the database.In the previous configuration process, MySQL has been installed as a Windows service. When Windows starts, the MySQL service will also start along with it. However, sometimes it is necessary to manually control the start and stop of the MySQL service, which can be achieved in two ways.
1. Through Windows Service Manager
Start the MySQL service You can check whether the MySQL service is enabled through the Windows service manager. First, click the "Start" menu, select the "Run" command in the pop-up menu, open the "Run" dialog box and enter the services.msc command,Click the "OK" button to open the Windows Service Manager, as shown in Figure 1-26.

As can be seen from Figure 1-26, the MySQL service is not started. At this time, you can directly double-click the MySQL service item to open the properties dialog box, and click the "Start" button to modify the status of the service, as shown in Figure 1-27 shown.

There is an option for startup type in Figure 1-27, there are three types of options to choose from, as follows.
(1) Automatic: Services that are usually closely related to the system must be set to automatic, and it will be started with the system.
(2) Manual: The service will not be started with the system and will not be activated until needed.
(3) Disabled: The service will no longer start, even when it is needed, unless modified to the above two types.For the above three situations, beginners can choose according to their actual needs. It is recommended to choose "automatic" or "manual" here.
2. Start MySQL service through DOS command
Starting the MySQL service can be started not only through Windows Service Manager, but also through DOS commands.The specific command to start the MySQL service through the DOS command is as follows:
net start mysql
After executing the above command, the displayed result is shown in Figure 1-28.


If it prompts "The service name is invalid", check the name of the Mysql service installed locally, and check it:
Computer - Right Click - Manage - Services and Applications - Services
Find the Mysql service name.

My local Mysql service name is Mysql55.
The startup command is: net start mysql55

边栏推荐
猜你喜欢
随机推荐
华为深度学习课程第九章——卷积神经网络以及案例实践
Golang: go get url and form attribute value
Holoview--Introduction
毕业论文写作技巧
HPC系统简介
灵魂发问:MySQL是如何解决幻读的?
leetcode-6134: Find the closest node to the given two nodes
Idea 常用插件
【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?
Mysql database deployment and initialization steps
基于tika实现对文件类型进行判断
various network protocols
pytest interface automation testing framework | single/multiple parameters
MySQL查询进阶——从函数到表连接的使用你还记得吗
【编程之外】当遮羞布被掀开,当人们开始接受一切
将aof文件转换为命令waoffle安装和使用
【面试:并发篇39:多线程:线程池】ThreadPoolExecutor类-提交、停止
Custom IP used in PCIE
POJ2031空间站题解
Graduation thesis writing skills









