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 安装启动报错[通俗易懂]

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

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

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

  • activity多实例节点任意跳转[通俗易懂]

    activity多实例节点任意跳转[通俗易懂]前言上一篇我们简单演示了单实例节点跳转的过程,在实际业务场景中,多实例节点的跳转也是一种常见的跳转场景,举例来说,当前的节点配置的是会签,即多个实例任务的节点,需要从当前节点跳出去该怎么办呢?或者说从某一个单实例节点再跳入到多实例节点,又该如何实现呢?activity对于这样的场景也提供了解决方案问题解决思路想必还记得我们在之前的篇章中谈到的那个流程实例跳转过程中的3级实例树吧?以多实例节点跳出为例需要的参数,任务ID、目标节点判断当前的节点是否是多实例任务节点获取二级执行实例信息删除二级实

  • Innodb_large_prefix

    Innodb_large_prefix

    2021年10月22日
  • java缓存设置_缓存数据可以清除吗

    java缓存设置_缓存数据可以清除吗1、@Cacheable(key="#vo.toString()",value="licence")//载入缓存2、@CacheEvict(key="#vo.toString()",value="licence")//清除缓存3、缓存设置在service层生效4、config目录下建ehcache.xml5、ehcache.xml配置如下<ehcachex…

  • [Dreamweaver教程]Meta标签详解「建议收藏」

    [Dreamweaver教程]Meta标签详解「建议收藏」[Dreamweaver教程]Meta标签详解原作者:indian出处:5D多媒体发表时间:2004-12-8关键词:版权信息:传统媒体及商业网站禁止擅自转载;个人网站转载需经作者同意,并注明作者及出处。

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