Guest User

Untitled

a guest
Dec 12th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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>
Add Comment
Please, Sign In to add comment