init.sql 没有指定库名
chenbihao opened this issue · 3 comments
chenbihao commented
ERROR 1146 (42S02): Table 'xxl_job.users' doesn't exist
ERROR 1146 (42S02): Table 'xxl_job.roles' doesn't exist
原:
INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN');
应改为:
INSERT INTO nacos.users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
INSERT INTO nacos.roles (username, role) VALUES ('nacos', 'ROLE_ADMIN');
developers-youcong commented
chenbihao commented
developers-youcong commented
重新下载仍然没有问题,正常。