Advertisement
metalx1000

MySQL Reset Forgotten Password

Feb 4th, 2024
1,653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.29 KB | None | 0 0
  1. sudo service mysql stop
  2. sudo killall mysqld
  3. sudo mkdir -p /var/run/mysqld
  4. sudo chown mysql:mysql /var/run/mysqld
  5.  
  6. mysqld_safe --skip-grant-tables --skip-networking &
  7. sudo mysql -u root
  8. quit
  9.  
  10. sudo service mysql stop
  11. sudo killall mysqld
  12. sudo service mysql start
  13.  
  14. mysql -u root -p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement