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

点击服务;

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

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

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

打开之后界面如下:

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

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

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

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

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

至此,本文结束。
更多内容请转至VX公众号 “运维家” ,获取最新文章。
------ “运维家” ------
------ “运维家” ------
------ “运维家” ------
系统运维工程师面试,运维工程师优秀员工提名词,tr运维工程师,特来电运维工程师工作日常,IT运维工程师高级;
智能制造运维工程师培训课程,远程办公的运维工程师,迈瑞医疗运维工程师工资待遇,后台运维工程师是做什么的;
风力运维工程师怎样,浪潮云运维工程师,医疗设备运维工程师证书样本,运维工程师男朋友,运维工程师暴躁。
边栏推荐
- 6.25AtCoderABC257E - Addition and Multiplication 2题解
- How to configure logback? 30 minutes for you to thoroughly learn the code to stay up late and knock
- Information | Zuckerberg was rated as the most careless CEO in the global IT industry; China Mobile R & D tethered UAV emergency communication high altitude base station
- InheritableThreadLocal 在线程池中进行父子线程间消息传递出现消息丢失的解析
- 固态存储厂商忆联加入龙蜥社区,共建开源新生态
- When MySQL RDS is collected using Flink CDC, the datetime type field will be compared with the source table after collection
- 6.26cf simulation game d: black and white questions
- Profil de risque de monnaie stable: l'usdt et l'USDC sont - ils sûrs?
- ICML 2022 | transferable imitation learning method based on decoupling gradient optimization
- Simulink仿真模式
猜你喜欢

Picture and text show you how to thoroughly understand the atomicity of MySQL transaction undolog

代码大全读后感

A tour of gRPC:02 - 从proto生成代码

About xampp unable to start MySQL database

After reading the complete code

@Component与@Configuration区别

Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool

In order to prevent being rectified after 00, a company requires employees not to sue the company

iNFTnews | Meta在元宇宙中的后续计划会是什么?

Calibration of binocular camera based on OpenCV
随机推荐
What are the project management systems suitable for small and medium-sized enterprises?
『计组』CPU 如何区分指令和数据
Possible reasons for not triggering onreachbutton
微信小程序开发储备知识
可转债策略之---(摊饼玩法,溢价玩法,强赎玩法,下修玩法,双低玩法)
curl: (56) Recv failure: Connection reset by peer
C# Winfrom Chart图表控件 柱状图、折线图
Top the list for 10 consecutive years? What is the "most common" programming language for programmers?
自己实现一个ThreadLocal
基于深度学习的Wiki中文语料词word2vec向量模型
元代理模型可迁移对抗攻击
XAMPP Apache安装时问题总结
Leetcode 984. 不含 AAA 或 BBB 的字符串(网友思路)
Us chips are hit hard again, and Intel may be defeated by TSMC and reduced to the third place in the world
What memory consuming data is stored in MySQL CDC jobmanager?
Word2vec vector model of Wiki Chinese corpus based on deep learning
Graduates are confused and middle-aged people are anxious. How can the career path become wider and wider?
An error is reported in the Flink SQL rownumber. Who has met him? How to solve it?
In order to prevent being rectified after 00, a company requires employees not to sue the company
又拍云 Redis 的改进之路