当前位置:网站首页>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:
至此就结束了,希望可以帮到大家!
边栏推荐
- Creative changes brought about by the yuan universe
- Cloud security daily 220707: Cisco Expressway series and telepresence video communication server have found remote attack vulnerabilities and need to be upgraded as soon as possible
- 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%
- 伺服力矩控制模式下的力矩目标值(fTorque)计算
- Standard ACL and extended ACL
- Static routing configuration
- [sword finger offer] 59 - I. maximum value of sliding window
- The performance and efficiency of the model that can do three segmentation tasks at the same time is better than maskformer! Meta & UIUC proposes a general segmentation model with better performance t
- The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications
- Recommend free online SMS receiving platform in 2022 (domestic and foreign)
猜你喜欢

Continuous test (CT) practical experience sharing
![[tpm2.0 principle and Application guide] Chapter 9, 10 and 11](/img/7f/0d4d91142bc3d79ea445a8f64afba7.png)
[tpm2.0 principle and Application guide] Chapter 9, 10 and 11

Industry case | digital operation base helps the transformation of life insurance industry
![[tpm2.0 principle and Application guide] Chapter 16, 17 and 18](/img/7a/b16549590e6445d9199c8000d47d36.png)
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18

Reuse of data validation framework Apache bval

Reinforcement learning - learning notes 8 | Q-learning
![[paper sharing] where's crypto?](/img/27/9b47bfcdff8307e63f2699d6a4e1b4.png)
[paper sharing] where's crypto?

Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon

Basic operation of chain binary tree (implemented in C language)

Thread pool and singleton mode and file operation
随机推荐
How to choose the appropriate automated testing tools?
RIP和OSPF的区别和配置命令
我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
Charles+Postern的APP抓包
Yunjing network technology interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
Do you know all four common cache modes?
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
GSAP animation library
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
如何给“不卖笔”的晨光估值?
2022年推荐免费在线接收短信平台(国内、国外)
Calculation of torque target value (ftorque) in servo torque control mode
String type, constant type and container type of go language
SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
【MIME笔记】
PTA 1101 B是A的多少倍
coming! Gaussdb (for Cassandra) new features appear
Reject policy of thread pool
能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...