gpt4 book ai didi

mysql - 未找到 CWP 数据库

转载 作者:行者123 更新时间:2023-11-29 17:27:32 25 4
gpt4 key购买 nike

刚刚在 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

我已检查并确保我的 Root SQL 密码和 CWP 配置文件中的密码相同。

但是我发现 SQL 中不存在 CWP_root 数据库。

是否有任何方法可以重新安装 cwp 或修复数据库,而无需重新安装整个服务器。

最佳答案

root登录并在此之后写入 mysql -u root -p 写入数据库密码并显示数据库;如果不存在 创建数据库 root_cwp ; 如果步骤成功,返回尝试您的设置但是数据库存在,请尝试更改数据库密码并返回尝试您的设置。如果无法登录数据库,请尝试 mysql_secure_installation 并重置密码或

mysql> use mysql; 

mysql> 更新用户设置密码=PASSWORD("yournewrootpasshere") where User='root';mysql> 刷新权限;mysql>退出

抱歉我的英语不好希望对您有帮助

关于mysql - 未找到 CWP 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50873679/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com