不多说,直接上干货!
说在前面的话
我为什么已经尝试和使用过同类型产品的很多MySQL版本,还要书写这篇博客呢?基于mysql-installer-web-community-5.7.18.1.msi
是因为,最近在做数据分析相关的研究工作。
首先,跟大家解释下mysql-installer-web-community的mysq和mysql-installer-communityl的版本的区别
我看官网的解释是这样的:
Choosing the right file:
If you have an online connection while running the MySQL Installer, choose the mysql-installer-web-community file.
If you do NOT have an online connection while running the MySQL Installer, choose the mysql-installer-community file.
意思就是如果你在运行MySQL安装程序时可以上网(网络连接),选择mysql-installer-web-community;
如果你在运行MySQL安装程序时不可以上网(没有网络连接),选择mysql-installer-community。
用通俗的说法就是一个是在线安装,一个是离线安装。看下这两个文件的大小就知道了。 mysql-installer-web-community-5.7.18.1.msi的下载
说明: 选择”Full”后,进入安装环境检查界面, 对于每个模块,所需要的环境要求都已经列出,单机“Excute”,将会逐项进行安装环境的检查并安装相应的环境,标记为“Manual”的需要手动安装。如果直接单机“Next”,则会跳过环境检查流程,直接安装符合环境要求的模块,不符合要求的则不安装。
说明:由于 MySQL 安装在 Windows 环境下,所以需要微软的一些类库的支持。对于一般开
发人员的电脑上都有这些类库,但是对于非编程人员的电脑上可能没有,需要安装。
Microsoft Visual C++ 2015, .Net Framework 4.5
得要安装好,
Microsoft Visual C++ 2015 和 .Net Framework 4.5
Adding firewall rule
for MySQL57 on port 3308.
Successfully added firewall rule.
Ended configuration step: Updating firewall
Beginning configuration step: Adjusting Windows service [
if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding
new service
New service added
Ended configuration step: Adjusting Windows service [
if necessary]
Beginning configuration step: Initializing Database [
if necessary]
Deleting Data folder shipped
Attempting to run MySQL Server with
--Initialize-insecure
Running process: C:\Program Files\MySQL\MySQL Server
5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
Waiting
for the server stops: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
2017-06-09T08:09:15.505766Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-06-09T08:09:15.535767Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future>
2017-06-09T08:09:23.327213Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-06-09T08:09:24.559284Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-06-09T08:09:25.174319Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: f3a3b10f-4cea-11e7-babd-00ffb027ca9a.
2017-06-09T08:09:25.273324Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-06-09T08:09:25.277325Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.