Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install mysql
- service mysql start
- ps aug | grep mysql
- mysql 24618 6.5 1.6 1230276 133536 ? Ssl 19:03 0:00 /usr/sbin/mysqld
- service mysql stop
- sudo mysqld_safe --skip-grant-tables
- mysql>
- mysql> UPDATE mysql.user SET authentication_string = ''
- -> WHERE User = 'root' AND Host = 'localhost';
- Query OK, 1 row affected (0.00 sec)
- Rows matched: 1 Changed: 1 Warnings: 0
- mysql> FLUSH PRIVILEGES;
- Query OK, 0 rows affected (0.00 sec)
- sudo kill -9 [pid_of_mysqld_safe]
- service mysql start
- mysql -u root
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement