Women in Technology

Hear us Roar



Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (61)
Date:   2002-05-04 17:21:56
From:   xor81
excellent articles....did 1-5 without any problems but then i got this on MySQL.....seems it is stopping straight away after starting....any ideas


[localhost:/usr/local/mysql] ian%
[localhost:/usr/local/mysql] ian% Starting mysqld daemon with databases from /usr/local/mysql/data
020505 01:15:50 mysqld ended

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • update
    2002-05-05 08:20:19  xor81 [View]

    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

    • 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...