Question

GRANT ALL PRIVILEGES

Posted April 14, 2021 431 views
MySQLApache

GRANT ALL PRIVILEGES ON . TO ‘root’@'190.42.109.27’ IDENTIFIED BY ’*254545255’ WITH GRANT OPTION;

It does not allow me to give permission to remotely access the database apparently it is because of the mysql dl version and ubuntu helps please

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.

×
Submit an Answer
1 answer

Hi there,

It could indeed be related to the specific MySQL version. Can you share the exact version that you are using and also what is the exact error that you get when you try to run the query?

You could try changing the server IP with the % sign and also I could suggest taking a look at this tutorial here:

https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql

Regards,
Bobby

by Mark Drake
Many websites and applications start off with their web server and database backend hosted on the same machine. With time, though, a setup like this can become cumbersome and difficult to scale. A common solution is to separate these functions by setting up a remote database, allowing the server...
  • Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))

    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IDENTIFIED BY 'serverAE2021huaraz’ WITH GRANT OPTION’ at line 1