I have set up the test code you gave me and it says that It connected succesfully.
But I am still having the problem with the 'Databases' Tab in dreamweaver, as it will not let me connect to the database using the credentials I used to test the connection with your code.