The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
database connect problems
Ran into an unusual issue here connecting to a database. I am getting the following error after setting up the connection info in the install script:

The following error occurred:

Sorry, we were unable to connect to the database using the information you supplied. The error message the database returned is: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Please double-check your database settings and click the Continue button again.

I am able to connect using a standard connection script like:

$link = mysql_connect('', 'invincinetcom', '#########!');
if (!$link) {
    die('Could not connect: ' . mysql_error());
echo 'Connected successfully';

Any ideas on this?

Are you using a a service like MAMP or WAMP? Sounds like a typical problem with the changes made to the location of the MySQL socket.

Do a web search for "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock" together with your system (MAMP, WAMP) and you will find the solution...I don't think it has anything to do with FormTools.

Forum Jump:

Users browsing this thread: 1 Guest(s)