I am having the same problem on GoDaddy, trying to install WordPress for a client. I wrote a simple connection program using the same server, databasename and user/password defined names and put it in the same folder as install.php – it connects with no problems when I copy the define statements from wp-config.php into it; however, the same error occurs if I try to include wp-config.php in my program.