The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
SQL State : 08S01
Error Code : 0
Message : Communications link failure
我在mysql的终端可以连接,在别的电脑用dbweaver也能连接上。
但dataease就是不行。
mysql 的my.cnf 配置如下。
[mysqld]
tls_version=‘’
host-cache-size=0
skip-name-resolve
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
secure-file-priv=/var/lib/mysql-files
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
[client]
socket=/var/run/mysqld/mysqld.sock
!includedir /etc/mysql/conf.d/
[mysql]
allowPublicKeyRetrieval=true