lsky-pro
lsky-pro copied to clipboard
删除网站和数据库后,无法重新安装,提示账号重复
在利用宝塔面板建立好图床后,然后删除网站和对应的数据库,选择重新建立
但是按照同样的步骤,在输入管理员账号邮箱和密码后,却弹出以下代码提醒错误。
Dropping all tables .............................................. 25ms DONE
INFO Nothing to migrate.
INFO Seeding database.
Installation error!
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'app_name' for key 'configs_name_unique' (SQL: insert into `configs` (`created_at`, `name`, `updated_at`, `value`) values (2024-12-05 21:10:35, app_name, 2024-12-05 21:10:35, Lsky Pro), (2024-12-05 21:10:35, app_version, 2024-12-05 21:10:35, V 2.1), (2024-12-05 21:10:35, site_keywords, 2024-12-05 21:10:35, Lsky Pro,lsky,兰空图床), (2024-12-05 21:10:35, site_description, 2024-12-05 21:10:35, Lsky Pro, Your photo album on the cloud.), (2024-12-05 21:10:35, site_notice, 2024-12-05 21:10:35, ), (2024-12-05 21:10:35, icp_no, 2024-12-05 21:10:35, ), (2024-12-05 21:10:35, is_enable_registration, 2024-12-05 21:10:35, 1), (2024-12-05 21:10:35, is_enable_gallery, 2024-12-05 21:10:35, 1), (2024-12-05 21:10:35, is_enable_api, 2024-12-05 21:10:35, 1), (2024-12-05 21:10:35, is_allow_guest_upload, 2024-12-05 21:10:35, 1), (2024-12-05 21:10:35, user_initial_capacity, 2024-12-05 21:10:35, 512000), (2024-12-05 21:10:35, is_user_need_verify, 2024-12-05 21:10:35, 0), (2024-12-05 21:10:35, mail, 2024-12-05 21:10:35, {"default":"smtp","mailers":{"smtp":{"smtp":"smtp","host":"smtp.mailgun.org","port":587,"encryption":"tls","username":"","password":"","timeout":null}}}))
进数据库确认一下数据库是否是空的,没有任何表结构。
进数据库确认一下数据库是否是空的,没有任何表结构。
您好,我进入到phpmyadmin里面看,img下面没有表结构,
然后我又把数据库删除了重新建网站和数据库,现在错误代码变了,提示如下:
Dropping all tables .............................................. 31ms DONE
INFO Preparing database.
Creating migration table ......................................... 12ms FAIL
Installation error!
SQLSTATE[42S01]: Base table or view already exists: 1050 Table '`img`.`migrations`' already exists (SQL: create table `migrations` (`id` int unsigned not null auto_increment primary key, `migration` varchar(255) not null, `batch` int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
已经确定回收站里面的数据库也已经删除了。
而且可以确定,如果新建的数据库不是原来的“img”命名,是可以成功建立、安装成功的。这是什么原因呢?