daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Dec 12th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
  2.    
  3. ps -feax | grep mysqld
  4.    
  5. 0  8308     1   0   0:00.08 ??         0:00.11 /bin/sh /usr/local/mysql/bin/mysqld_safe
  6.    
  7. sudo /usr/local/mysql/bin/mysqld_safe &
  8.    
  9. mysqladmin -u root -p -h127.0.0.1 --protocol=tcp shutdown
  10.    
  11. # Run the following commands
  12. mysqld stop
  13. mysql.server start
  14.    
  15. mysqld stop
  16. mysql.server start
  17. mysql -u root
  18.    
  19. mysql -u <username> -p<password> -h <yourhostname>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top