I use libasyqnl and this is my config.yml. I have a mysql user called "tom@%" with all permissions to it PHP: database: type: mysql sqlite: file: plugins mysql: host: my vps ip username: tom password: "mypassowrd" schema: mydatabaseworker-limit: 2 I installed mysql on my ubuntu vps. I think my config is the problem because when i try it locally it works fine and I dont get error. The server and MySQL service s running. I get error Code: SQL CONNECT error: No connection could be made because the target machine actively refused it."
This error is a network-related error occurred while establishing a connection to the Server. It means that the error is occurring because there is no server listening at the hostname and port you assigned. It happens that something is preventing a connection to the port or hostname. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that specific port. This may be because it is not running at all or because it is listening on a different port. So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.