安装过程中出错,帮忙看看原因!

用的 php5.6  数据库5.9     大神门给看看
[10501] PDOException in Connection.php line 764
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'rh_addons' already exists

$this->numRows = $this->PDOStatement->rowCount();

return $this->numRows;
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
}

throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Throwable $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
}

throw $e;
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
Call Stack
in Connection.php line 764
at Connection->execute('CREATE TABLE `rh_add...', [], object(Query)) in Query.php line 329
at Query->execute('CREATE TABLE `rh_add...') in common.php line 186
at create_tables(object(Query), 'rh_') in Index.php line 114
at Index->sql()
at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 132
at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
at Middleware->think\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
at Module->exec() in Dispatch.php line 168
at Dispatch->run() in App.php line 432
at App->think\{closure}(object(Request), object(Closure), null)
at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
at Middleware->think\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
at Middleware->dispatch(object(Request)) in App.php line 435
at App->run() in index.php line 21
Exception Datas
PDO Error Info
SQLSTATE 42S01
Driver Error Code 1050
Driver Error Message Table 'rh_addons' already exists
Database Status
Error Code 10501
Error Message SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'rh_addons' already exists
Error SQL CREATE TABLE `rh_addons` ( `id` int(10) NOT NULL COMMENT '自增ID', `name` varchar(255) NOT NULL COMMENT '插件名称', `addon` varchar(50) NOT NULL COMMENT '标识名', `desc` text COMMENT '描述', `version` varchar(10) NOT NULL COMMENT '版本号', `author` varchar(50) NOT NULL COMMENT '作者姓名', `logo` text COMMENT 'LOGO', `status` int(1) NOT NULL DEFAULT '1' COMMENT '状态', `config` text COMMENT '插件配置', `entry_url` varchar(160) NOT NULL COMMENT '前端入口', `admin_url` varchar(160) NOT NULL COMMENT '后台入口', `menu_show` tinyint(1) NOT NULL COMMENT '是否在菜单显示1:显示0:隐藏' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='应用表'
Database Config
type mysql
hostname 127.0.0.1
database ******
hostport 3306
dsn
params []
charset utf8
prefix rh_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false
break_match_str []
Environment Variables
GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID rpaukcstfm27uu7i0j6smahmv0
security_session_verify bea4a7b942382117abdd447797d90c08
Session
think_ { "error": false, "step": 1, "admin_info": { "email": "admin@admin.com", "repassword": "longding2014", "password": "longding2014", "username": "*****" }, "db_config": { "prefix": "rh_", "hostport": "3306", "password": "*****", "username": "weixin_longding_", "database": "weixin_longding_", "hostname": "127.0.0.1", "type": "mysql" } }
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /install/index/sql.html
QUERY_STRING s=install/index/sql.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=install/index/sql.html
REDIRECT_URL /install/index/sql.html
REMOTE_PORT 46366
SCRIPT_FILENAME /www/wwwroot/weixin.longding.co/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/weixin.longding.co
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/weixin.longding.co
REMOTE_ADDR -----
SERVER_PORT 80
SERVER_ADDR ----SERVER_NAME *******
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at ******* Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE PHPSESSID=-------; security_session_verify=------
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.9
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_REFERER --------/install/index/config.html
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_CACHE_CONTROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_HOST weixin.longding.co
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1569060362.2644
REQUEST_TIME 1569060362
Environment Variablesempty
ThinkPHP Constants
ENTR_PATH
ROOT_PATH /www/wwwroot/weixin.longding.co/
DS /
APP_PATH /www/wwwroot/weixin.longding.co/application/
ADDON_PATH /www/wwwroot/weixin.longding.co/addons/
MINIAPP_PATH /www/wwwroot/weixin.longding.co/miniapp/
ADDON_ROUTE /app/
EXTEND_PATH /www/wwwroot/weixin.longding.co/extend/
IS_WRITE true
MODULE_NAME install
CONTROLLER_NAME index
ACTION_NAME sql
已邀请:

geeson

赞同来自:

清空数据库,然后再执行安装,建议使用PHP7或者更高的版本使用,性能最佳

要回复问题请先登录注册