daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jun 2nd, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Following this guide to reset/remove root mysql password https://help.ubuntu.com/community/MysqlPasswordReset
  2.  
  3. a@ubuntu:~$ sudo /etc/init.d/mysql stop
  4. [sudo] password for a:
  5. [ ok ] Stopping mysql (via systemctl): mysql.service.
  6. a@ubuntu:~$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
  7. [1] 20751
  8. a@ubuntu:~$ mysql -u root
  9. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
  10. [1]+  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
  11. a@ubuntu:~$
RAW Paste Data
Top