View Single Post
  #1  
Old May 2nd, 2008, 08:39 PM
Matsaki's Avatar
Matsaki Matsaki is online now
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Matsaki is on a distinguished road
Virtual host and MySQL problem

I have my PHP/MySQL site running locally on my computer for testing and development. Now I have a new computer and made a fresh install and every thing from the beginning.

I started Apache, PHP and MySQL and I can connect fine to my local MySQL databases. But when I try to open my site I get the following error:

Quote:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mats'@'localhost' (using password: YES) in /Users/matsaki/Sites/ayianapa.nu/includes/dbopen.php on line 26
But I know the username and password is correct. So what's going wrong here?
__________________
G4 Quicksilver 867Mhz / 896RAM / 2 x 120Gb HD. Mac OS X 10.4.11
G4 alubook 1.5GHz (BT 2) / 2Gb RAM / 80Gb HD. Mac OS X Tiger 10.4.11

Macbook Pro 2.4GHz / 3Gb RAM / 200Gb HD / Mac OS X Leopard 10.5.2
Reply With Quote