mysql8 安装启动报错[通俗易懂]

注意点1my.ini配置,其中这两项一定要按这个格式,双引号及双反斜杠,否则初始化时会报下面的错basedir="D:\\tool\\MYSQL\\mysql-8.0.12-winx64"datadir="D:\\tool\\MYSQL\\mysql-8.0.12-winx64\\data"[mysqld]#Removeleading#andsettothe…

大家好,又见面了,我是你们的朋友全栈君。

注意点1

my.ini配置,其中这两项一定要按这个格式,双引号及双反斜杠,否则初始化时会报下面的错

basedir = “D:\\tool\\MYSQL\\mysql-8.0.12-winx64”
datadir = “D:\\tool\\MYSQL\\mysql-8.0.12-winx64\\data”

[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = "D:\\tool\\MYSQL\\mysql-8.0.12-winx64"
datadir = "D:\\tool\\MYSQL\\mysql-8.0.12-winx64\\data"
port = 3307
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

character-set-server = utf8mb4

performance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256

[mysql]
default-character-set = utf8mb4

[client]
default-character-set = utf8mb4

D:\tool\MYSQL\mysql-8.0.12-winx64\bin>mysqld –initialize –console
mysqld: Can’t create/write to file ‘D:  ool\MYSQL\mysql-8.0.12-winx64\data\is_writable’ (OS errno 2 – No such file or directory)
2018-09-19T01:51:48.238868Z 0 [Warning] [MY-010915] [Server] ‘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 release.
2018-09-19T01:51:48.243868Z 0 [System] [MY-013169] [Server] D:\tool\MYSQL\mysql-8.0.12-winx64\bin\mysqld.exe (mysqld 8.0.12) initializing of server in progress
as process 8492
2018-09-19T01:51:48.243868Z 0 [ERROR] [MY-010338] [Server] Can’t find error-message file ‘D:\tool\MYSQL\mysql-8.0.12-winx64\bin\        ool\MYSQL\mysql-8.0.12-w
inx64\share\errmsg.sys’. Check error-message file location and ‘lc-messages-dir’ configuration directive.
2018-09-19T01:51:48.246869Z 0 [ERROR] [MY-010460] [Server] –initialize specified but the data directory exists and is not writable. Aborting.
2018-09-19T01:51:48.248869Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-09-19T01:51:48.249869Z 0 [System] [MY-010910] [Server] D:\tool\MYSQL\mysql-8.0.12-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.12)  MySQL Community
 Server – GPL.

 

 

注意点2

如果mysql 启动时卡住,再次启动或者停止时会提示:服务正在启动或停止中,请稍候片刻后再试一次。

但进程中确找不到mysqld的进程,是因为未勾选“显示所有用户的进程”

mysql8 安装启动报错[通俗易懂]

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/129359.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • python使用蒙特卡洛树(MCTS)算法实现黑白棋miniAlphaGo for Reversi[通俗易懂]

    python使用蒙特卡洛树(MCTS)算法实现黑白棋miniAlphaGo for Reversi[通俗易懂]黑白棋(reversi),也叫苹果棋,翻转棋,是一个经典的策略性游戏。一般棋子双面为黑白两色,故称“黑白棋”。因为行棋之时将对方棋子翻转,变为己方棋子,故又称“翻转棋”。棋子双面为红、绿色的成为“苹果棋”。它使用8*8的棋盘,由两人执黑子和白子轮流下棋,最后子多方为胜。规则:(1)黑方先行,双方交替下棋。(2)一步合法的棋步包含:在一个空格新落下一个棋子,并且反转对手一个或多个棋子。(3)新落下的棋子与棋盘上已有的同色棋子间,对方被夹住的所有棋子都要反转过来。可以横着夹,竖着夹,斜着夹。夹住的

    2022年6月18日
    38
  • 无线桥接与中继的区别[通俗易懂]

    无线桥接与中继的区别[通俗易懂]无线桥接与中继的区别    无线桥接也就是WDS(WirelessDistributionSystem,无线分布式系统),其可以无线网络相互连接的方式构成的一个整体无线网络。WDS可把有线网络的资料,透过无线网络当中继架构来传送,借此可将网络资料传送到另外一个无线网络环境,或者是另外一个有线网络。   &nb…

    2022年4月19日
    199
  • java 利用阿里dns解析功能,实现ddns服务。

    java 利用阿里dns解析功能,实现ddns服务。  由于业务需要,需要在家里部署环境,但是苦于阿里云服务较贵,且电脑性能一台无法满足业务开发。我纯粹屌丝一名。哈哈。这里就使用家里的电脑作为开发服务器了。    因此就有个问题,IP会经常变动,我的域名在阿里云上面,如果IP变动,因此需要经常登录到云解析上面去更改解析IP,这样很浪费时间。其实,阿里云提供了一套dns修改方案,根据阿里云提供的sdk就可以进行修改云解析的信息。当检测本地ip变化…

    2022年5月12日
    34
  • 用基尔霍夫定律求解电路时_基尔霍夫定律总结

    用基尔霍夫定律求解电路时_基尔霍夫定律总结1.先了解几个名词(1)支路一个二端原件视为一条支路–图中6个二端原件所以有6条支路。(2)结点两条或以上的支路连接的点。d,e可以看做一个结点。(3).回路(4).网孔1,22,

    2022年8月1日
    4
  • static_cast

    static_cast

    2021年12月15日
    61
  • Laravel 中config的用法

    Laravel 中config的用法

    2021年10月23日
    41

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号