RDS Instances
- Error message: Access denied for user 'user_name'@'100.xxx.xx.xx' (using password: YES)
- Error cause: The username or password of the RDS instance is incorrect.
Solution: Check whether the username and password are correct. If you are not sure, log in to the RDS console to reset the password.Changing the password may affect services.
If the username and password are correct, log in to the database using a client or CLI tool and run select * from mysql.user where user = 'user_name' to view the account. Make sure that the DAS CIDR block is within the CIDR block of the user. user_name @ % and user_name @100.% are two different users whose passwords and permissions are independent. Enter the password of user user_name @100.%.
- Error cause: The IP address of the DAS server is not in the whitelist of the login user.
Solution: Log in to the database using the client or CLI tool, and create a user account that can be used to access the database through DAS.
create user 'user_name'@'100.%' identified by 'password'; grant select on *.* to 'user_name'@'100.%';
- The IP address of the DAS server is in the 100.xxx.xx.xx network segment. Add the IP address to the whitelist of the login user.
- Grant permissions to user user_name@100.% based on service requirements.
- Error cause: The SSL function is not enabled on the server.
Solution: Run the following statement to check whether the user is an SSL user. If yes, enable SSL on the RDS DB instance details page. The user is an SSL user if the ssl_type field has a value.
select user, host, ssl_type from mysql.user where user = 'user_name';
- Error cause: The username or password of the RDS instance is incorrect.
- Error message: Trying to connect with ssl, but ssl not enabled in the server
Error cause: The SSL function is not enabled on the server.
Solution: Run the following SQL statement to check whether the user is an SSL user. If yes, enable SSL on the RDS instance details page. The user is an SSL user if the ssl_type field has a value.select user, host, ssl_type from mysql.user where user = 'user_name';
- Error message: Client does not support authentication protocol requested by server. plugin type was = 'sha256_password'
Error cause: DAS does not allow you to connect to the database whose password is encrypted with SHA-256.
Solution: Execute the following SQL statements to change the password encryption method to mysql_native_password.alter user 'user_name'@'%' identified with mysql_native_password by 'password';
- Error message: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server
Error cause: The network between the DAS server and the instance is disconnected.
Solution: Contact technical support.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot