I have installed on my application server mysql mysql Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
. My operating system on my VPS is Ubuntu 20.04.1 LTS
.
To manage this database I connect locally via SSH to the server and THEN accessing the database.
However, services such as google data studio need a jdbc url or a database hostname.
I tried my servers IP as hostname and then using the correct port, username, pwd. However, I get:
I am thinking that my hostname is wrong as it is locally on the server localhost
and not the server's IP.
Any suggestions how to connect to the database or find the correct hostname?
I appreciate your replies!
Update
Running ss -nlp
I get:
root@myVPS:~# sudo ss -nlp | grep mysql u_str LISTEN 0 70 /var/run/mysqld/mysqlx.sock 190906736 * 0 users:(("mysqld",pid=1668517,fd=33)) u_str LISTEN 0 151 /var/run/mysqld/mysqld.sock 190906739 * 0 users:(("mysqld",pid=1668517,fd=36)) u_dgr UNCONN 0 0 * 190906575 * 12685 users:(("mysqld",pid=1668517,fd=3)) tcp LISTEN 0 70 127.0.0.1:33060 0.0.0.0:* users:(("mysqld",pid=1668517,fd=32)) tcp LISTEN 0 151 *:3306 *:* users:(("mysqld",pid=1668517,fd=34))