当前位置:网站首页>解决: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%'
边栏推荐
- 首批 | 腾讯云完成国内首个云原生安全成熟度评估
- The first batch of Tencent cloud completed the first cloud native security maturity assessment in China
- golang中new与make的区别
- Distributed monitoring system ZABBIX
- Warning: implicitly declaring library function 'printf' with type 'int (const char *,...)‘
- The difference between new and make in golang
- Qt QProgressBar详解
- Lambda expression: an article takes you through
- Potplayer set minimized shortcut keys
- Motivation du Protocole de chiffrement avancé AES
猜你喜欢
[Solved] Splunk: Cannot get username when all users are selected“
Data analysis learning records -- complete a simple one-way ANOVA with Excel
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
[Yangcheng cup 2020] easyphp
Webrtc audio and video capture and playback examples and mediastream media stream analysis
数字图像处理实验目录
AES高級加密協議的動機闡述
Qt QProgressBar详解
The motivation of AES Advanced Encryption Protocol
景联文科技低价策略帮助AI企业降低模型训练成本
随机推荐
分布式监控系统zabbix
Learning records of data analysis (II) -- simple use of response surface method and design expert
ADC of stm32
AES高級加密協議的動機闡述
Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code
golang中new与make的区别
Odoo13 build a hospital HRP environment (detailed steps)
PMP project integration management
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
[Solved] Splunk: Cannot get username when all users are selected“
门牌制作 C语言
力扣刷题(2022-6-28)
Splunk audit setting
Editor Caton
Jerry's built-in shutdown current is 1.2ua, and then it can't be turned on by long pressing [chapter]
Tronapi-波场接口-源码无加密-可二开--附接口文档-基于ThinkPHP5封装-作者详细指导-2022年7月1日08:43:06
聊聊内存模型与内存序
Niuke network: maximum submatrix
最小生成树 Minimum Spanning Tree
Sword finger offer II 099 Sum of minimum paths - double hundred code