Hi,
I just installed Joomla on mywebsite in the root directory. However, when I try to access the website it is giving me the error...
Database Error: Unable to connect to the database:Could not connect to MySQL
I used a simple code below to check if everything is alright...
<?php
$host = 'localhost';
$user = 'xxxxxxx_jo151';
$pass = 'xxxxxxxxxx';
$db = 'xxxxxxx_jo151';
$conn = mysql_connect($host, $user, $pass);
mysql_select_db($db, $conn);
And I am getting following error...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gaymeg_jo151'@'10.33.248.78' (using password: YES) in /home/gaymeg/public_html/new.php on line 8
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/gaymeg/public_html/new.php on line 9
I have checked that the user has all the necessary privileges in the selected database.
Please help.
Thanks.
I just installed Joomla on mywebsite in the root directory. However, when I try to access the website it is giving me the error...
Database Error: Unable to connect to the database:Could not connect to MySQL
I used a simple code below to check if everything is alright...
<?php
$host = 'localhost';
$user = 'xxxxxxx_jo151';
$pass = 'xxxxxxxxxx';
$db = 'xxxxxxx_jo151';
$conn = mysql_connect($host, $user, $pass);
mysql_select_db($db, $conn);
And I am getting following error...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gaymeg_jo151'@'10.33.248.78' (using password: YES) in /home/gaymeg/public_html/new.php on line 8
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/gaymeg/public_html/new.php on line 9
I have checked that the user has all the necessary privileges in the selected database.
Please help.
Thanks.
Last edited: