[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=E:\win10\mysql
# 设置mysql数据库的数据的存放目录
datadir=E:\win10\mysql/data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
1.注册表等删除不干净
2.localhost被注释了,进入 C:\Windows\System32>drivers\etc\ 打开hosts文件
3.一堆相关命令
E:\win10\mysql\bin>mysqld -remove
Service successfully removed.
E:\win10\mysql\bin>mysqld -install
Service successfully installed.
E:\win10\mysql\bin>mysqld --console
E:\win10\mysql\bin>mysql_upgrade.exe
mysql_upgrade: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
E:\win10\mysql\bin>mysqld --initialize
E:\win10\mysql\bin>mysqld install
The servic