Skip to main content

How to install MYSQL server correctly.



  • sudo apt update
  • sudo apt install mysql-server
  • sudo mysql_secure_installation
log into mysql server

  • sudo mysql
  • SELECT user,authentication_string,plugin,host FROM mysql.user;
then you can find root has no password. Add password for user you want by alter your user. eg : I replace my password to root by password ad password.

  • ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
  • FLUSH PRIVILEGES;
then check password.

  • SELECT user,authentication_string,plugin,host FROM mysql.user;
  • exit

Comments

Popular posts from this blog

HD Car wallpapers pack

                                                                 Download

IS IT MISTAKE???

Warning!! it is a terrible accident.

Hercules Reborn (2014)

                                                       Download 1080p                                                        Download 720p When a young man's bride is kidnapped by an evil king, he turns to Hercules for help. The fallen hero has been living in exile, banished for killing his family, but the young man's courage inspires Hercules. Together, they fight to rescue the bride and reclaim the honor of Hercules.