当前位置:网站首页>mysql is not an internal or external command, nor is it a runnable program or batch file to resolve
mysql is not an internal or external command, nor is it a runnable program or batch file to resolve
2022-07-30 06:45:00 【m0_67403240】
Sort reasons in order
1.**First of all, it may be that the environment variables are not configured properly.**The cmd command line requires environment variables.
Right click on My Computer - Advanced System Settings - Environment Variables - System Variables - Path (click to add MySQL bin directory)
My bin directory here is


After adding.
2 Start cmd.Note that the administrator needs to start here.
Enter cmd, right click - run as administrator.
cd to the bin directory.

Enter mysql -uroot -p
Enter your password and you're in

Try process
I first went to "This Computer" → o → "Management" → o → "Services" → o → "MySQL80", first tried to manually start the MySQL80 service, and the above picture appeared..Restart the computer and repeat step 1 again, same thing.(×n times imes n times cdots×n times)
Find the tutorial online, try to create the my.ini file in the installation path, and then run it sequentially in the PowerShell window
mysqld -remove
mysqld -install
mysqld --initialize
On the Internet it is generally said that this can be solved, but not me(hhh).Portal
Check the status of port 3306:
Enter in PowerShell:
netstat -ano
The port is occupied, and it is found that there is no process occupying port 3306, and it fails.Add NETWORK SERVICE to the Administrators group: "This PC" → o → "Administration" → o → "System Tools" → o → "Local Users and Groups" → o → "Groups", in AdministratorsAdded "NETWORK SERVICE", save, repeat step 2, to no avail.
By the way, send a command to change the time zone
//--------->Solve the problem of MySQL time zone
Connect to the database, enter mysql -hlocalhost -uroot -p Enter and enter the password
Enter show variables like'%time_zone';Enter, display time zone configuration
Enter set global time_zone = '+8:00';Enter
边栏推荐
- 标准输入输出流(System.in,System.out)
- Invalid bound statement (not found)出现的原因和解决方法
- kali is an essential artifact for information security
- A Spark task tuning 】 【 one day suddenly slow down how to solve
- Offensive and defensive world easy_web
- 学生管理系统
- 盲注、报错注入、宽字节注入、堆叠注入学习笔记
- [HCTF 2018]admin
- Operators and Interaction Basics
- awd --waf deployment
猜你喜欢

Defense Ideas for a Type of SMS Vulnerability

Dcat Admin 安装
volatility内存取证----命令演示

TypeError The view function did not return a valid response. The function either returned None 的解决
![[Net Ding Cup 2020 Qinglong Group] AreUSerialz](/img/f2/9aef8b8317eff31af2979b3a45b54c.png)
[Net Ding Cup 2020 Qinglong Group] AreUSerialz

C#下利用开源NPlot绘制股票十字交叉线

PHP-fpm

mysql不是内部或外部命令,也不是可运行的程序或批处理文件解决
![[HCTF 2018]admin](/img/4e/58234ca163c22fc334334eb89a5b00.png)
[HCTF 2018]admin

MySQL 5.7 安装教程(全步骤、保姆级教程)
随机推荐
C#中使用OleDb操作access数据库
CTFSHOW command execution [web29-web124] unfinished to be continued
【面经】米哈游数据开发面经
DVWA installation tutorial (understand what you don't understand · in detail)
标准输入输出流(System.in,System.out)
volatility内存取证----命令演示
信息安全必备神器之kali
Obtain geographic location and coordinates according to ip address (offline method)
JVM学习(二) 垃圾收集器
【数仓】数据仓库高频面试题题英文版(1)
php vulnerability full solution
Monstache执行Monstache - f配置。toml出错不存在处理器类型和名称(附件)(= parse_exc类型
Briefly describe SSRF
TDengine集群搭建
The operations engineer interview experience
php-fpm
kali is an essential artifact for information security
Extraction of BaseDAO
node包的导入与导出
oracle行转列、列转行总结