We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18592
    • 19 Posts
    Hi Guys,

    Did nothing to anything in the DB or anywhere in the manager/ on site - went to have a look at my site and this popped up...

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/www/onowhewc/manager/includes/extenders/dbapi.mysql.class.inc.php	 
      Line: 	87	 
      Line 87 source: 	if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd, true))) { 	 
     
    Parser timing
      MySQL: 	0.0000 s	(0 Requests)
      PHP: 	0.0364 s	 
      Total: 	0.0364 s	 
    Error while inserting event log into database.


    Any ideas why or even how to bring my site back online?

    Cheers

    Mat-d
      • 25663 MODX Staff
      • 12,272 Posts
      I’d check with your host to make sure MySQL is up.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me