I moved my site to a different server, and now I get a 'Database Connection Failed'.
old server:
PHP version 5.1.6
MySQL version 5.0.27-standard-log
new server:
PHP version 4.4.6
MySQL version 4.1.21-standard-log
DB and tables are all made (dumped sql and imported it) and acessable through ssh mysql -u etc. , and with this script that I can run from the homedirectory.
Code: Select all
<?php
include('config.php');
$db=mysql_connect ($config['db_hostname'], $config['db_username'], $config['db_password'])
or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ($config['db_name']);
print 'no problems';
?>
Any suggestions?
ps. what is this variable in config.php for?: $config['dbms'] = 'mysqli';