mysql and private_html

Seth

Verified User
Joined
Oct 26, 2003
Messages
261
Location
USA
Hello, I am unable to connect to a mysql DB from private_html Is there a trick to this? :-p
 
Uhm. Did you make a script that calls up the db you wanna use?

Normally you should have a configfile, saying something like:

// Database Config Variables
$_DBHOST = 'localhost';
$_DBUSER = 'user';
$_DBPASS = 'pass';
$_DBNAME = 'dbname';
 
:-) Yes

What I had to do is upload the files into public_html as well as private_html
 
Do you run SSL? Private_html, is only for secure pages.. If you want your page to be https://

While public_html is the webroot directory, which everyone see :)

So you dont need to upload in both, if you dont use SSL.
 
for me to get my files to connect to mysql through my private_html (https) directory I had to upload my files in both private_html and public_html :)
 
Back
Top