部署的nacos,通过导入其它数据库导出的SQL文件,导入新的nacos数据库,在控制台删除配置列表的时候没反应,后台日志报错
ERROR CONSOLE
org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [INSERT INTO his_config_info (id,data_id,group_id,tenant_id,app_name,content,md5,src_ip,src_user,gmt_modified,op_type) VALUES(?,?,?,?,?,?,?,?,?,?,?)]; Field 'encrypted_data_key' doesn't have a default value; nested exception is java.sql.SQLException: Field 'encrypted_data_key' doesn't have a default value
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:251)
Caused by: java.sql.SQLException: Field 'encrypted_data_key' doesn't have a default value
删除这三个表中的'encrypted_data_key'字段即可