Guest User

Untitled

a guest
Dec 1st, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
  2.  
  3. 2016-10-26T10:23:01.845088Z 0 [Warning] User entry 'root'@'localhost' has an empty plugin value. The user will be ignored and no one can login with this user anymore.
  4. 2016-10-26T10:23:01.845112Z 0 [Warning] User entry 'mysql.sys'@'localhost' has an empty plugin value. The user will be ignored and no one can login with this user anymore.
  5. 2016-10-26T10:23:01.845127Z 0 [Warning] User entry 'debian-sys-maint'@'localhost' has an empty plugin value. The user will be ignored and no one can login with this user anymore.
  6. 2016-10-26T10:23:01.845142Z 0 [Warning] User entry 'phpmyadmin'@'localhost' has an empty plugin value. The user will be ignored and no one can login with this user anymore.
  7. 2016-10-26T10:23:01.845155Z 0 [Warning] Some of the user accounts with SUPER privileges were disabled because of empty mysql.user.plugin value. If you are upgrading from MySQL 5.6 to MySQL 5.7 it means we were not able to substitute for empty plugin column. Probably because of pre 4.1 password hash. If your account is disabled you will need to:
  8. 2016-10-26T10:23:01.845183Z 0 [Warning] 1. Stop the server and restart it with --skip-grant-tables.
  9. 2016-10-26T10:23:01.845192Z 0 [Warning] 2. Run mysql_upgrade.
  10. 2016-10-26T10:23:01.845200Z 0 [Warning] 3. Restart the server with the parameters you normally use.
  11. 2016-10-26T10:23:01.845207Z 0 [Warning] For complete instructions on how to upgrade MySQL to a new version please see the 'Upgrading MySQL' section from the MySQL manual
  12. 2016-10-26T10:23:01.853461Z 0 [Note] Event Scheduler: Loaded 0 events
  13. 2016-10-26T10:23:01.853962Z 0 [Note] /usr/sbin/mysqld: ready for connections.
  14. Version: '5.7.16-0ubuntu0.16.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
  15. 2016-10-26T10:23:02.138961Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
  16.  
  17. > service mysql stop
  18.  
  19. > sudo mysqld_safe --skip-grant-tables
  20.  
  21. > sudo mysql_upgrade
  22.  
  23. 2016-10-26T10:40:54.073975Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
  24. 2016-10-26T10:40:54.074060Z 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
  25.  
  26. > service mysql start
  27.  
  28. > mysqldump -u root -p --databases db1 db2 > alldb.sql
  29.  
  30. > sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.7 mysql-client-core-5.7
  31. > sudo rm -rf /etc/mysql /var/lib/mysql
  32. > sudo apt-get autoremove
  33. > sudo apt-get autoclean
  34.  
  35. > sudo apt-get install mysql-server
  36.  
  37. > mysql -u root -p < alldb.sql
  38.  
  39. > sudo service stop mysql
  40. > sudo mkdir /var/run/mysqld # needed to launch mysql in ubuntu from command line...may not apply to other distros
  41. > sudo chown mysql:mysql /var/run/mysqld # same reason as above
  42. > sudo mysqld_safe --skip-grant-tables
  43.  
  44. > mysql -uroot
  45. > select User, host, authentication_string,plugin from mysql.user; #see what users don't have a password (authentication_string and plugin are empty)
  46. > update mysql.user set authentication_string=PASSWORD('woot') where user='user';
  47. > update mysql.user set plugin='mysql_native_password' where user='user';
  48. > FLUSH PRIVILEGES;
  49. > exit;
  50.  
  51. > ^ #to tell the mysqld_safe process to quit itself
  52. > sudo service mysqld start
Add Comment
Please, Sign In to add comment