安装MYSQL问题解决

1.’mysql’ 不是内部或外部命令,也不是可运行的程序或批处理文件
解决:
a.添加安装目录\bin至环境变量-用户变量
b.以管理员身份运行CMD

2.MySQL 初始化 [ERROR] [MY-010457] [Server] –initialize specified but the data directory has files in it. Aborting.
解决:
在安装目录下添加data文件夹,并清除文件夹内容,重新运行mysqld install

3.>net start mysql
发生系统错误 2。
系统找不到指定的文件。
解决:

mysqld remove
Service successfully removed.
mysqld install
Service successfully installed.
net start mysql
MySQL 服务正在启动 ..
MySQL 服务已经启动成功。

猜你喜欢

转载自blog.csdn.net/mayjoyi/article/details/82595410