Anyone experienced in mysql?

  • Thread starter Thread starter 4p
  • Start date Start date

4p

4p

Soldato
Joined
20 Jun 2006
Posts
8,411
Location
Capital of The North
This is the access code

$db_host = "localhost"; // mySQL database host
$db_user = "thorpy;"; // mySQL database user
$db_password = "*******;"; // mySQL database password
$db_name = "sb;"; // the name of your mySQL database

I have made the database, its named "sb" - My user is "thorpy" and my password is correct

I get this error

Warning: mysql_connect(): Access denied for user 'thorpy;'@'localhost' (using password: YES) in /var/www/vhosts/harshtimes.teamhost.co.uk/httpdocs/shoutbox.php on line 46
Access denied for user 'thorpy;'@'localhost' (using password: YES)

Can anyone help? If this is the wrong section then please move

Im on MSN, email in trust.
 
thats for phpBB setup?
is the php server actually running locally to the webserver? (same box?) if not change the db_host ="ip or the box runnign mysql"
 
you've got a semi-colon in your quotes for your variable for your username, so it thinks your username is 'thorpy;' not 'thorpy'
 
Its not for PHPBB, the server is local and i have tried what Dolph said and it still fails :(

Oh and ive double checked the password about 20 times

@Dolph

Access denied for user 'thorpy'@'%' to database 'sb;'

New error
 
$db_host = "localhost"; // mySQL database host
$db_user = "thorpy"; // mySQL database user
$db_password = "*******"; // mySQL database password
$db_name = "sb"; // the name of your mySQL database
 
Just removed the semicolon from db and its working now

I read something last night that semicolon was needed for it :s

Cheers for the help :D
 
Back
Top Bottom