我的EC2实例有一个安全组(让我们称它为AccessFromEverywhere,它本质上允许来自所有it的入站HTTPS和SSH流量。然后,我为AWS RDS创建了另一个具有可从AccessFromEverywhere访问的端口3306的安全组。让我们将此安全组命名为AWS-RDS。
然后,我设置了一个RDS MySQL实例,并允许从AWS-RDS访问它。当我尝试在这个EC2实例上安装一个新的Wordpress副本时,我得到了以下错误:
Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the [db name] database.
Are you sure it exists?
Does the user root have permission to use the syndb database?
On some systems the name of your database is prefixed with your username, so it would be like username_[db name]. Could that be the problem?
If you don’t know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.这里我漏掉了什么?
发布于 2019-11-10 01:24:16
解决了!我需要在RDS配置中添加一个数据库名称。此初始设置不会自动填充该字段。初始配置创建的是数据库实例,而不是实际的数据库。
https://stackoverflow.com/questions/58781220
复制相似问题