当前位置:网站首页>cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)
cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)
2022-07-07 17:01:00 【感冒不能喝咖啡!】
cmd操作MySQL遇到的错误及解决方法
1.遇到的错误
当我们想用cmd命令(不管是不是以管理员的身份运行都有错误)窗口进入本地MySQL,或者使用net start mysql命令启动MySQL,又或者是用mysql -u root -p对MySQL进行操作时,总是会报出下面的错误:
不是内部命令或者是服务名无效
2.出现错误的原因
最有可能的就是在自己安装MySQL后没有去配置环境变量.重新配置一下变量就行
3.解决方法
3.1 直接使用路径进行操作
找到自己当时安装的MySQL的路径,找到bin目录
进入bin目录后复制红框中的路径:
打开cmd命令窗口直接复制cd + 该路径,就可以输入账号密码进入MySQL了
3.2 配置环境变量
1.在桌面此电脑上右键单击,进入属性
2.进入后就是下面页面,再点击高级系统设置
3.点击环境变量
3.在系统变量这块里面双击Path
4.先点击新建,然后将3.1里面的目录添加进去
5.,最后猛点下方的确定就行
4.再次验证(配置完环境变量后)
以管理员身份运行cmd窗口,操作MySQL:
以非管理员身份运行cmd窗口,操作MySQL:
至此就结束了,希望可以帮到大家!
边栏推荐
- Idea completely uninstalls installation and configuration notes
- CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
- SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
- 持续测试(CT)实战经验分享
- 咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
- 【MIME笔记】
- Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
- 链式二叉树的基本操作(C语言实现)
- 标准ACL与扩展ACL
- Realize payment function in applet
猜你喜欢
![[论文分享] Where’s Crypto?](/img/27/9b47bfcdff8307e63f2699d6a4e1b4.png)
[论文分享] Where’s Crypto?

Industry case | digital operation base helps the transformation of life insurance industry

CVPR 2022 - learning non target knowledge for semantic segmentation of small samples

3.关于cookie

Cadre de validation des données Apache bval réutilisé

ES6笔记一

Simple configuration of single arm routing and layer 3 switching

抢占周杰伦

Save the memory of the model! Meta & UC Berkeley proposed memvit. The modeling time support is 30 times longer than the existing model, and the calculation amount is only increased by 4.5%

Kubernetes DevOps CD工具对比选型
随机推荐
【塔望方法论】塔望3W消费战略 - U&A研究法
Wechat web debugging 8.0.19 replace the X5 kernel with xweb, so the X5 debugging method can no longer be used. Now there is a solution
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion
标准ACL与扩展ACL
Will low code help enterprises' digital transformation make programmers unemployed?
行业案例|数字化经营底座助力寿险行业转型
Basic concepts and properties of binary tree
Idea completely uninstalls installation and configuration notes
3. About cookies
面试唯品会实习测试岗、抖音实习测试岗【真实投稿】
Simple configuration of single arm routing and layer 3 switching
Kirk Borne的本周学习资源精选【点击标题直接下载】
[software test] from the direct employment of the boss of the enterprise version, looking at the resume, there is a reason why you are not covered
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
Redis publishing and subscription
CVPR 2022丨学习用于小样本语义分割的非目标知识
强化学习-学习笔记8 | Q-learning
基于图像和激光的多模态点云融合与视觉定位
Redis的发布与订阅