Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error to init MySQL Database #203

Open
Mr-Ao-Dragon opened this issue Apr 2, 2023 · 1 comment
Open

error to init MySQL Database #203

Mr-Ao-Dragon opened this issue Apr 2, 2023 · 1 comment

Comments

@Mr-Ao-Dragon
Copy link

MySQL Version:8.0
error sql:

INSERT INTO t_user (`id`, `username`, `nickname`, `avatar`, `email`, `password`, `status`, `create_time`, `update_time`,
                    `roles`, `description`, `topic_count`, `comment_count`, `score`, `follow_count`, `fans_count`)
SELECT 1,
       'admin',
       'bbsgo站长',
       '',
       '[email protected]',
       '$2a$10$ofA39bAFMpYpIX/Xiz7jtOMH9JnPvYfPRlzHXqAtLPFpbE/cLdjmS',
       0,
       (UNIX_TIMESTAMP(now()) * 1000),
       (UNIX_TIMESTAMP(now()) * 1000),
       'owner',
       '轻轻地我走了,正如我轻轻的来。',
       0,
       0,
       0,
       0,
       0
FROM DUAL
WHERE NOT EXISTS(SELECT * FROM `t_user` WHERE `id` = 1);

error code: 1045
1680450743728.png

@musclejack
Copy link

老哥有解决吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants