Once MySQL was installed, an error was reported when executing MySQL – uroot – p123456: access denied for user ‘root’ @’localhost ‘
Scheme:
Use sudo to execute the command: sudo?MySQL – uroot – p123456
After entering mysql, give the corresponding user permission