当前位置:网站首页>net stop/start mysql80 拒绝访问
net stop/start mysql80 拒绝访问
2022-08-01 08:21:00 【time Friend】
在电脑左下角输入cmd打开命令面板,在关闭数据库的前提下输入 net start mysql80,显示拒绝访问,访问错误。

原因可能是 cmd版本太低了,所以在打开cmd的时候,需要一些额外的操作。
具体操作如下:
在电脑左下角输入cmd,然后同时按住 shift+ctrl+enter就可以 以管理员的方式进入命令提示符界面。
如果需要启动mysql, 输入 net start mysql80,就可以看到相应的提示。

如果需要停止mysql, 输入 net stop mysql80,就可以看到相应的提示。

前言:
MySQL安装完成后,需要启动服务进程,否则客户端无法连接数据库。在前面的配置过程中,已经将MySQL安装为Windows服务,当Windows启动时MySQL服务也会随着启动,然而有时需要手动控制MySQL服务的启动与停止,此时可以通过两种方式来实现。
1、通过Windows服务管理器
启动MySQL服务通过Windows的服务管理器可以查看MySQL服务是否开启,首先单击“开始”菜单,在弹出的菜单中选择“运行”命令,打开“运行”对话框输入services.msc命令,单击“确定”按钮,此时就会打开Windows的服务管理器,如图1-26所示。

从图1-26可以看出,MySQL服务没有启动,此时可以直接双击MySQL服务项打开属性对话框,通过单击“启动”按钮来修改服务的状态,如图1-27所示。

图1-27中有一个启动类型的选项,该选项有三种类型可供选择,具体如下。
(1)自动:通常与系统有紧密关联的服务才必须设置为自动,它就会随系统一起启动。
(2)手动:服务不会随系统一起启动,直到需要时才会被激活。
(3)已禁用:服务将不再启动,即使是在需要它时,也不会被启动,除非修改为上面两种类型。针对上述三种情况,初学者可以根据实际需求进行选择,在此建议选择“自动”或者“手动”。
2、通过DOS命令启动MySQL服务
启动MySQL服务不仅可以通过Windows服务管理器启动,还可以通过DOS命令来启动。通过DOS命令启动MySQL服务的具体命令如下:
net start mysql
执行完上述命令,显示的结果如图1-28所示。


若果提示“服务名无效”,查看一下安装在本地Mysql服务名是什么,查看方式:
计算机——右键——管理——服务和应用程序——服务
找到Mysql服务名称。

我本地的Mysql服务名称是Mysql55。
启动命令为:net start mysql55

边栏推荐
- Redis 3.2.3 crashed by signal: 11 服务宕机问题排查
- pytest interface automation testing framework | single/multiple parameters
- 类似 MS Project 的项目管理工具有哪些
- C语言学习概览(二)
- LabVIEW RT中的用户界面更新速度
- my creative day
- pytest interface automation testing framework | pass in parameter values in the form of function return values
- 国内外最顶级的8大plm项目管理系统
- How to use Photoshop to composite star trail photos, post-processing method of night sky star trail photos
- HoloView--Customization
猜你喜欢

配置我的kitty

LeetCode 415:字符串相加

【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?

最新的Cesium和Three的整合方法(附完整代码)

VoLTE基础学习系列 | 企业语音网简述
![[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?](/img/fb/c95c5857024db001638cd484c5e78f.png)
[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?

Golang: go open web service

leetcode-6134: Find the closest node to the given two nodes

【编程之外】当遮羞布被掀开,当人们开始接受一切

leetcode-6132:使数组中所有元素都等于零
随机推荐
VoLTE基础学习系列 | 企业语音网简述
MySQL查询进阶——从函数到表连接的使用你还记得吗
app 自动化 打开app (二)
类似 MS Project 的项目管理工具有哪些
zip package all files in the directory (including hidden files/folders)
Leetcode - 6135: the longest part of the figure
基于tika实现对文件类型进行判断
VoLTE Basic Learning Series | Enterprise Voice Network Brief
Case practice --- Resnet classic convolutional neural network (Mindspore)
leetcode-6134: Find the closest node to the given two nodes
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
LabVIEW RT中的用户界面更新速度
力扣周赛304 6135. 图中的最长环 内向基环树
MySQL query advanced - from the use of functions to table joins, do you remember?
How to get page data
The socket option
小程序更多的手势事件(左右滑动、放大缩小、双击、长按)
HoloView -- Tabular Datasets
Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
mysql查看cpu使用情况