I'm trying to run this command remotely using SSH:
/opt/bitnami/mysql/bin/mysql -u root -p -e "grant all privileges on *.* to 'root'@'%' identified by 'bitnami' with grant options";
I get this error:
ERROR 1064 (42000) at line 1: 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 'options' at line 1
UPDATE1
Is the password in the command line for the mySQL root or for the Ubuntu root? And when executing the command it asks for a password - is that for mySQL or Ubuntu?