当前位置:Gxlcms > 数据库问题 > win10下MySQL5.7.20解压版安装步骤

win10下MySQL5.7.20解压版安装步骤

时间:2021-07-01 10:21:17 帮助过:17人阅读

[Client] 2 port = 3306 3 [mysqld] 4 port = 3306 5 basedir=%MYSQL_HOME% 6 datadir=%MYSQL_HOME%\data 7 max_connections=200 8 character-set-server=utf8 9 default-storage-engine=INNODB 10 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 11 [mysql] 12 default-character-set=utf8

5、在E:\mysql-5.7.20-winx64下新建空的文件夹:data。

6、管理员运行cmd,并cd到E:\mysql-5.7.20-winx64\bin下,运行命令:

1 mysqld --initialize --user=mysql --console

在输出结果的root@localhost后便是初始密码。

7、执行MySQL安装命令:

1 net start mysql

命令结束后,将输出:Service successfully installed.

8、启动MySQL服务,输入命令:

1 net start mysql

9、登录MySQL,输入命令:

1 mysql -uroot -p

9、若停止服务,则输入命令:

1 net stop mysql

 

win10下MySQL5.7.20解压版安装步骤

标签:base   char   engine   cti   load   console   utf8   led   ict   

人气教程排行