Adobe Dreamweaver Forums



Last 10 THreads :         Change Book or Page Icons? (Last Post : garythebadger - Replies : 0 - Views : 1 )           »          RoboHelp hanging (Last Post : shawntrident - Replies : 1 - Views : 2 )           »          how to remove key from an array? (Last Post : Rothrock - Replies : 1 - Views : 2 )           »          A New Joke Website (Last Post : tclaremont - Replies : 2 - Views : 5 )           »          co-habitation - Flash 8 Vs CS4 (Last Post : David Stiller - Replies : 1 - Views : 2 )           »          Final Resolution to the FW CS4 Install Problem (Last Post : heathrowe - Replies : 1 - Views : 2 )           »          CS4: CSS export not working for text with image (Last Post : heathrowe - Replies : 14 - Views : 15 )           »          ANN: Contact Form Solution Pack (Last Post : Murray *ACE* - Replies : 5 - Views : 6 )           »          Page Layout (Last Post : Murray *ACE* - Replies : 9 - Views : 10 )           »          Insert "Search" in a Topic (Last Post : jimpr - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 09-28-2008, 03:25 AM
chunkeung
 
Posts: n/a
Diggs:
Default MySQL Error# : 2002 in Dreamweaver CS3

I created a database in PHPMyAdmin for my site and when I try to connect to the
DB from Dreamweaver I receive the error message # 2002

"Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock'(s)"

Does anyone have any idea how to fix that problem? I was able to get it works
before but since I reformat my harddrive I keep getting this error message.

Can anyone help me please? I'm running Win XP Pro SP2



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-28-2008, 03:25 AM
David Powers
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

chunkeung wrote:
> "Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock'(s)"


That's a message that should appear only on a Mac or Linux.

> Can anyone help me please? I'm running Win XP Pro SP2


If you're running XP and using a local testing environment, something is
seriously wrong. Your setup seems to have an OS identity problem.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote
  #3 (permalink)  
Old 09-28-2008, 03:25 AM
David Powers
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

chunkeung wrote:
> "Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock'(s)"


That's a message that should appear only on a Mac or Linux.

> Can anyone help me please? I'm running Win XP Pro SP2


If you're running XP and using a local testing environment, something is
seriously wrong. Your setup seems to have an OS identity problem.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote


  #4 (permalink)  
Old 09-28-2008, 03:25 AM
chunkeung
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

ok now another message came up
HTTP Error Code 404 file not found.

1) there's no testing server running on the server machine
2) the testing server specified for this site does not map to the
http://mysite.com/public_html/_mmSer...s/MMHTTPDB.php url. Verify that
the URL prefix maps to the root of the site.


the _mmServerScripts/MMHTTPDB.php is on the server as well as in my local
machine. What is the problem? It had worked previously. I really don't
understand. Can someone help me please??

Reply With Quote
  #5 (permalink)  
Old 09-28-2008, 03:25 AM
chunkeung
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

ok now another message came up
HTTP Error Code 404 file not found.

1) there's no testing server running on the server machine
2) the testing server specified for this site does not map to the
http://mysite.com/public_html/_mmSer...s/MMHTTPDB.php url. Verify that
the URL prefix maps to the root of the site.


the _mmServerScripts/MMHTTPDB.php is on the server as well as in my local
machine. What is the problem? It had worked previously. I really don't
understand. Can someone help me please??

Reply With Quote
  #6 (permalink)  
Old 09-28-2008, 03:26 AM
David Powers
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

chunkeung wrote:
> 2) the testing server specified for this site does not map to the
> http://mysite.com/public_html/_mmSer...s/MMHTTPDB.php url. Verify that
> the URL prefix maps to the root of the site.


The URL prefix in the testing server definition should be this:

http://mysite.com/

NOT this:

http://mysite.com/public_html/

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote


  #7 (permalink)  
Old 09-28-2008, 03:26 AM
David Powers
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

chunkeung wrote:
> 2) the testing server specified for this site does not map to the
> http://mysite.com/public_html/_mmSer...s/MMHTTPDB.php url. Verify that
> the URL prefix maps to the root of the site.


The URL prefix in the testing server definition should be this:

http://mysite.com/

NOT this:

http://mysite.com/public_html/

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote
  #8 (permalink)  
Old 09-28-2008, 03:26 AM
chunkeung
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

ok this works now, thanks

but this error # 2002 is still bugging me. I noticed this though.

As I am hosting 2 sites at different hosting server. I tried to connect to my
MySQL database in the other site and it works fine. When I login into
PHPMyAdmin I see that the Server is "Localhost via UNIX socket" so I put that
into my setting in dreamweaver for the "MySQL server" but on the hosting that
giving me that #2002 error message their Server is "127.0.0.1 via TCP/IP" and I
tried to put in 127.0.0.1 instead of localhost but it still doesn't work and
gives me this error message. I have asked them to upgrade me to php version 5,
do you think this will help solve the issue? or is it because it is hosting in
a windows server?

Reply With Quote
  #9 (permalink)  
Old 09-28-2008, 03:26 AM
chunkeung
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

ok this works now, thanks

but this error # 2002 is still bugging me. I noticed this though.

As I am hosting 2 sites at different hosting server. I tried to connect to my
MySQL database in the other site and it works fine. When I login into
PHPMyAdmin I see that the Server is "Localhost via UNIX socket" so I put that
into my setting in dreamweaver for the "MySQL server" but on the hosting that
giving me that #2002 error message their Server is "127.0.0.1 via TCP/IP" and I
tried to put in 127.0.0.1 instead of localhost but it still doesn't work and
gives me this error message. I have asked them to upgrade me to php version 5,
do you think this will help solve the issue? or is it because it is hosting in
a windows server?

Reply With Quote


  #10 (permalink)  
Old 09-28-2008, 03:26 AM
David Powers
 
Posts: n/a
Diggs:
Default Re: MySQL Error# : 2002 in Dreamweaver CS3

chunkeung wrote:
> When I login into
> PHPMyAdmin I see that the Server is "Localhost via UNIX socket" so I put that
> into my setting in dreamweaver for the "MySQL server" but on the hosting that
> giving me that #2002 error message their Server is "127.0.0.1 via TCP/IP" and I
> tried to put in 127.0.0.1 instead of localhost but it still doesn't work and
> gives me this error message.


localhost and 127.0.0.1 are the same thing. All you need is "localhost"
or "127.0.0.1" (without the quotes). The "via UNIX socket" and "via
TCP/IP" are simply descriptions of the type of connection. They are NOT
part of the server address.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk