使用JUpgrade将joomla 1.5迁移到1.7后,出现错误:数据库错误:无法连接到数据库:无法连接到MySQL.Any Idea
发布于 2011-12-26 19:15:27
您应该查看一下与数据库相关的配置文件,它可能已经被重置。
配置文件名为configuration.php,应该在public_html目录中:下面这样的代码应该在那里:
var $host = 'localhost'; // Leave it to localhost if you are unsure
var $user = 'your-database-user'; // This should be changed to yours
var $password = 'yourpass'; // Change it to the password for the database user
var $db = 'your-database-name'; // Change it to the name of your database请编辑这4个条目。
发布于 2011-12-26 19:30:38
在你的项目文件夹中会有一个名为configuration.php的文件。
在该文件中查找变量$host、$user、$db和其他相关变量。
https://stackoverflow.com/questions/8635202
复制相似问题