iscreamd83
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 0
Hi,
I've been trying to connect to MySQL on my site, using php mysql_connect.
This is the code:
-------------------
<?php
$dbhost = "localhost";
$dbuser = "iscream_testuser";
$dbpass = "censored";
$database ="iscream_testdb";
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
@mysql_select_db($database) or die( "Attempt to connect has failed.");
?>
-------------------
The error I get:
-----------
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'iscream_testuser'@'10.33.248.81' (using password: YES) in /home/iscream/public_html/mysql_connect.php on line 6
Error connecting to mysql
-----------
Can anyone point to the error what's causing it? I've searched for solutions but haven't found any. By the way, the password is 100% sure, the user has all privileges set for the database.
Thanks in advance,
iScream
I've been trying to connect to MySQL on my site, using php mysql_connect.
This is the code:
-------------------
<?php
$dbhost = "localhost";
$dbuser = "iscream_testuser";
$dbpass = "censored";
$database ="iscream_testdb";
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
@mysql_select_db($database) or die( "Attempt to connect has failed.");
?>
-------------------
The error I get:
-----------
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'iscream_testuser'@'10.33.248.81' (using password: YES) in /home/iscream/public_html/mysql_connect.php on line 6
Error connecting to mysql
-----------
Can anyone point to the error what's causing it? I've searched for solutions but haven't found any. By the way, the password is 100% sure, the user has all privileges set for the database.
Thanks in advance,
iScream