2011-12-26 129 views
1

與使用JUpgrade的的Joomla 1.5遷移到1.7後給出了錯誤:數據庫錯誤:無法連接到數據庫:無法連接到MySQL.Any理念PHP的Joomla遷移

回答

2

你應該看看配置與數據庫相關的文件,它可能已被重置。

配置文件名爲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個條目。

+0

如何查看配置文件,請給出步驟來查看配置文件 – 2011-12-26 11:17:42

+0

你有一些FTP訪問服務器嗎? – RageZ 2011-12-26 11:19:42

+0

它和你一樣建議 – 2011-12-26 11:31:48

1

您的項目文件夾內將會有一個名爲configuration.php的文件。

在該文件中查找變量$host,$user, $db和其他相關變量。

+0

它的確定,其他任何地方,它不匹配? – 2011-12-26 11:37:50

+0

更改configuration.php後,仍然面臨任何問題? – Manoj 2011-12-26 11:48:05