安装了 MySQL - 但无法使用我创建的用户登录。它给出了以下错误。
Access denied for user 'xxxxxx'@'localhost' (using password: YES)
请帮忙。
答案1
简单的解决方案是以 root 用户身份登录 mysql 并授予其他用户名权限。
mysql -u root -p
使用您在安装过程中输入的密码。
grant all privileges on *.* to xxxxxxx@localhost identified by 'your_password_here' with grant option;
完成后,您可以使用命令使用您的用户名登录mysql -p