On Sun, 10 Jun 2018 13:01:54 -0500, Anthony Fuentes wrote:
> I am trying to connect to a MySQL database that is on my dedicated
> server from the GCE instance […]
Oh, sorry, I misunderstood.
You want to check the grants of the server where mysqld is running, so you would run the command I gave you on your dedicated server, in that case. You then want to ensure that a grant exists to connect from the GCE server's public IP address. If the GCE IP isn't shown in the first column, you'll need to add a grant that allows it using:
GRANT ALL ON `DBNAME`.* to `USER`@`HOST`
Where HOST is your GCE public IP. (Assuming you've already set a password for USER; if not, you can set one at the same time using:
GRANT ALL ON `DBNAME`.* to `USER`@`HOST` IDENTIFIED BY 'DBPASS'
You may not want to give "ALL" permissions to this user, just give as much as is needed to do the job.
Quinn