Webfanatics wrote:
Hi
I am setting up a database connection. Made sure it is in the correct location, when i click to select my database is connects to the server ans says testing database connection and then gives me the 404 Error. It also says there are 2 possible reasons, the server isn't running or the testing server specified for this site does not map to"URL" the files in the URL are unknown to me, it specifies a php file which i have not created at all. I will try using the programs recommended.
Well whatever it is you are clicking to select the database is telling you that the file it's trying to access to is NOT in the correct location otherwise you would not be getting a 404 error, that only happens if the file can't be found.
Seriously I would find the appropriate package for your machine , XMAMP or MAMP, doing a Google search for where to download it. Install it on your local computer. The package will come with phpMyAdmin wher you a can set up your database and database tables.
Then look for some guidance of how to connect to your database - below is a typical example.
How to Connect to MySQL Databases via DreamWeaver Tutorial
The MySQL server IS normally 'localhost' as shown in the example and the username and password IF you don't set any specifically are usually 'root' and 'root' (Please note this information changes when you are finally ready to upload all the files to your remote server - you need to use the database name, username and password which applies to the database you create on the remote server)
Just thought I'd flag up that whilst this is going to probably be the best way for you to try to connect for now it is a deprecated method. Ideally you should be using something more uptodate, like mySQLi or PDO but that requires hand coding.