Guest User

Untitled

a guest
Jul 31st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. sudo mysql -u root -p
  2. FLUSH PRIVILEGES;
  3. ALTER USER 'root'@'localhost' IDENTIFIED BY ''
  4.  
  5. Query OK, 0 rows affected (0.00 sec)
  6.  
  7. !includedir /etc/mysql/conf.d/
  8. !includedir /etc/mysql/mysql.conf.d/
  9.  
  10. [mysqld]
  11. socket=/var/run/mysqld/mysqld.sock
  12.  
  13. [client]
  14. user=root
  15. password=""
  16.  
  17. [mysql]
  18. user=root
  19. password=""
  20.  
  21. [mysqldump]
  22. user=root
  23. password=""
  24.  
  25. [mysqldiff]
  26. user=root
  27. password=""
  28.  
  29. sudo mysqld --skip-grant-tables &
  30.  
  31. mysql -u root -p
  32. Enter password:
  33. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Add Comment
Please, Sign In to add comment