在安装及使用MySql时碰到的一系列奇葩问题
1 重装MySql时报错
the older version of MySQL installer - community cannot be removed, please concat the support of technical group
这是windows系统的问题,下载了windows installer cleanup utility,选择all user 或者安装的软件remove掉
2 密码错误
到安装的MySQL的目录下C:\ProgramData\MySQL\MySQL Server 8.0下的my.ini文件,在[mysqld]后添加skip-grant-tables 重启MySQL服务器,再重启cmd.exe输入mysqladmin -u root -p password回车,出现“Enter password:”,直接回车,接着就可以设置新密码了。设置密码后将my.ini中的skip-grant-tables 删除并重启服务器即可。