image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old May 2nd, 2008, 08:39 PM
Matsaki's Avatar
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 400
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
  #2  
Old May 3rd, 2008, 08:43 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,926
Thanks: 2
Thanked 63 Times in 59 Posts
ElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura about
When you added the "mats" user to the new mySQL installation, did you set him up for all zones?

Does the root account work the same way?
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old May 3rd, 2008, 06:12 PM
Matsaki's Avatar
Mac Addict
 
Join Date: Nov 2001
Location: Cyprus
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Matsaki is on a distinguished road
Thanks I found the problem
__________________
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
  #4  
Old May 4th, 2008, 10:52 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,926
Thanks: 2
Thanked 63 Times in 59 Posts
ElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura about
Can you post the solution so that others browsing the forum with similar problems can have troubleshooting steps?
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:23 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.