mysql - 接收错误: 'Access denied for user ' root' @'localhost' (using password: YES)' when trying to access localhost

标签 mysql ruby-on-rails windows github localhost

我正在尝试访问刚刚从 Github 中提取的存储库的本地主机,并不断收到以下错误。我使用的是 Windows 8.1。我是访问此存储库的两名开发人员之一。

    Mysql2::Error

Access denied for user 'root'@'localhost' (using password: YES)

最佳答案

尝试GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost'WITH GRANT OPTION;这将授予您的root用户对该数据库的权限。或者,您可以将第一个星号设置为数据库的名称,这可能更安全。

关于mysql - 接收错误: 'Access denied for user ' root' @'localhost' (using password: YES)' when trying to access localhost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20204872/

相关文章:

MYSQL 8.0.17 CHECK 不工作,即使它已经实现

c# - 可移植 Asp.Net 软件

php - mysql php从多个表中检索数据

ruby-on-rails - 我如何知道 Google Analytics 配置文件是否是使用 Legato 的默认配置文件

sql - Mysql 复制转储无需停机?空的sql文件

sql - 任何人都可以发布等效的 rails 3 sql 语句吗?

ruby-on-rails - 未定义的方法 `stringify_keys' 为 "create":String in ruby on rails again

c++ - MinGW-w64 gcc 上对 boost::random::random_device 构造函数和析构函数的 undefined reference

windows - 如何分发 Windows 应用程序?

c++ - 读取数据 RS232 无需轮询