Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
  1. simpatico

    database connection

    Hello everybody I'm migrating this website from a dedciated server with Plesk and localhost mysql database to a shared hosting with a different host (not localhost) mysql database and I get this error: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/13/12345/html/xxx/includes/functions/database.php on line 17 Unable to connect to database server! In the databse.php line 17 I have: if (USE_PCONNECT == 'true') { $$link = mysql_connect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; Can anybody help??