Report this

What is the reason for this report?

how to connect digitalocean cloud MYSQL to google data studio ?

Posted on June 21, 2018

hi i try to connect google data studio to mysql but it fail

already allow 12 ip from google already setup mysql remote connection

any idea or tutorial ??

tahnks !!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

looking at the same for postgres

I need to do this exact same thing!

Finally i was able to connect data studio and mysql server inside a DO droplet :

1.- Allow mysql to accept external connections:

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

look for bind-address = 127.0.0.1 change it to bind-address = 0.0.0.0

2.- restart the server to apply the changes:

sudo systemctl restart mysql

3.- Create a new admin user for mysql:

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION;

CREATE USER 'username'@'%' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;

FLUSH PRIVILEGES;

4.- Open the ports:

sudo ufw allow mysql


That’s all folks now go to datastudio and setup the new connection with que data that you just create (New admin user).

Atte. Max Mussuto

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.