Women in Technology

Hear us Roar



Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   update
Date:   2002-05-05 08:20:19
From:   xor81
Response to: Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (61)

After a days playing with the terminal I managed to get it to:


Warning: Host 'localhost.dircon.co.uk' is not allowed to connect to this MySQL server in /Library/WebServer/Documents/test_sql.php on line 6


can't be far off now :-(


how about tomcat on osx
Ian


Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Resolution?
    2002-05-22 16:32:58  sanjuanio1 [View]

    I am having the same problem. Did you find out how to resolve?

    I have the following error messages:

    Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) in /Library/WebServer/Documents/test.php on line 6

    Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
    in /Library/WebServer/Documents/test.php on line 6

    Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) in /Library/WebServer/Documents/test.php on line 10

    Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
    in /Library/WebServer/Documents/test.php on line 10

    Warning: MySQL: A link to the server could not be established in /Library/WebServer/Documents/test.php on line 10

    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)

    My Sequel database session keeps ending when I check it using the chown line. I also downloaded the doubleclick startup.

    Any ideas?
    • Closer
      2002-05-22 18:09:10  sanjuanio1 [View]

      I havent found the answer quite yet, but getting closer. see these links off of the mysql site if you have this problem.

      http://www.mysql.com/doc/C/a/Can_not_connect_to_server.html

      http://www.mysql.com/doc/S/t/Starting_server.html

      and let me know if it helps.

      danke
      • Closer
        2003-03-10 11:33:50  anonymous2 [View]

        Take a look at my.cnf
        I assume your machine is running as socket connection allowed only.
        Find the line where it says "skip-networking" and comment it out, then restart the mysqld and it should work...