1. 程式人生 > >CentOS7下安裝MYSQL8.X並設置忽略大小寫

CentOS7下安裝MYSQL8.X並設置忽略大小寫

The 配置 初始化 get www red nbsp con 安裝mysql

安裝

在官網上下載:mysql80-community-release-el7-2.noarch.rpm。安裝方式與5.7沒有任何區別。詳細見:CentOS7下安裝MYSQL5.7。

設置忽略大小寫

mysql安裝完在啟動前修改/etc/my.cnf文件,添加配置:lower_case_table_names=1

技術分享圖片

查看是否忽略大小寫。

技術分享圖片

註意:官網上明確指出mysql8.x只有在初始化時才能設置忽略大小寫。地址:https://dev.mysql.com/doc/refman/8.0/en/identifier-case-sensitivity.html。

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.

技術分享圖片

CentOS7下安裝MYSQL8.X並設置忽略大小寫