dragonadd 发表于 2024-12-11 15:04:13

【未复现】删除网站和数据库后,无法重新安装,提示账号.

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
CentOs 7.9.2009 x86 64(Py3.7.9)Linux面板9.3.0
系统版本:
CentOs 7.9.2009 x86 64(Py3.7.9)
问题描述:
在利用宝塔面板建立好网站后,然后上传网站文件放在对应站点的文件里面,然后输入域名进行安装部署。
第一次成功部署,觉得不满意,删除网站和对应的数据库,选择重新建立
https://private-user-images.githubusercontent.com/87432295/392832186-fe8e6f3b-5146-4310-9309-3157964001ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5MDAwNjYsIm5iZiI6MTczMzg5OTc2NiwicGF0aCI6Ii84NzQzMjI5NS8zOTI4MzIxODYtZmU4ZTZmM2ItNTE0Ni00MzEwLTkzMDktMzE1Nzk2NDAwMWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjExVDA2NDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdlZGQyNTI4NWI5OWU2NDA3NjEzOWMwZjE5M2RkOTA0MGU5ODhmMGFjZjlhNDIwMzA4YjQwYjQzZDAyMTMwN2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NjV7Ta9a_z4Y2sfVr73k13OhcM2c6D9ktNzyVUv_G18
在按照同样的步骤重建网站,在部署注册时候输入相同的管理员账号邮箱和密码后,却弹出以下代码提醒错误:
SQLSTATE: Integrity constraint violation: 1062 Duplicate entry 'app_name' for key 'configs_name_unique',
https://private-user-images.githubusercontent.com/87432295/392831289-ac214910-66cd-40f8-b1d4-10fd8175c0e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5MDAzODIsIm5iZiI6MTczMzkwMDA4MiwicGF0aCI6Ii84NzQzMjI5NS8zOTI4MzEyODktYWMyMTQ5MTAtNjZjZC00MGY4LWIxZDQtMTBmZDgxNzVjMGUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjExVDA2NTQ0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjMzg2ZjY5M2Q5NzQ0YTQ0NDcyODAxODljZGVjOGQzNTVlNzZlNzc3N2E4YTgwY2QzMTZiYzgwZjE5MjQ0ZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YhDbTQbiP-8PF9JqX-IETEaFte51Wct4PTv9Rnstvt8
进入到phpmyadmin里面看,img下面没有表结构,是空的
https://private-user-images.githubusercontent.com/87432295/392884286-ef8ae653-5468-40ac-900b-06695790d7be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5MDA3MzksIm5iZiI6MTczMzkwMDQzOSwicGF0aCI6Ii84NzQzMjI5NS8zOTI4ODQyODYtZWY4YWU2NTMtNTQ2OC00MGFjLTkwMGItMDY2OTU3OTBkN2JlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjExVDA3MDAzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhMWIwYWU3ZDRhZTExZmRiY2U4OGU1ODhjNTZjZTU3MjM0N2M1OGM0MTFiYzEzYTIxOWUxZGNiYmM5NTgwMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.m_tMh1PvgD8eqowpsyXxfNvsY_KOgW5WlwmHoj02NEM

然后又把数据库删除了重新建网站和数据库,现在错误代码变了,提示如下:
SQLSTATE: Base table or view already exists: 1050 Table '`img`.`migrations`' already exists
https://private-user-images.githubusercontent.com/87432295/392885049-85a7ba02-0958-409b-8cd1-49beb335fa22.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5MDA3OTgsIm5iZiI6MTczMzkwMDQ5OCwicGF0aCI6Ii84NzQzMjI5NS8zOTI4ODUwNDktODVhN2JhMDItMDk1OC00MDliLThjZDEtNDliZWIzMzVmYTIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjExVDA3MDEzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhMmJhYmEwYTk0MzY3Y2E2YTQ4ZDM1MzEzYzQ5NGI4NjdlZGRlYmQ3ODYxN2JiZjRkZjhmNjlkMTliNjk1NDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5E5ugntTLKlDB2lnrwJqNlhKg1knxLPWtfbO2koj5Y4

已经确定回收站里面的数据库也已经删除了。而且可以确定,如果新建的数据库不是原来的“img”命名,是可以成功建立、安装成功的。是否宝塔面板下,数据库并不删除干净,仍然有残留?

大炮运维V587 发表于 2024-12-11 15:04:57

您好,使用 wordpress 一键部署为例,部署一次后删除,并清空回收站,然后再部署,并未复现您反馈的问题
页: [1]
查看完整版本: 【未复现】删除网站和数据库后,无法重新安装,提示账号.