Hello,
I'm trying to connect to my database but without succes. I always get this error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXX'@'starka.x10hosting.com' (using password: YES) in /home/xxx/config.php on line 10
I don't know what I'm doing wrong. This is my code:
For the host I use the main domain (when you log in cpanel, it's in the list). As user I create a user with Mysql Database and I link it to my database. As database I use the name of my database.
I know this is a very stupid question, but I can't get it to work.
Please help me.
Rimbah
I'm trying to connect to my database but without succes. I always get this error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXX'@'starka.x10hosting.com' (using password: YES) in /home/xxx/config.php on line 10
I don't know what I'm doing wrong. This is my code:
PHP:
<?php
error_reporting(E_ALL & ~E_NOTICE);
# CONFIG
$dbhost = '*******.x10hosting.com';
$dbuser = 'rimbah_*****';
$dbpass = '*******';
# CONNECT
$conn = mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error());
$dbname = 'rimbah_******';
mysql_select_db('rimbah_******') or die('MySQL_select_db error.');
?>
For the host I use the main domain (when you log in cpanel, it's in the list). As user I create a user with Mysql Database and I link it to my database. As database I use the name of my database.
I know this is a very stupid question, but I can't get it to work.
Please help me.
Rimbah