Jump to content

moving my auth script to a freehostia site


gsquare567

Recommended Posts

heres the error message:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in

 

i tried connecting using:

DEFINE ('HOST', 'localhost');

DEFINE ('USER', 'root');

DEFINE ('PASSWORD', '');

DEFINE ('MYDB', 'AuthInfos');

 

// mysql connecting

$dbc = mysql_connect(HOST, USER, PASSWORD) or DIE('Could not connect to the database: ' . mysql_error());

the site says:

The correct MySQL database settings are:

 

MySQL Host: your server name

MySQL Port: 3306

MySQL Database: your database name

MySQL Username: your database name

MySQL Password: your database password

 

but i thought my server name is localhost... so what is it?

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.