msibley
asked on
Cannot connect to mysql db with Dreamwever
I'm trying to connect to a mysql db on a linux/plesk server using Dreamweaver MX 2004 and PHP. When I try to set up the connection, I get "HTTP Error Code 404 File Not Found." I've tried this with different domains on the server, with different db user accounts, and also with Dreamweaver MX with same results. I am running DW on a Windows XP box. I've tried the process both on a godaddy server and on a rackspace server.
ASKER
Yes, I can from the command line. I can also run a PHP web script with a database query.
Did you upload the Connections directory after you created the initial connection in DW?
Is there a _mmServerScripts directory present on the server? Does it have MMHTTPDB.php and MySQL.php in it?
Is there a _mmServerScripts directory present on the server? Does it have MMHTTPDB.php and MySQL.php in it?
ASKER
Not sure what you mean by Connections directory. There is a _mmServerScripts directory with MMHTTPDB.php and mysql.php in it.
There should also be a Connections directory on your local computer that holds a PHP file with the name of the connection you created from DW. That directory needs to be uploaded to the server hosting the web site in order for the connection to work.
ASKER
I see the Connections directory, but it is empty.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK, I finally got it working.
Thanks
Thanks
I think you answered this, but can you connect to the MySQL server at all?