Solution: Ensure that the username and password are correct. If the username and password are correct, log in to the database using a client or the 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.%.
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 all privileges on *.* to 'user_name'@'100.%';
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 database username you entered does not support remote login. For example, if you enter username root, but only username root@localhost is configured in the mysql.user table, the specified user can only log in locally.
create user 'user_name'@'100.%' identified by 'password'; grant all privileges on *.* to 'user_name'@'100.%';
Solution: Modify the security group rules by referring to Modifying ECS Security Group Rules.
Solution: Modify the firewall policy by referring to Modifying Firewall Rules.
skip-name-resolve
The default location of the configuration file is /etc/my.cnf. If you store the file in the specified path, modify the directory accordingly.