昨天卸载了mysql8.0由于卸载不干净,导致安装5.5版本到最后一步始终无响应,我重置了系统,结果安装到最后一步他又是始终无响应,然后我参考了两位大佬的解决方案如下
大佬方案一
大佬方案二
两个方案都试了一遍后我的安装还是不行
如下图:

我的最终解决方案是这样的
进入服务,我发现我的服务里没有MySQL!!!
1.先打开自己的安装目录下看看有没有my.ini文件,如果没有就到桌面新建一个txt文本,名字改为my.ini,里面的内容可复制本文最下方的,然后把这个文件复制到安装目录下,向这样,注意后缀是ini,而不是txt;(更改后缀,不会的自己百度)

文件代码如下:
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
# make sure the server reads the config file use the startup option
# "--defaults-file".
#
# To run run the server from the command line, execute this in a
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# To install the server as a Windows service manually, execute this in a
# command line shell, e.g.
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQLXY
#
#
# Guildlines for editing this file
# ----------------------------------------------------------------------
#
# In this file, you can use all long options that the program supports.
# If you want to know the options a program supports, start the program
# with the "--help" option.
#
# More detailed informa

最低0.47元/天 解锁文章
2122

被折叠的 条评论
为什么被折叠?



