mysql安装过程中的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26230421/article/details/86155320

前言

本文是通过.zip文件进行安装中,出现的问题,自动安装的问题不在本范畴之内

安装教程:点我进入

1.The service already exists!

解决

step1. 以管理员身份运行cmd,输入sc query mysql,查看一下名为mysql的服务;

step2. 输入命令sc delete mysql,删除该mysql;

2.initialize specified but the data directory has files in it. Aborting.

解决

数据文件目录有其他的文件,这个data目录应该是一个空目录;

查看my.ini文件中datadir对应的数据存放文件夹中是否有文件,如果有,删除就行了

3.access denied for user root @localhost

刚刚安装完,需要重新设置密码;

猜你喜欢

转载自blog.csdn.net/qq_26230421/article/details/86155320