Skip to content

启动时提示Access denied for user 'root'@'localhost' (using password: YES)的问题 #30

Description

@Jerry379

使用npm run start启动项目时提示Access denied for user 'root'@'localhost' (using password: YES)
-本地mysql密码设置的是123456,使用命令行mysql -uroot -p可以登录,但是在代码中将默认的root密码改为123456就报错。

  • 将本地mysql的root密码改为root在运行可以正常运行。
    是不是使用纯数字的密码有问题?我是用的是win10系统,mysql是5.7.22

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions