http://downloads.mysql.com/archives/community/
1:添加环境变量
把MySQL解压后的bin目录添加到path环境变量中
2:修改或者添加my-default.ini
[mysqld]
basedir = D:\mysql-5.6.24
datadir = D:\mysql-5.6.24\data
3:进入bin目录安装mysql
D:\mysql-5.5.46\bin>mysqld -install
Service successfully installed.
4:启动mysql
D:\mysql-5.6.24\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
5:给root用户默认密码
root #> mysql -u root -p
mysql>use mysql
mysql>update user set password=password(“123”) where user=”root”;(别忘了最后加分号)
英文名:kingwang
& Email :kingstudy@vip.qq.com