flash.engine50
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
Hi, I am here new and I don't know what I have to do. I have read somethings in forum, but I didn't find.
I have created database, mysql user, added user to database and I gave all permission to user.
my php script:
$host="localhost"; // Host name
$username="hawksvk_fe"; // Mysql username
$password="mypassword"; // Mysql password
$db_name="hawksvk_database"; // Database name
//Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect to server");
mysql_select_db("$db_name")or die("cannot select DB");
Result: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'hawksvk_fe'@'web7.vital.x10hosting.com' (using password: YES) in /home/hawksvk/public_html/aaa.php on line 11
Please help me, thank you.
I have created database, mysql user, added user to database and I gave all permission to user.
my php script:
$host="localhost"; // Host name
$username="hawksvk_fe"; // Mysql username
$password="mypassword"; // Mysql password
$db_name="hawksvk_database"; // Database name
//Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect to server");
mysql_select_db("$db_name")or die("cannot select DB");
Result: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'hawksvk_fe'@'web7.vital.x10hosting.com' (using password: YES) in /home/hawksvk/public_html/aaa.php on line 11
Please help me, thank you.