I am trying to make a person and user management system and I have been successful in developing it locally but whenever I upload it to my web server I get this message:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I host with 1&1 and I have contacted them on the problem. The solution they gave me (take the parentheses off of my 'include' array) did not work. I am confused with this since my Joomla and Wordpress installations communicate fine with the MySQL database (the web host's one, which is the one I am having problems with).
I know it's either a problem with the 'require_once' line:
Code: Select all
<?php require_once('/Connections/Local.php'); ?>Code: Select all
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_Local = "db2264.perfora.net";
$database_Local = "dbo317062752";
$username_Local = "dbo317062752";
$password_Local = "*********";
$Local = mysql_pconnect($hostname_Local, $username_Local, $password_Local) or trigger_error(mysql_error(),E_USER_ERROR);
?>Thanks!
-Tristan