The 404 error on creating the database connection means that there is an issue with the way the site definition is created.
specially the issue is the URL Prefix on the Testing server tab.
See the "Defining a Dynamic Site in Dreamweaver" and "Creating your database connection in Dreamweaver" tutorials on the following page for guidance in getting you site definition set up and the database connection set up.
resources.php