Unable to connect to Database [after hack] - Joomla! Forum - community, help and support


hi,

we have task of migrating joomla 1 node node. below error joomla when bounce apache after migrating.

database connection error (2): not connect mysql

from end, verified db parameters in configuration.php file. absolutely right.

i wrote php script test simple db connection below:

<?php
# fill our vars , run on cli
# $ php -f db-connect-test.php
$dbname = '****';
$dbuser = '******';
$dbpass = '******';
$dbhost = ********'';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("unable connect '$dbhost'");
mysql_select_db($dbname) or die("could not open db '$dbname'");
$test_query = "show tables $dbname";
$result = mysql_query($test_query);
$tblcnt = 0;
while($tbl = mysql_fetch_array($result)) {
$tblcnt++;
echo $tbl[0]."<br />\n";
}
if (!$tblcnt) {
echo "there no tables<br />\n";
} else {
echo "there $tblcnt tables<br />\n";
}

it did produce result expected , connection successful.

when go http://<server-ip>/index.php, still database connection error (2)

change:
======
we trying move joomla website 1 node node

i don't understand techno-babble "nodes" , "bouncing apache"......?!

have tried doing backup akeeba backup , restore site akeeba kickstart?

can post fpa report (see pink section above forum post assistant (fpa)) reply here.





Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support