cwp数据库

ac1kyiln  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(497)

刚刚在centos 7上重新安装了cwp。但当我尝试启动它时,我得到了一个错误:


###################### 

Update Server Packages

###################### 

PHP Warning:  mysqli_connect(): (HY000/1049): Unknown database 'root_cwp' in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Warning:  main(/usr/local/cwpsrv/htdocs/resources/admin/include/postfix.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Warning:  main(): Failed opening '/usr/local/cwpsrv/htdocs/resources/admin/include/postfix.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php') in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Notice:  Undefined variable: db_host_postfix in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Notice:  Undefined variable: db_user_postfix in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Notice:  Undefined variable: db_pass_postfix in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Notice:  Undefined variable: db_name_postfix in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Warning:  mysqli_connect(): (HY000/1049): Unknown database 'root_cwp' in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
PHP Warning:  mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
Could not select database root_cwp

我已经检查并确保我的根sql密码和cwp配置文件中的密码相同。
但是我看到cwp\u根数据库在sql中不存在。
有没有办法在不重新安装整个服务器的情况下重新安装cwp或fiix数据库。

fv2wmkja

fv2wmkja1#

用root登录,写mysql-u root-p,然后写数据库密码并显示数据库;如果不存在,则创建数据库根目录\u cwp;如果步骤成功، return请尝试安装,但数据库已存在请尝试更改数据库密码,return请尝试安装。如果您无法登录到数据库,请尝试mysql\u secure\u安装并重置密码或

mysql> use mysql;

mysql>update user set password=password(“yournewrootpasshere”)其中user='root';mysql>刷新权限;mysql>退出
对不起,我的英语不好,希望能帮助你

相关问题