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)
上一篇 2022年4月15日 上午7:40
下一篇 2022年4月15日 上午8:00


相关推荐

  • matlab如何保存生成的图片_将matlab输出图像保存为图片

    matlab如何保存生成的图片_将matlab输出图像保存为图片一种是出来图形窗口后手动保存(这儿又可以分两种):1直接从菜单保存,有fig,eps,jpeg,gif,png,bmp等格式。2edit——〉copyfigure,再粘贴到其他程序。另一种是用命令直接保存(这里也有两种):1用saveas命令保存图片。saveas的三个参数:(1)图形句柄,如果图形窗口标题栏是“Figure3”,则句柄就是3.(2)文件名。(3)单引号字符串,指…

    2025年11月7日
    6
  • CentOS7中systemctl的使用

    CentOS7中systemctl的使用CentOS7 x 开始 CentOS 开始使用 systemd 服务来代替 daemon 原来管理系统启动和管理系统服务的相关命令全部由 systemctl 命令来代替 1 原来的 service 命令与 systemctl 命令对比 daemon 命令 systemctl 命令说明 service 服务 startsystemc unit

    2026年3月20日
    1
  • html5 a标签去下划线,css中如何去掉a标签的下划线?[通俗易懂]

    html5 a标签去下划线,css中如何去掉a标签的下划线?[通俗易懂]我们在HTML网页制作过程中,相信大家对css文本超链接这个概念并不陌生。我们都知道想要给某段文本或者指定元素添加一个锚点也就是超链接需要用到HTML中的a标签。那么有的新手可能就会发现,在使用a标签时文本超链接会自动出现下划线!从视觉美观上来说枯燥单调的文本超链接显示显然并不好看。那么该如何去掉a标签的下划线呢?下面我们来看一下css去掉a标签下划线的方法。本篇文章就给大家详细讲讲怎么去掉css…

    2022年5月2日
    69
  • cocos2dx三种定时器使用

    cocos2dx三种定时器使用

    2022年1月14日
    50
  • adventureworksdw2008r2_world library

    adventureworksdw2008r2_world libraryAdventureWorksDatabases2008下载地址:RECOMMENDEDDOWNLOADAdventureWorks2012_Database.zipexample,37158K,uploadedAug29,2012-232028downloadsOTHERAVAILABLEDOWNLOADSAdventure…

    2025年10月25日
    4
  • 智谱AI GLM-Image核心概念股

    智谱AI GLM-Image核心概念股

    2026年3月12日
    1

发表回复

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

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