2024 May ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

  Kiến thức lập trình

Installed MySQL version 8.4.0 LTS for macOS 14 (ARM, 64-bit), DMG Archive from https://dev.mysql.com/downloads/mysql/.

When running mysql -u root -p in the terminal, I am presented with this error message:
ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

Tried running sudo /usr/local/mysql/support-files/mysql.server start but it is still not working.

LEAVE A COMMENT