Score:0

Can't connect to mysql server on 'public ip address' (10060)

cv flag

I was following this guide to setup a mysql server on my ubuntu machine (https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-22-04). But when I tried to connect to the database from my local machine with mysql workbench I keep running into the problem can't connect to mysql server on 'public ip' (10060)

I tried a different version of mysql workbench because the version 8.0.28 gave the error can't connect to mysql server on 'localhost' when specifying an IP address. I also changed the bind addressess in the /etc/mysql/mysqld.conf.d/mysqld.cnf to 0.0.0.0 instead of the default 127.0.0.1. I also allowed remote access in my firewall by executing ufw allow 3306 This is an overview of the users

+------------------+---------------+
| user             | host          |
+------------------+---------------+
| david            | %             |
| fimetsu          | public-ip-address |
| debian-sys-maint | localhost     |
| mysql.infoschema | localhost     |
| mysql.session    | localhost     |
| mysql.sys        | localhost     |
| root             | localhost     |
+------------------+---------------+

Im not sure if the problem is with that my server has no access or that my users need specific access i've tried connecting with user fimetsu and david but both don't seem to work All help is greatly appreciated!

EDIT

In mysql workbench I also try to connect to my mysql server with public ip. the same as reference to user fimetsu. Again I'm not sure what IP to use to connect to this server. All help is greatly appreciated!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.