Mysql 启动 windows

本文记录了MySQL5.7.12版本在Windows系统的安装过程及启动时遇到的问题解决方法。通过使用mysqld–initialize-insecure命令初始化数据库,并成功启动MySQL服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:当下载zip版本mysql 5.7.12,启动mysqld会报错,解决办法使用mysqld –initialize-insecure 去生成初始数据库相关信息。

E:\Software\Mysql\mysql-5.7.12-winx64\mysql-5.7.12-winx64\bin>mysqld –initialize-insecure

E:\Software\Mysql\mysql-5.7.12-winx64\mysql-5.7.12-winx64\bin>mysqld.exe –console
2016-05-09T14:56:14.128719Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more
details).
2016-05-09T14:56:14.128719Z 0 [Warning] Insecure configuration for –secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid,
non-empty path.
2016-05-09T14:56:14.129719Z 0 [Note] mysqld.exe (mysqld 5.7.12) starting as process 15276 …
2016-05-09T14:56:14.138719Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-05-09T14:56:14.141720Z 0 [Note] InnoDB: Uses event mutexes
2016-05-09T14:56:14.141720Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2016-05-09T14:56:14.141720Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-09T14:56:14.142720Z 0 [Note] InnoDB: Number of pools: 1
2016-05-09T14:56:14.142720Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2016-05-09T14:56:14.187722Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-05-09T14:56:14.196723Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-05-09T14:56:14.355732Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-09T14:56:15.317787Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-05-09T14:56:15.318787Z 0 [Note] InnoDB: Setting file ‘.\ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2016-05-09T14:56:15.571801Z 0 [Note] InnoDB: File ‘.\ibtmp1’ size is now 12 MB.
2016-05-09T14:56:15.580802Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-05-09T14:56:15.582802Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-05-09T14:56:15.584802Z 0 [Note] InnoDB: Waiting for purge to start
2016-05-09T14:56:15.652806Z 0 [Note] InnoDB: 5.7.12 started; log sequence number 2522954
2016-05-09T14:56:15.700809Z 0 [Note] InnoDB: Loading buffer pool(s) from E:\Software\Mysql\mysql-5.7.12-winx64\mysql-5.7.12-winx64\data\ib_buffer_pool
2016-05-09T14:56:15.703809Z 0 [Note] Plugin ‘FEDERATED’ is disabled.
2016-05-09T14:56:15.823816Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2016-05-09T14:56:15.825816Z 0 [Note] Server hostname (bind-address): ‘*’; port: 3306
2016-05-09T14:56:15.828816Z 0 [Note] IPv6 is available.
2016-05-09T14:56:15.828816Z 0 [Note] - ‘::’ resolves to ‘::’;
2016-05-09T14:56:15.829816Z 0 [Note] Server socket created on IP: ‘::’.
2016-05-09T14:56:15.962824Z 0 [Note] InnoDB: Buffer pool(s) load completed at 160509 22:56:15
2016-05-09T14:56:16.022827Z 0 [Note] Event Scheduler: Loaded 0 events
2016-05-09T14:56:16.023827Z 0 [Note] mysqld.exe: ready for connections.
Version: ‘5.7.12’ socket: ” port: 3306 MySQL Community Server (GPL)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值