Jump to content

Finding Config Info on Free Webhost


doubledee

Recommended Posts

I am using a free web hosting site for my Test Site. (www.byethost.com)

 

They do offer phpMyAdmin, but after poking around, I cannot find the following...

 

- Database Host Name

 

- Database User

 

- Database Password

 

Where would I find this critical information, so I get my database and site running?!

 

 

 

Debbie

 

 

Link to comment
https://forums.phpfreaks.com/topic/255495-finding-config-info-on-free-webhost/
Share on other sites

You need to ask your hosting company. We don't have that information.

 

On my Dev Laptop

SELECT CURRENT_USER( ) 

root@localhost

------------------------
SELECT USER()

root@localhost

 

 

 

On my Free Hosting Account

SELECT CURRENT_USER( ) 

b2_12345@%

------------------------
SELECT USER()

[email protected]

 

 

What is the percentage sign?

 

What is 192.168.0.2?

 

 

Debbie

 

192.168.0.2 appears to be the IP address of the MySQL server on their local network. b2_12345 is the user name. The @% represents the type of access the user has, whether it's only local login, over the network, etc.

The MySQL default credentials are located in the MySQL section of the php.ini file. however, they are not always set.

 

What good would knowing that do me on a Shared Host?!

 

 

Debbie

Well, yeah you should just contact your hosting provider for this, but what I was getting at is you can use ini_get to view the default values, whether that will help you or not I'm not sure here, odds are that the credentials are host=localhost user=root password=""

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.