当前位置:网站首页>解决: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%'

边栏推荐
- Learning Websites commonly used by circuit designers
- Introduction to the latest plan of horizon in April 2022
- Lambda表达式:一篇文章带你通透
- 阿里云有奖体验:如何使用 PolarDB-X
- 設置單擊右鍵可以選擇用VS Code打開文件
- Jinglianwen technology's low price strategy helps AI enterprises reduce model training costs
- Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel
- 海思3559万能平台搭建:在截获的YUV图像上画框
- 分布式监控系统zabbix
- Pytorch training CPU usage continues to grow (Bug)
猜你喜欢
![[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM](/img/5d/c23ec16df6ce8d78207b635f59dc20.png)
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM

QT qsplitter splitter

Qt QScrollArea

设置单击右键可以选择用VS Code打开文件

Potplayer set minimized shortcut keys

China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!

Set right click to select vs code to open the file

Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!

Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP

Chow-Liu Tree
随机推荐
景联文科技低价策略帮助AI企业降低模型训练成本
Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions
为什么RTOS系统要使用MPU?
Detailed explanation and application of merging and sorting
MySQL reset password, forget password, reset root password, reset MySQL password
BBR 遭遇 CUBIC
SQL advanced syntax
解决Chrome浏览器和Edeg浏览器主页被篡改的方法
golang入门:for...range修改切片中元素的值的另类方法
抖音实战~点赞数量弹框
Use of recyclerview with viewbinding
Antd component upload uploads xlsx files and reads the contents of the files
容器化技术在嵌入式领域的应用
阿里云有奖体验:如何使用 PolarDB-X
Learning records of data analysis (II) -- simple use of response surface method and design expert
Distributed monitoring system ZABBIX
深度剖析数据在内存中的存储----C语言篇
Chow-Liu Tree
Warning: implicitly declaring library function 'printf' with type 'int (const char *,...)‘
Doorplate making C language