zoukankan      html  css  js  c++  java
  • [mysql8]新坑哈 更改Mysql 表的大小转换设置lower_case_table_names=1

    在安装了8.0.14之后,初始化的时候在my.cnf里设置了lower_case_table_names=1,安装好了之后,启动报错:

    1
    2
    3
    4
    5
    2019-01-28T13:24:24.919463+08:00 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.14) starting as process 24567
    2019-01-28T13:24:25.339412+08:00 1 [ERROR] [MY-011087] [Server] Different lower_case_table_names settings for server ('1'and data dictionary ('0').
    2019-01-28T13:24:25.339709+08:00 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
    2019-01-28T13:24:25.339903+08:00 0 [ERROR] [MY-010119] [Server] Aborting
    2019-01-28T13:24:26.660278+08:00 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.14)  MySQL Community Server - GPL.

    查看MySQL官方文档,有记录:

    lower_case_table_names can only be configured when initializing the server. Changing the lower_case_table_names setting after the server is initialized is prohibited.

    只有在初始化的时候设置 lower_case_table_names=1才有效,比如:

    1
    --initialize --lower-case-table-names=1

    在MySQL客户端执行如下命令查看MySQL的数据存放位置:

    mysql> show global variables like "%datadir%";
  • 相关阅读:
    将C#文档注释生成.chm帮助文档
    Html5shiv
    C#创建COM组件
    WebBrowser控件使用详解
    iframe跨域
    VMware Workstation 虚拟机暂停后无法启动 出现Exception 0xc0000006 (disk error while paging) has occurred.错误
    Java Timer 定时器的使用
    adf笔记
    JS编码解码
    【Python】Django CSRF问题
  • 原文地址:https://www.cnblogs.com/landv/p/11417353.html
Copyright © 2011-2022 走看看