I think this may be something really basic. Any help is greatly appreciated..
I'm trying to get a search script to work. It is working on our old host. We transfered hosts. Exported and imported the database from the old host to the new host. The database is ready and populated.
I found the section of the script that held the database configuration, and added the new database info. Apparently its not connecting. I have double triple checked the new database info and it's correct. I'm wondering if I am missing some parameter? The old database was local and the new is hosted on a separate server.
These are the error messages. (I had to use images because I'm new here and could not post anything with web addresses)
No, it shouldn't make much difference, unless of course the user account you're trying to use only has permission to access the database from localhost.
Try using MySQL Administrator to connect to your server using the preferred credentials, if you're successful, it's PHP that is at fault.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.
Bookmarks