What hostname do I use to connect to my MySQL database?
To connect to your MySQL database using a PHP script, you will need the following information:
- Database Name: The database ID would have been assigned at the time you created the database via phpMyAdmin in the Netfirms Control Panel. It is typically d########.
- Username: The username to your database would have been configured at the time you created the database via phpMyAdmin in the Netfirms Control Panel. It is typically u#######.
- Password: The password to your database would have been configured at the time you created the database via phpMyAdmin in the Netfirms Control Panel.
- Hostname: The host name will be MYSQLHOST.
Please follow the steps below to obtain your database connection details:
- Login to your Control Panel.
- Click Hosting.
- Choose Databases.
- Click MySQL.
- Click on the “+” button beside the database.
- You will see all the connection details under the Connection tab.
- netfirms.com source
No comments:
Post a Comment