- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我可以在 MySql 上声明 lower_case_table_names=1 而无需重新安装吗?
我有一个 Web 应用程序,想要部署在基于 RHEL 的服务器上,并安装了 MySQL(8.0.18)。问题是我已经在安装了 MySQL 的 Windows 操作系统上测试了我的网络应用程序的健全性,并且没有遇到任何问题。但是,当我在 RHEL 上运行相同的命令时,MySQL 在执行诸如“表 USER_MASTER 不存在”之类的查询时出现错误,而它位于我的数据库上,但有一些小情况,例如“user_master'。
我做了一些搜索,发现在 UNIX 中区分大小写很重要,而在 Windows 中则不然。因此,我在 my.cnf 中设置 lower_case_table_names=1 并认为这可以解决问题,但很快我发现必须在 MySql 服务器初始化期间声明此变量。
我经历过以下喜欢:
https://mysql.wisborg.dk/2019/04/14/install-mysql-8-on-linux-with-lower_case_table_names-1/
和
https://bugs.mysql.com/bug.php?id=90695
所有这些都表明我必须重新安装 MySql 才能使 lower_case_table_names 工作。
下面是直接使用 lower_case_table_names=1 时出现的错误。
2019-11-08T05:30:17.331505Z 1 [ERROR] [MY-011087] [Server] Different lower_case_table_names settings for server ('1') and data dictionary ('0').
我希望一定有其他方法可以避免重新安装 MySql 并设置该变量,并避免遍历我的代码并将表名替换为小写字母。
谢谢。
最佳答案
不,不重新安装就不可能在 mysql v8.0 上更改此设置。 Mysql manual对此非常明确:
It is prohibited to start the server with a lower_case_table_names setting that is different from the setting used when the server was initialized. The restriction is necessary because collations used by various data dictionary table fields are determined by the setting defined when the server is initialized, and restarting the server with a different setting would introduce inconsistencies with respect to how identifiers are ordered and compared.
这也是您链接的错误报告的答案,因此我不完全确定您期望在这里得到什么答案。
关于mysql - 在 RHEL 上安装的 mysql 中设置 lower_case_table_names=1 ,无需重新安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58761482/
我想把这个 Dockerfile 带到这里 - https://github.com/ForgeRock/forgeops/blob/release/6.5.0/docker/util/Dockerf
我最近将许多网站从一台运行 RHEL 6 的服务器迁移到一台运行 RHEL 7 的服务器。一个站点使用 pdftk,它依赖于 libgcj,显然 RHEL 7 不再支持它。(至少,我有没有找到广告它的
为了测试日期/时间设置为过去或 future 的 java 代码,我想尝试 libfaketime(目前我们只是调整系统时钟,但它会导致很多麻烦,例如无法正常工作的 kerberos 等)。 我尝试使
我有一堆使用 gcc 4.7 在 RHEL 7 中构建的库。以下是否可能 1) Can the binary be executed in RHEL 6 host without re-compili
所有配置都相同。只是尝试从 A 移动到 B。但是在 B 服务器上,我在尝试/测试登录时收到以下错误: FTP client login error 任何解决方案都将受到高度赞赏。 最诚挚的问候,卡洛尔
我们的业务需要在一个平台上编译我们的软件并在另一个平台上交付。这一直很好,直到我们需要编译 mysqlclient 以连接到数据库。 我想知道是否有其他人尝试过针对 mysqlclient 进行编译并
我们有一个基于 32 位 CentOS 4.8(相当于 Red Hat Enterprise Linux (RHEL) 4 update 8)的商业应用程序。 默认的 gcc 编译器是 3.4.6 我
我是计算机科学新手。我的项目需要使用基于 CLIPS 规则的引擎,它在 RHEL 盒子中运行。查看剪辑的下载链接( http://sourceforge.net/projects/clipsrules
RHEL7 中使用了firewalld代替了原来的iptables,操作设置和原来有点不同: 查看防火墙状态:systemctl status firewalld 启动防火墙:systemctl st
MySQL数据库是Linux操作系统上用得最多的数据库系统,它可以非常方便的与其它服务器集成在一起,如Apache、Vsftpd、Postfix等。下面介绍RHEL 6平台MySQL数据库服务器的安
我正在尝试在 RHEL 服务器上安装 certbot。 Instructions to enable epel-release # yum install https://dl.fedoraproje
我正在开发一个在 Linux (RHEL 7) 上归档数据的应用程序。该应用程序保留源文件并将 tar/tar.gz 放在存档文件夹中。当我的数据很少时,它工作正常。但是当我尝试处理大数据时,我遇到了
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
所以,我正在尝试更改 RHEL 中的存储库,但我总是收到以下消息,但不知道这意味着什么。 Loaded plugins: product-id, security, subscription-mana
我正在 RHEL 环境中运行我的应用程序服务器(Karaf、Tomcat、Mongo 和 Zookeeper 各一个实例),并且经常看到(使用 free -m)我的总 12GB RAM 中近 8GM
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be
我对证书真的很陌生,发现很难实现我的想法。让我有一个用 openSSL 生成的自签名证书。为了使该证书受信任,我应该在 RHEL 中遵循哪些步骤? .pfx 和 .crt 在程序上有什么区别吗?您能否
我最近发现我的 C++ 程序在尝试从输入流重定向到字符串时在 Red Hat Linux 上发生核心转储。该程序提供了一个 PID,并尝试从/proc 中获取进程名称。代码如下: std::strin
我在 x86_64 机器上使用 RHEL 5.8: $ uname -r 2.6.18-308.1.1.el5 $ uname -m x86_64 $ 尝试将源代码交叉编译为 i386 兼容: CFL
我在 service script 之后写了一个服务脚本但是我发现没有守护进程命令,我无法谷歌如何安装它 最佳答案 来自 /usr/share/doc/initscripts-*/sysvinitfi
我是一名优秀的程序员,十分优秀!