当前位置:网站首页>windows平台下的mysql启动等基本操作
windows平台下的mysql启动等基本操作
2022-06-29 12:45:00 【51CTO】
一、windows下启动和停止mysql
mysql安装好之后,需要启动mysql服务,否则无法访问到。
当我们在windows平台下,且使用二进制分发的方式,安装好的mysql是自动加入自启动的服务里面了,当windows启动、停止的时候,数据库随之启动、停止;那么我们在哪里查看呢;
单击“开始”菜单,在搜索框中输入services.msc,看到如图;

点击服务;

可以看到他的状态是正在运行,且启动类型是自动,那就说明他会随着windows操作系统的启动而启动,停止而停止。
那么我们可以在这里右击,在windows平台上停止和重启mysql服务;

那么如果我们不想让部署在windows平台上的mysql服务,随系统启动而自启动的话,如何配置呢;
可以双击该服务,进行配置;

可以将其配置为手动、禁止等类型,具体根据自己的需要进行配置即可。
二、如何在windows平台下手动重启mysql服务呢
单击“开始”菜单,在搜索框中输入cmd,以管理员身份运行该服务;

打开之后界面如下:

在windows平台上手动停止mysql服务;
命令:
如图:

在windows平台上手动启动mysql服务;
命令:
如图:

注意点:输入的MySQL是服务的名字,是我们在安装mysql服务的时候配置的名字。如果你的MySQL服务的名字是DB或其他名字,应该输入“net start DB”或其他名称。
三、windows平台下登录mysql数据库
有两种方式;
- 在
cmd命令行中使用命令登录 - 使用
MySQL Command Line Client登录
下面我们来分别进行查看;
1、在cmd命令行中登录
首先还是要通过上面的步骤打开cmd命令行,然后执行如下命令登录;
如图:

输入exit即可退出;
2、使用mysql command client登录
在“开始“菜单中输入mysql,即可自动带出这个服务,如图:

打开该服务,会提示让你输入密码,我们输入root用户的密码,回车;

至此,本文结束。
更多内容请转至VX公众号 “运维家” ,获取最新文章。
------ “运维家” ------
------ “运维家” ------
------ “运维家” ------
系统运维工程师面试,运维工程师优秀员工提名词,tr运维工程师,特来电运维工程师工作日常,IT运维工程师高级;
智能制造运维工程师培训课程,远程办公的运维工程师,迈瑞医疗运维工程师工资待遇,后台运维工程师是做什么的;
风力运维工程师怎样,浪潮云运维工程师,医疗设备运维工程师证书样本,运维工程师男朋友,运维工程师暴躁。
边栏推荐
- 【系统设计】邻近服务
- Pod security policy (PSP)
- pdb符号库文件详解
- weserver發布地圖服務
- 揭秘百度智能测试在测试自动执行领域实践
- Why is the integration of storage and computing a new direction of core making Collision school x Zhicun Technology
- Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!
- 韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
- The node command in the script does not print the execution log on the console
- Gee - American landfire fire fire data set
猜你喜欢

Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!

The imshow function of Matplotlib displays grayscale images. Vmin and vmax2 parameters should be set

C language character function

高校女生穿旗袍答辩!网友:导师说论文要是和旗袍一样漂亮就好了

Autonomous and controllable city! Release of the first domestic artiq architecture quantum computing measurement and control system

Write it down once Net analysis of a property management background service stuck

【无标题】安装依赖报错:Refusing to install package with name “***“ under a package

Use Gerrit + Zadig to realize trunk development and trunk publishing (including byte flying Book Practice)

System.currentTimeMillis() 和 System.nanoTime() 哪个更快?大部分人都会答错!

Getting started with SQLite3
随机推荐
PG Basics - logical structure management (1)
B+ tree | MySQL index usage principle
Cicd introduction [easy to understand]
力扣:合并两个有序链表
思科模拟器简单校园网设计,期末作业难度
Rslo: self supervised lidar odometer (real time + high precision, icra2022)
Windbg常用命令详解
【毕业季】这四年一路走来都很值得——老学长の忠告
Three best practices help enterprises improve supply chain security
Create an API rapid development platform, awesome!
Write it down once Net analysis of a property management background service stuck
打造一个 API 快速开发平台,牛逼!
Want to make a wechat game for answering questions? Reading this article is enough
高校女生穿旗袍答辩!网友:导师说论文要是和旗袍一样漂亮就好了
想做个答题类的微信小游戏?读这篇文章就够了
Acwing game 57
The node command in the script does not print the execution log on the console
Leetcode question brushing: String 07 (repeated substring)
WinDbg common commands
极光 · 哈夫曼树の生成(线段树结构 非指针)(仿邻接表)