C:\Users\Administrator>mysqld --console
2017-04-06T07:42:13.052983Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2017-04-06T07:42:13.052983Z 0 [Note] --secure-file-priv is set to NULL. Operatio
ns related to importing and exporting data are disabled
2017-04-06T07:42:13.053984Z 0 [Note] mysqld (mysqld 5.7.17) starting as process
5388 ...
2017-04-06T07:42:13.062984Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows in
terlocked functions
2017-04-06T07:42:13.063984Z 0 [Note] InnoDB: Uses event mutexes
2017-04-06T07:42:13.063984Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are u
sed for memory barrier
2017-04-06T07:42:13.063984Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-04-06T07:42:13.064984Z 0 [Note] InnoDB: Number of pools: 1
2017-04-06T07:42:13.064984Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2017-04-06T07:42:13.069984Z 0 [Note] InnoDB: Initializing buffer pool, total siz
e = 128M, instances = 1, chunk size = 128M
2017-04-06T07:42:13.081985Z 0 [Note] InnoDB: Completed initialization of buffer
pool
2017-04-06T07:42:13.199992Z 0 [Note] InnoDB: Highest supported file format is Ba
rracuda.
2017-04-06T07:42:13.400003Z 0 [Note] InnoDB: Creating shared tablespace for temp
orary tables
2017-04-06T07:42:13.402003Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12
MB. Physically writing the file full; Please wait ...
2017-04-06T07:42:13.577013Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2017-04-06T07:42:13.582014Z 0 [Note] InnoDB: 96 redo rollback segment(s) found.
96 redo rollback segment(s) are active.
2017-04-06T07:42:13.583014Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are
active.
2017-04-06T07:42:13.586014Z 0 [Note] InnoDB: Waiting for purge to start
2017-04-06T07:42:13.637017Z 0 [Note] InnoDB: 5.7.17 started; log sequence number
2534758
2017-04-06T07:42:13.639017Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-04-06T07:42:13.639017Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\mysq
l-5.7.17-winx64\mysql-5.7.17-winx64\data\ib_buffer_pool
2017-04-06T07:42:13.749023Z 0 [Warning] Failed to set up SSL because of the foll
owing SSL library error: SSL context is not usable without certificate and priva
te key
2017-04-06T07:42:13.755024Z 0 [Note] Server hostname (bind-address): '*'; port:
3306
2017-04-06T07:42:13.757024Z 0 [Note] IPv6 is available.
2017-04-06T07:42:13.758024Z 0 [Note] - '::' resolves to '::';
2017-04-06T07:42:13.760024Z 0 [Note] Server socket created on IP: '::'.
2017-04-06T07:42:13.884031Z 0 [Note] InnoDB: Buffer pool(s) load completed at 17
0406 15:42:13
2017-04-06T07:42:14.388060Z 0 [Note] Event Scheduler: Loaded 0 events
2017-04-06T07:42:14.389060Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA
.TABLES;' to get a list of tables using the deprecated partition engine. You may
use the startup option '--disable-partition-engine-check' to skip this check.
2017-04-06T07:42:14.391060Z 0 [Note] Beginning of list of non-natively partition
ed tables
2017-04-06T07:42:14.427062Z 0 [Note] End of list of non-natively partitioned tab
les
2017-04-06T07:42:14.428062Z 0 [Note] mysqld: ready for connections.
Version: '5.7.17' socket: '' port: 3306 MySQL Community Server (GPL)
就你的提示信息没看到什么问题,安装成功
给你分享一个保证不会出错的安装方法:(按步骤弄就可以)
01.把 mysql-advanced-5.6.17-winx64.zip 解压到自定义 D:\mysql-5.6.17-W64 或 D:\mysql-advanced-5.6.17-winx64 目录下
02.我的电脑--属性--高级--环境变量--系统变量--新建系统环境变量
变量名:MYSQL_HOME
变量值:D:\mysql-5.6.17-W64
03.向原系统环境变量 Path 中添加
;%MYSQL_HOME%\bin
mysqld install MySQL --defaults-file="D:\mysql-5.6.17-W64\my-default.ini"
成功安装后,会显示 Service successfully installed.
服务卸载命令:mysqld remove MySQL --defaults-file="D:\mysql-5.6.17-W64\my-default.ini"
05.启动 MySQL 服务:
方法 1:
cmd--进到D:\mysql-5.6.17-W64\bin目录下--输入启动服务命令:
net start MySQL
方法 2:
WIN7--控制面板--系统和安全--管理工具--服务--MySQL--双击--启动
注意:安装时要以管理员方式运行的cmd才可以正确安装,以管理员方式运行cmd的方法:
进入C:/Windows/System32 查找到cmd.exe, 然后右键“以管理员方式运行”,就可以得到以管理员方式运行的cmd
D:\
cd d:\book\book1
配置的数据库没有密码 一般步骤是 进入数据库 mysql -u root;
然后create database my;