cookieY / Yearning

🐳 A most popular sql audit platform for mysql
http://next.yearning.io/
GNU Affero General Public License v3.0
8.52k stars 1.99k forks source link

[Question] 3.19版本初始化过,修改配置文件之后,怎么才能生效? #1137

Open Eileen2014 opened 10 hours ago

Eileen2014 commented 10 hours ago

描述问题 清晰而简洁地描述你遇到的问题 版本初始化过,修改配置文件之后,怎么才能生效? 一定要把这个库中所有的表都删除了吗,但是我新建了很多用户,这样不就全部都要重新建立

image

Issues-translate-bot commented 10 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] Version 3.19 has been initialized. How can it take effect after modifying the configuration file?

Describe the problem Clearly and concisely describe the problem you encountered After the version is initialized, how can it take effect after modifying the configuration file? Do I have to delete all the tables in this library? But I have created a lot of new users, so they all have to be re-established.

image

dosubot[bot] commented 10 hours ago

在 Yearning 3.19 中,您可以在不删除现有表的情况下刷新或重新加载配置设置。可以使用 SuperSaveSetting 函数来更新配置。此函数会将新的配置数据绑定到 CoreGlobalConfiguration 模型,并使用 Updates 方法将更改应用到现有记录,而不会影响数据库中的现有表 [1]

To continue talking to Dosu, mention @dosu.

Eileen2014 commented 10 hours ago

重新加载配置设置的意思是重新启动服务就会自动加载最新的配置文件吗?

./Yearning run 这个命令吗?

Issues-translate-bot commented 10 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Does reloading configuration settings mean that restarting the service will automatically load the latest configuration file?

./Yearning run Is this an order?