MySQL 5.7 for Windows 解压缩版配置安装

使用5.7版本以前的安装方法:
MySQL 5.7 for Windows 解压缩版配置安装_第1张图片
5.7版本的配置安装方法
mysqld --initialize
net start mysql
mysql

出现下面的结果:

因为5.7版本的mysql为了安全性考虑,默认设有密码
net stop mysql
cd "C:\Program Files (x86)\MySQL\MySQL 5.7\bin"
start mysqld --skip-grant-tables
mysql -ANe"update mysql.user set authentication_string=PASSWORD('mynewpassword') where user='root'"
mysqladmin shutdown
net start mysql
mysql -uroot -p
Enter password: (enter the password 'mynewpassword' and hit )
完成以上步骤后MySQL 5.7就配置完毕了

你可能感兴趣的:(数据库系统)