Advertisement
Guest User

Untitled

a guest
May 25th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. sudo /etc/init.d/mysql stop
  2.  
  3. sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
  4.  
  5. sudo mysql -u root
  6.  
  7. >FLUSH PRIVILEGES;
  8.  
  9. >SET PASSWORD FOR root@'localhost' = PASSWORD('');
  10.  
  11. >UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
  12.  
  13. >FLUSH PRIVILEGES;
  14.  
  15. sudo /etc/init.d/mysql stop
  16.  
  17. sudo /etc/init.d/mysql start
  18.  
  19. sudo mkdir /var/log/mysql
  20.  
  21. sudo chmod -R 777 /var/log/mysql
  22.  
  23. sudo chown -R mysql:mysql /var/lib/mysql
  24.  
  25. sudo chmod -R 777 /var/lib/mysql
  26.  
  27. sudo /etc/init.d/mysql stop
  28.  
  29. sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
  30.  
  31. sudo mysql -u root < /home/dz/dz.sql
  32.  
  33. sudo /etc/init.d/mysql stop
  34.  
  35. sudo /etc/init.d/mysql start
  36.  
  37. >FLUSH PRIVILEGES;
  38.  
  39. >SET PASSWORD FOR root@'localhost' = PASSWORD('');
  40.  
  41. >UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
  42.  
  43. >FLUSH PRIVILEGES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement