简体   繁体   English

在lower_case_table_names 设置后无法启动MySQL 8.0.12

[英]Unable to start MySQL 8.0.12 after lower_case_table_names Settings

I have same issue as the link per lower_case_table_names Settings in MySQL 8.0.12我有与MySQL 8.0.12 中每个lower_case_table_names 设置的链接相同的问题

I followed the steps of stackprotector till step no 6 and log file show below我按照stackprotector的步骤直到第6步和日志文件显示如下

2021-06-18T09:35:13.134465Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-06-18T09:35:14.078706Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-06-18T09:35:14.966455Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 5ip,8m>awvsJ

On step 7, i am unable to start the mysql server在第 7 步,我无法启动 mysql 服务器

The command i used is mysqld instead of mysql我使用的命令是mysqld而不是 mysql

sudo service mysqld start

I have the error log as below我有如下错误日志

2021-06-18T09:36:04.023595Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.21) starting as process 31701
2021-06-18T09:36:04.030626Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-06-18T09:36:04.030713Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 13 in a file operation.
2021-06-18T09:36:04.030749Z 1 [ERROR] [MY-012595] [InnoDB] The error means mysqld does not have the access rights to the directory.
2021-06-18T09:36:04.030777Z 1 [ERROR] [MY-012270] [InnoDB] os_file_get_status() failed on './ibdata1'. Can't determine file permissions
2021-06-18T09:36:04.030809Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2021-06-18T09:36:04.030927Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2021-06-18T09:36:04.030989Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-06-18T09:36:04.031285Z 0 [System] [MY-010910] [Server] /usr/libexec/mysqld: Shutdown complete (mysqld 8.0.21)  Source distribution.

What's being wrong here?这里有什么问题?

I have grant all permission on我已授予所有权限

chmod 777 /var/lib/mysql

Answer is over here.答案到此为止。 Tried below and it works https://programmersought.com/article/46215060629/在下面尝试过,它有效https://programmersought.com/article/46215060629/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MySQL 8.0.12 中的lower_case_table_names 设置 - lower_case_table_names Settings in MySQL 8.0.12 在配置文件中添加lower_case_table_names = 2后启动mysql 8.0 fai - mysql 8.0 fai to start after add lower_case_table_names=2 in config file 使用 Mysql lower_case_table_names 为 1 - Use Mysql lower_case_table_names to 1 MySQL 8.0 lower_case_table_names 1 - MySQL 8.0 lower_case_table_names 1 Laradock MySQL 容器退出(0) - 服务器('2')和数据字典('0')的不同lower_case_table_names设置 - Laradock MySQL container exits(0) - Different lower_case_table_names settings for server ('2') and data dictionary ('0') MySQL lower_case_table_names = 1 with Kubernetes yml File,MySQL 服务器启动错误 - MySQL lower_case_table_names = 1 with Kubernetes yml File, MySQL server start up error Ubuntu 18.04 上的 lower_case_table_names=1 不允许 mysql 启动 - lower_case_table_names=1 on Ubuntu 18.04 doesn't let mysql to start MySQL的:不能设置lower_case_table_names变量 - Mysql : can't set lower_case_table_names variable 在Windows mysql的哪里更改“ lower_case_table_names = 2”的值? - Where to change the value of `lower_case_table_names=2` on windows mysql? MySQL lower_case_table_names导致PHP连接错误 - MySQL lower_case_table_names causes PHP connection error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM