How to Fix ERROR 2002 (HY000): Can’t Connect to Local MySQL Server

On Wednesday, I experienced trouble with my VPS hosted at Linode — the problem first began with my websites being unresponsive, though Nginx was still accepting requests. I initiated a reboot and soon after, my websites became responsive. However, I received a db connection error and discovered that I was unable to start the mySQL Server:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

I quickly began to troubleshoot the source of the error and after reading a dozen or so forums, I found a simple “fix” that could’ve been prevented from the beginning. The problem? I had used up all available disk space on my VPS Node, causing mySQL and other vital programs to be corrupt. I quickly deleted some files (I downloaded the 3.6GB Windows 8 Dev. Preview to my VPS the day before) and after typing “mysql service start” in the terminal, the mySQL Server was once again responding and serving requests to the few websites I own.

While the aforementioned error can be caused by several other problems with your server’s configuration and mySQL installation, I’d execute “df -h” before going through any additional trouble. If the disk space does not seem to be the root of the error above, carry on with your web search to find the culprit behind the flaw.

How to Create a Bootable Windows 8 DVD

I experimented and tested the Windows 8 Developer Preview last week and am quite impressed with Microsoft’s upcoming operating system. Windows 8 features a slightly modified UI, with noticeable changes in the Start Menu, Task Manager, and Control Panel. Here’s how to create a bootable Windows 8 DVD.

Requirements

  • 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
  • 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
  • DirectX 9 graphics device with WDDM 1.0 or higher driver
  • Taking advantage of touch input requires a screen that supports multi-touch
  • To run Metro style Apps, you need a screen resolution of 1024 X 768 or greater
  • Windows 8 Dev. Preview 32 or 64-bit [Download]
  • Windows 7 USB/DVD Download Tool [Download]

Tutorial

  1. Download and install the Windows 7 USB/DVD Download Tool and then download the Windows 8 Developer Preview.
  2. Insert a blank CD/DVD having a storage capacity of 8GB or more into your computer’s CD-ROM.
  3. Launch the Windows 7 USB/DVD Download Tool you configured in step one and follow the program’s steps.
  4. Step 1 of 4: Choose the ISO Source File by selecting browse. (It should be stored where you opted to save the file or in the downloads folder.)
  5. Step 2 of 4: Choose Media Type — USB or DVD. In this tutorial, we are creating a bootable DVD, so please select DVD.
  6. Final Steps: Insert your DVD (we have already done that) and the bootable Windows 8 Dev. Preview DVD will be created. You can then load Windows 8 on a computer around the house and give the modern Windows a try.

Tips and Notes

  • It may take several hours to download Windows 8, as the size of the file ranges from 2.8GB (32-bit) to 3.6GB (64-bit).
  • I created the bootable Windows 8 DVD using Windows 7, but I imagine Windows Vista will also work.