I'm trying to allow remote access to a MySQL Workbench database I created for somebody to have full access to. I created the user and granted them full access, however, when I try to log in as that user from a different laptop, it says access denied (yes, I checked if the password was right).
I then saw on Google that you need to adjust the binding_address in the my.cnf
file from MySQL but I can't seem to find where it's located (if it even exists). I saw other posts about this on here and tried all of the solutions but still had no luck.
If anybody has any advice on how to access or create a my.cnf
to allow remote access for a MySQL database on mac Big Sur that would be great.
As of now, the host for the root user is 'localhost' (not sure if I should change this). The last time I changed this to my IP address, I was locked out of the database for some reason and had to restart everything and re-build the entire database. Below is the syntax I used to create the user I'm trying to have access the database:
The *
resembles the rest of my IP address.
CREATE USER 'user'@'67.81.**.*' IDENTIFIED BY 'password3!';
GRANT ALL PRIVILEGES ON fsk TO 'user'@'67.81.**.*' WITH GRANT OPTION;
FLUSH PRIVILEGES;
After creating the user, I went into "Users and Privileges" in MySQL Workbench and manually checked all of the boxes to grant the user full access. Then, when I try and log in to the database from a different laptop, I get the following error:
"Failed to Connect to MySQL at 67.81.**.*:3306 with user user.
Unable to connect to localhost"