赞
踩
https://cdn.mysql.com//Downloads/MySQL-5.7/ mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar -C /root/soft/mysql
yum -y install make gcc-c++ cmake bison-devel ncurses-devel libaio libaio-devel net-tools
[root@youxi2 ~]# rpm -qa | grep mariadb
mariadb-libs-5.5.60-1.el7_5.x86_64
[root@youxi2 ~]# yum -y remove mariadb-libs
rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
grep “password” /var/log/mysqld.log
//前往⽇日志⽂文件查找临时密码
mysql -uroot -p" xq)=!q7V:f;_"
//登录
show variables like ‘lower_case_table_names’;
select @@lower_case_table_names;
更更改⽅方法
更更改数据库参数⽂文件my.cnf
在mysqld下 添加或修改 lower_case_table_names = 1 之后重启数据库
参数说明
lower_case_table_names=0 表名存储为给定的⼤大⼩小和⽐比较是区分⼤大⼩小写的 lower_case_table_names = 1 表名存储在磁盘是⼩小写的,但是⽐比较的时候是不不区分
⼤大⼩小写
lower_case_table_names=2 表名存储为给定的⼤大⼩小写但是⽐比较的时候是⼩小写的 unix,linux下lower_case_table_names默认值为 0 .Windows下默认值是 1 .Mac OS X下默认值是 2
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。