mysql connection error Access denied for user'root'@'localhost'

      One time mysql is installed and executed mysql -uroot -p123456 error: Access denied for user'root'@'localhost'

      Program:

      Execute the command with sudo: sudo mysql -uroot -p123456

      Give the corresponding user permissions after entering mysql

Guess you like

Origin blog.csdn.net/ma2595162349/article/details/108897381