开发者社区 问答 正文

mysql 输入root密码错误,输入为空却成功了?

Enter current password for root (enter for none): 【这一句为什么输入root的密码会出现下面的错误?直接回车却成功了?】
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
直接回车就提示如下:
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

展开
收起
落地花开啦 2016-02-26 18:05:04 5789 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    'root'@'localhost' 密码是空
    'root'@'%'有密码

    2019-07-17 18:48:35 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论