当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
pytest接口自动化测试框架 | parametrize中ids的用法
MySQL查询进阶——从函数到表连接的使用你还记得吗
华为深度学习课程第六、七章
Gethostbyname \ getaddrinfo DNS domain name IP address is not safe
leetcode-6135:图中的最长环
【MySQL】操作表DML相关语句
Ogg synchronizes oracle to mysql, there may be characters that need to be escaped in the field, how to configure escape?
Go supports OOP: use struct instead of class
扁平数组转树结构实现方式
POJ2031空间站题解
MySQL query advanced - from the use of functions to table joins, do you remember?
Idea 常用插件
22 Niu Ke Duo School 1 I. Chiitoitsu (Probability dp)
LabVIEW RT中的用户界面更新速度
七夕来袭——属于程序员的浪漫
VoLTE基础学习系列 | 什么是SIP和IMS中的Forking
ACmix 论文精读,并解析其模型结构
pytest接口自动化测试框架 | 使用函数返回值的形式传入参数值
pytest interface automation testing framework | single/multiple parameters
Golang: go get url and form attribute value