sohutv / mqcloud

RocketMQ企业级一站式服务平台
Apache License 2.0
1.91k stars 272 forks source link

user sql 初始化异常 #40

Open weihubeats opened 1 year ago

weihubeats commented 1 year ago

image 实际正确的sql应该为h2里面的sql

INSERT IGNORE INTO `user`(`id`, name, email, mobile, type, create_date, update_time, receive_notice, password)
VALUES ('1', 'admin', 'admin@admin.com', '18688888888', '1', '2018-10-01', '2018-10-01 09:49:00', '1', '21232f297a57a5a743894a0e4a801fc3');
gaoyf commented 1 year ago

init.sql是在初始化时,只执行一次的,请勿重复执行,具体参考https://github.com/sohutv/mqcloud/wiki/%E7%94%9F%E4%BA%A7%E6%A8%A1%E5%BC%8F

weihubeats commented 1 year ago

表的字段列和插入数据对应不上会报错,不单单是重复执行的问题