php - Opencart 问题配置步骤 3 - "Error: Could not connect to the database please make..."

标签 php mysql database opencart shopping-cart

如果有人熟悉 Opencart,请帮忙。我正处于尝试购物车的阶段,对MySQL知之甚少。

问题

“错误:无法连接到数据库,请确保数据库服务器、用户名和密码正确!”

我已经通过Cpanel创建了一个数据库(DB)来填写相关字段。这些是我填写的字段:

(drop down) MySQLi - MySQL (What is the difference?)

(Input Field) Database Host : localhost (where does this need to point to?)

(Input) Username and then password : I have entered a password without special characters, but I can't remove the underscore from the user name. These were made in Cpanel.

Database Name : I have entered the database name here but cant remove "dsdsdsd_databasename"

Database Prefix : oc_ I have left this as is... What is this prefix?

我已经输入了用户名 admin 和密码 - 有什么指示吗?

最佳答案

所有似乎都可以使用该配置!我可以看到登录信息。不过,如果有人能回答我上面的要点,我将不胜感激。

最后我进入 Cpanel,向下滚动到“MySQL 向导”并按照步骤操作。我相信我之前输入的姓名和密码都是正确的。与在 Cpanel 中使用向导的区别在于,它在末尾允许一个允许“所有权限”的选项 - 勾选该框,不久我就可以看到管理面板。

希望这有帮助。

关于php - Opencart 问题配置步骤 3 - "Error: Could not connect to the database please make...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23735072/

相关文章:

php - 如何获取除特定值之外的所有行

mysql - IN 运算符不返回范围内的所有记录

database - Listagg 用于大数据并在引号中包含值

php - 如何在不带括号的 Zend_Db_Select 语句中使用 "HAVING"子句?

javascript - 使用 Google map 进行地理编码,没有 OVER_QUERY_LIMIT 错误 - 尝试使用 PHP 解决方案

java - 认证如何实现安全的 Web 服务?

php - 立陶宛字符未正确保存到 MySQL 数据库中

php - 为什么Apache2(Ubuntu)与Apache(Window上的easyPHP服务器)运行不同?

php - MySQL Count 表中的行数 WHERE userid 等于? - 代码点火器

sql-server - 使用存储过程进行计算