我在AWS
中创建了mysql instance
,并使用AWS提供的end point
与MySQL开发人员进行连接。
当我在MySQL开发人员中测试我的连接时,它给出了以下ERROR
Status : Failure -Test failed: 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.
是AWS MySQL实例还是MySQL连接驱动程序的问题?
请帮助我,我被困在这里两天。
通过将安全组源更改为我的问题已解决的任何地方当我创建表时,以下错误即将到来。
Error starting at line : 1 in command -
CREATE TABLE employee
( id number(5),
name char(20),
dept char(10),
age number(2),
salary number(10),
location char(10)
)
Error report -
SQL Error: No database selected
只需为您的表格附加数据库名称,例如create tablemydb_name.sampletable(name varchar(50));
it will resolve n o database select error
,对于AWS mysql
,实例将安全组源更改为入口规则中的任何位置