使用 MariaDB 10.5.12数据库,连接方式使用mysql。
启动后数据库只创建了sites表,报如下错误
ERROR CREATE TABLE pages
(id
bigint unsigned AUTO_INCREMENT,created_at
datetime(3) NULL,updated_at
datetime(3) NULL,deleted_at
datetime(3) NULL,key
varchar(191),title
longtext,admin_only
boolean,site_name
varchar(191),vote_up
bigint,vote_down
bigint,PRIMARY KEY (id
),INDEX idx_pages_deleted_at (deleted_at
),INDEX idx_pages_key (key
),INDEX idx_pages_site_name (site_name
),CONSTRAINT fk_pages_site
FOREIGN KEY (site_name
) REFERENCES sites
(name
)) [505.1µs] error=Error 1005: Can't create table artalk
.pages
(errno: 150 "Foreign key constraint is incorrectly formed")
ERROR SELECT * FROM users
WHERE (LOWER(name) = LOWER('admin') AND LOWER(email) = LOWER('[email protected]')) AND users
.deleted_at
IS NULL ORDER BY users
.id
LIMIT 1 [537.9µs] error=Error 1146: Table 'artalk.users' doesn't exist
ERROR INSERT INTO users
(created_at
,updated_at
,deleted_at
,name
,email
,link
,password
,badge_name
,badge_color
,last_ip
,last_ua
,is_admin
,is_in_conf
) VALUES ('2022-02-08 04:26:29.312','2022-02-08 04:26:29.312',NULL,'admin','[email protected]','','','管理员','#FF6C00','','',true,true) [518.5µs] error=Error 1146: Table 'artalk.users' doesn't exist
ERROR SELECT * FROM users
WHERE is_in_conf = 1 AND users
.deleted_at
IS NULL [0s] error=Error 1146: Table 'artalk.users' doesn't exist