Site5 - Built For Designers & Developers MENU

How do I find the URL of my database?

[2 Grey Star Level]

I have access to the db via site5; but since moving hosting to site5, the website access to the db does not work.

Current php codes is $mysqlConnection = mysql_connect(‘internal-db.s353.gridserver.com’, ….

But that is for the old host. I need the new, site5, path.

Answer #1

Hi there,

Based on the connection string you have provided, it looks like your old host housed MySQL on a different server than the web content. On our systems, both are on the same server, making the information you would need the following:

host – localhost
db name – the name of the database
username – the username you supply when you created the database
password – the password you supply when you created the database

Please note that the database name and username are prefixed with your hosting username, and that this is required. If your hosting username is usera, for example, and you create the database db1, the full database name you would need to use is usera_db1

Answers Answered By: jdavey [359 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.