mysql 5.7.10安装

1. 解压缩
2. 在系统环境变量PATH中添加: D:\Workspace\mysql-5.7.10\bin
3. 在%$mysql%/bin中添加my.ini,内容如下:
[mysqld]
basedir=D:\\Workspace\\mysql-5.7.10 datadir=D:\\Workspace\\mysql-5.7.10\\data
4. 执行命令初始化mysql命令如下:
mysqld --initialize-insecure --user=mysql
5. 第一次启动:
mysqld --console
当看到类似下面的语句证明启动没问题:
mysqld: ready for connections
Version: '5.7.10'  socket: ''  port: 3306
6. 添加系统服务:
mysqld --install


7.连接mysql并修改密码


>mysql-uroot
Welcome to theMySQL monitor. Commands end with ; or \g.
YourMySQL connection id is2
Server version:5.7.10MySQLCommunityServer(GPL)
Copyright(c)2000,2015,Oracle and/or its affiliates.All rights reserved.
Oracle is a registered trademark ofOracleCorporation and/or its
affiliates.Other names may be trademarks of their respective
owners.
Type'help;' or'\h'for help.Type'\c' to clear the current input statement.
mysql>
mysql>
mysql>
mysql>set password=password('root');
Query OK,0 rows affected,1 warning(0.00 sec)




http://www.myexception.cn/mysql/2040843.html


按照该博文进行操作,既能顺利安装MySQL 5.7.10

你可能感兴趣的:(mysql 5.7.10安装)