Hello,
My domain: www.coaster.ch
My database: coasters
User: bettina
In the programm I wrote:
<?php
$db_server = "www.coaster.ch";
$db_name = "coasters";
$db_user = "bettina";
$db_passwort = "";
$dbh = mysql_connect ("localhost", "coaster_bettina", "") or die ('I
cannot connect to the database because: ' . mysql_error());
mysql_select_db ("coaster_coasters");
?>
I get the following message:
Warning: mysql_connect(): Access denied for user
'coaster_bettina'@'localhost' (using password: YES) in
/home/coaster/public_html/connection.php on line 11
I cannot connect to the database because: Access denied for user
'coaster_bettina'@'localhost' (using password: YES)
I also tried with:
$db_name = "coaster_coasters";
$db_user = "coasters_bettina";
What do I do wrong?
Here can I define a password for my database in phpMyAdmin?
Any help will be welcomed.
Bettina