当前位置:网站首页>解决:exceptiole ‘xxxxx.QRTZ_LOCKS‘ doesn‘t exist以及mysql的my.cnf文件追加lower_case_table_names后启动报错
解决:exceptiole ‘xxxxx.QRTZ_LOCKS‘ doesn‘t exist以及mysql的my.cnf文件追加lower_case_table_names后启动报错
2022-07-02 22:10:00 【子非我鱼】
解决:com.mysql.cj.jdbc.exceptiole ‘xxxxx.QRTZ_LOCKS’ doesn’t exist
在我们这个xxxxx库下是有这个表的,不过是这里是大写没有识别到,我们需要更改mysql配置文件
在mysql的my.cnf文件内容的[mysqld]下面追加lower_case_table_names=1
lower_case_table_names参数详解:
lower_case_table_names = 0|1
其中 0:区分大小写,1:不区分大小写
MySQL在Linux下数据库名、表名、列名、别名大小写规则是这样的:
1、数据库名与表名是严格区分大小写的;
2、表的别名是严格区分大小写的;
3、列名与列的别名在所有的情况下均是忽略大小写的;
4、变量名也是严格区分大小写的;

修改my.cnf启动报错:
mysql已经停掉了
步骤1,备份mysql的data文件,并删掉原来的data里面的所有文件
cp -rf 资源位置 目标位置

步骤2,更改好my.cnf配置文件,之前没有加上lower_case_table_names这个配置的也加上
[mysqld]
#bind-address=0.0.0.0
character_set_server=utf8
skip-name-resolve
port=3306
user=mysql
basedir=/home/myqxin/java/mysql
datadir=/home/myqxin/java/mysql/data
socket=/home/myqxin/java/mysql/data/mysql.sock
lower_case_table_names=1
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[client]
default-character-set=utf8
port=3306
socket=/home/myqxin/java/mysql/data/mysql.sock
[mysqld_safe]
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
步骤3,进入mysql的bin目录下,初始化数据库
./mysqld --defaults-file=/etc/my.cnf --basedir=/home/myqxin/java/mysql/ --datadir=/home/myqxin/java/mysql/data/ --user=mysql --initialize
初始化完成,会自动生成一个初始密码,先记录下来,等会儿登录使用
效果如下:

步骤4,启动Mysql服务
# 启动明令
service mysql start
# 停止明令
service mysql stop
效果如下:
步骤5,进入mysql的bin目录下,登录mysql(提示输入密码的时候,就是我们初始化生成的密码,如果你忘记的话,删掉data目录,从那个步骤从新开始)

步骤6,修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
刷新
flush privileges;

步骤7,使用新密码登录,配置远程访问(上面并不能进行远程访问,需要修改允许远程连接,步骤如下)

步骤8,查看是否区分大小写
show variables like 'lower%'

边栏推荐
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
- Jerry's fast touch does not respond [chapter]
- Chow-Liu Tree
- Generics and reflection, this is enough
- 容器化技术在嵌入式领域的应用
- FOC矢量控制及BLDC控制中的端电压、相电压、线电压等概念别还傻傻分不清楚
- Static file display problem
- Pytorch training CPU usage continues to grow (Bug)
- Qt QSplitter拆分器
- [Solved] Splunk: Cannot get username when all users are selected“
猜你喜欢

从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试

严守工期,确保质量,这家AI数据标注公司做到了!

容器化技术在嵌入式领域的应用
![Temperature measurement and display of 51 single chip microcomputer [simulation]](/img/83/73ee7f87787690aef7f0a9dab2c192.jpg)
Temperature measurement and display of 51 single chip microcomputer [simulation]

Lambda expression: an article takes you through
![[Solved] Splunk: Cannot get username when all users are selected“](/img/13/1e824c8005701e21fc5b4e73308d53.png)
[Solved] Splunk: Cannot get username when all users are selected“

ServletContext learning diary 1

STM32之ADC

详解Promise使用
![[chestnut sugar GIS] ArcScene - how to make elevation map with height](/img/91/f3df0a7633263c6264cb5c27eb149f.png)
[chestnut sugar GIS] ArcScene - how to make elevation map with height
随机推荐
程序员版本的八荣八耻~
实现BottomNavigationView和Navigation联动
海思3559万能平台搭建:在截获的YUV图像上画框
Pytorch training CPU usage continues to grow (Bug)
Doorplate making C language
SQL进阶语法
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
FOC矢量控制及BLDC控制中的端电压、相电压、线电压等概念别还傻傻分不清楚
xshell配置xforward转发火狐浏览器
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
MySQL reset password, forget password, reset root password, reset MySQL password
The difference between new and make in golang
力扣刷题(2022-6-28)
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
WebRTC音视频采集和播放示例及MediaStream媒体流解析
Brief introduction of emotional dialogue recognition and generation
Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!
Construction of Hisilicon 3559 universal platform: draw a frame on the captured YUV image
[favorite poems] OK, song