Advertisement
teknisiazza

base1

Dec 4th, 2021 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. https://stackoverflow.com/questions/21944936/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-y
  2.  
  3. /etc/init.d/mysql stop
  4.  
  5. mysqld_safe --skip-grant-tables &
  6.  
  7. mysql -u root
  8.  
  9.  
  10. sudo mysqld_safe --skip-grant-tables --skip-networking
  11. mysql -u root -p
  12.  
  13. CREATE DATABASE cbts6;
  14.  
  15.  
  16. CREATE USER 'root'@'%' IDENTIFIED BY 'password';
  17. GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
  18. FLUSH PRIVILEGES;
  19.  
  20. masalah max_allowed_packet
  21.  
  22. login root mysql -u root -p
  23. set global net_buffer_length=1000000;
  24. set global max_allowed_packet=1000000000;
  25.  
  26. https://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement