I seemed to get this to work before, but now I repeatedly get ERROR 1064, error in SQL syntax. What is the correct syntax to use if you have configured it with ZM_DB_NAME=zm1 ZM_DB_USER=zmuser1 ZM_DB_PASS=zmpass1 ?For a new installation the next thing you will need to do is create your database and database users. So type the commands as follows,
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on <database>.* to '<database>'@localhost identified by '<database>';
quit
mysqladmin reload
You may need to supply a username and password to the mysql commands in the first place to give yourself sufficient privileges to perform the required commands.
I tried this:
which ran okay.mysql -u root -p mysql < db/zm_create.sql
which gave me a mysql prompt "mysql>"mysql -u root -p mysql
and then got the ERROR 1064, SQL syntax error. I also tried it without the ' as in:grant select,insert,update,delete on zm1.* 'zmuser1'@localhost identified by 'zmpass1'
and the same ERROR 1064. What is the correct syntax?mysql> grant select,insert,update,delete on zm1.* zmuser1@localhost identified by zmpass1