- 下载安装winx64 https://dev.mysql.com/downloads/installer/
- 在G:\mySQL\mysql-5.7.17-winx64文件夹下,新建txt文档my.ini。文档里写:
[mysqld]
basedir=G:\mySQL\mysql-5.7.17-winx64
datadir=G:\mySQL\mysql-5.7.17-winx64\data
[WinMySQLadmin]
Server=C:\Program Files\mysql-5.7.17-winx64\bin\mysqld.exe
user=root
password=
[client]
default-character-set=utf8
[mysqld]
basedir=G:\mySQL\mysql-5.7.17-winx64
datadir=G:\mySQL\mysql-5.7.17-winx64\data
character_set_server=utf8
[WinMySQLadmin]
Server=C:\Program Files\mysql-5.7.17-winx64\bin\mysqld.exe
user=root
password=
[mysql]
default-character-set=utf8 - 启动MySQL
打开任务管理器以管理员身份运行cmd
建议大家使用安装包,简单好用,不要免安装版,配置太麻烦了