codingapi / codingapi/tx-lcn

当TX-LCN开启了日志配置之后, 数据库连接角色没有创建表权限, 启动报错

オープン
#477 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
4.2k
フォーク
1.4k
PR マージ指標
30日以内にマージされた PR はありません

説明

## Why you need it?
Is your feature request related to a problem? Please describe in details
希望在LogDbProperties 在这个类中添加一个checkout属性, 并且在MysqlLoggerHelper类中init()方法改变判断条件, 由我们自己决定是否开启创建表语句

## How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.

## Other related information
Add any other context or screenshots about the feature request here.
@Override
public void init() {
if (logDbProperties.isCheckOut()) {
String sql = "CREATE TABLE IF NOT EXISTS `t_logger` (\n" +
" `id` bigint(20) NOT NULL AUTO_INCREMENT,\n" +
" `group_id` varchar(64) NOT NULL ,\n" +
" `unit_id` varchar(32) NOT NULL ,\n" +
" `tag` varchar(50) NOT NULL ,\n" +
" `content` varchar(1024) NOT NULL ,\n" +
" `create_time` varchar(30) NOT NULL,\n" +
" `app_name` varchar(128) NOT NULL,\n" +
" PRIMARY KEY (`id`) USING BTREE\n" +
") ";
dbHelper.update(sql);
}

}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by locating LogDbProperties and MysqlLoggerHelper.init(), then trace how the logging database configuration is loaded during startup. Add the requested checkout setting and verify that table creation is controlled by it, including startup when the database role lacks table-creation permission.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, mysql
領域
databases
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。