摘要: 报错信息:“Access denied for user 'user_name'@'100.xxx.xx.xx' (using password: YES)”。报错原因:ECS自建库用户名或密码不对。解决方法:请确认数据库用户名和密码是否正确。如果确认账户名 ...
报错信息:“Access denied for user 'user_name'@'100.xxx.xx.xx' (using password: YES)”。
报错原因:ECS自建库用户名或密码不对。
解决方法:请确认数据库用户名和密码是否正确。如果确认账户名和密码正确,可以通过客户端或命令行工具登录数据库,执行select * from mysql.user where user = 'user_name'命令查看用户信息,如果存在100.%网段的用户,则DAS只能通过100.%网段的数据库用户去连接数据库。user_name @%与user_name @100.%是两个用户,其密码和权限都是独立的,请确认输入的密码是否是user_name @100.%用户的密码。
报错原因:DAS服务器的IP地址不在您输入用户的白名单中。
解决方法:使用客户端或命令行工具登录到数据库,创建DAS可以访问的数据库用户。
create user 'user_name'@'100.%' identified by 'password';
grant all privileges on *.* to 'user_name'@'100.%';
create user 'user_name'@'100.%' identified by 'password';
grant all privileges on *.* to 'user_name'@'100.%';
DAS服务器IP地址所在网段为100.%,请根据实际使用需要添加白名单。
请根据实际使用需要给user_name@100.%用户赋予权限。
报错信息: 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。