简体   繁体   English

AWS 极光 MySql 服务器

[英]AWS Aurora MySql Server

Created an AWS RDS Aurora server.创建了一个 AWS RDS Aurora 服务器。 Copied database from another active AWS RDS Instance.从另一个活动的 AWS RDS 实例复制的数据库。 Created Aurora server can be accessed by a MySql client app.创建的 Aurora 服务器可以通过 MySql 客户端应用程序访问。 And can also delete table records, which will be the normal tasks eventually.并且还可以删除表记录,这最终将是正常的任务。 The problem is I cannot access a website pointed to the Aurora server.问题是我无法访问指向 Aurora 服务器的网站。 Error message: Unable to connect to database server.错误消息:无法连接到数据库服务器。 The MySQL error was: Bad handshake. MySQL 错误是:握手错误。 Settings.php already contains the correct username and password information. settings.php已经包含了正确的用户名和密码信息。

Advance thank you for any assistance.预先感谢您的任何帮助。

This is likely because of the version mismatch of MySQL server that leads to the failed authentication.这可能是因为MySQL服务器版本不匹配导致认证失败。 You are either:你是:

  • Using an old version of MySQL on your client to connect to the server with a newer MySQL version.在您的客户端上使用旧版本的 MySQL 连接到具有较新版本的 MySQL 的服务器。
  • Using a new version of MySQL on your client to connect to the server with an old MySQL version.在您的客户端上使用新版本的 MySQL 连接到具有旧版本 MySQL 的服务器。

The newer MySQL versions might use a different protocol for the connection, thus causes the bad handshake issue when there's a version mismatch.较新的 MySQL 版本可能使用不同的连接协议,因此在版本不匹配时会导致握手错误。 For example, using MySQL 8.0 on your local environment might not be able to connect to the server using MySQL 5.7.例如,在本地环境中使用 MySQL 8.0 可能无法连接到使用 MySQL 5.7 的服务器。

To solve this problem, you should:要解决这个问题,您应该:

  • Check the versions of both your local and remote library/server, then install the same version on both environments.检查本地和远程库/服务器的版本,然后在两个环境中安装相同的版本。
  • Use a library that supports multiple versions of MySQL to avoid the risk of updating the server and potentially damaging data.使用支持多个版本 MySQL 的库,以避免更新服务器和可能损坏数据的风险。
  1. Ensure you are connecting with a public IP to the RDS service确保您使用公共 IP 连接到 RDS 服务
  2. The RDS service port is exposed via the AWS service. RDS 服务端口通过 AWS 服务公开。 Any firewall restrictions exist.存在任何防火墙限制。
  3. Use te.net from your web server and ensure its able to reach your RDS server and connect to the particular port.从您的 web 服务器使用 te.net 并确保它能够访问您的 RDS 服务器并连接到特定端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Aurora:MySQL 服务器正在使用 --read-only 选项运行,因此无法执行此语句 - AWS Aurora: The MySQL server is running with the --read-only option so it cannot execute this statement AWS Aurora MYSQL 如何处理不断增长的表 - AWS Aurora MYSQL how to deal with growing table 使用 CLI 克隆 AWS Aurora MySQL 数据库 - AWS Aurora MySQL Database cloning using CLI .net6.0 - 向前写入 - AWS Aurora:MySQL 服务器正在使用 --read-only 选项运行,因此它无法执行此语句 - .net6.0 - write forward - AWS Aurora: The MySQL server is running with the --read-only option so it cannot execute this statement CSV 使用 DataGrip 删除连接导入 AWS Aurora MySQL(5.6) - CSV import to AWS Aurora MySQL(5.6) with DataGrip dropping connection 无法为 AWS Aurora 启用 performance_schema MySQL - Unable to enable performance_schema for AWS Aurora MySQL 节点 Lambda Function 无法查询 AWS Aurora MySQL 数据库 - Node Lambda Function can't query an AWS Aurora MySQL database 无法从外部源连接到 AWS RDS Aurora (MySQL) 集群 - Unable to connect to AWS RDS Aurora (MySQL) Cluster from external source Terraform AWS Aurora 无服务器 MySQL - 错误:无效的数据库引擎 - Terraform AWS Aurora Serverless MySQL - Error: Invalid DB Engine 为什么 MySQL 有时无法连接到 AWS RDS Aurora - Why is MySQL sometimes failing to connect to AWS RDS Aurora
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM