当前位置:网站首页>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

边栏推荐
- The socket option
- C语言中编译时出现警告C4013(C语言不加函数原型产生的潜在错误)
- 2022.7.31-----leetcode.1161
- net stop/start mysql80 拒绝访问
- VoLTE基础学习系列 | 什么是SIP和IMS中的Forking
- 研发过程中的文档管理与工具
- Microsoft Azure & NVIDIA IoT developers season I | Azure IoT & NVIDIA Jetson development foundation
- 企业数据虚拟化综合指南
- 【MySQL】操作表DML相关语句
- 将aof文件转换为命令waoffle安装和使用
猜你喜欢
随机推荐
Pod环境变量和initContainer
套接字选项
Redis learning
【数据集】各类绝缘子、鸟巢及防震锤数据集汇总
VoLTE基础学习系列 | 企业语音网简述
Custom IP used in PCIE
Data Analysis 5
HoloView——实时数据
自定义IP在PCIE中使用
XX市消防救援指挥中心实战指挥平台多链路聚合解决方案实例
Shell执行SQL发邮件
案例实践 --- Resnet经典卷积神经网络(Mindspore)
Shell executes SQL to send emails
解析MySQL数据库:“SQL优化”与“索引优化”
Pod environment variables and initContainer
【Unity3D】相机
leetcode-6134: Find the closest node to the given two nodes
【面试:并发篇39:多线程:线程池】ThreadPoolExecutor类-提交、停止
leetcode-6132:使数组中所有元素都等于零
POJ1251丛林之路题解








