I have a redhat linux in AWS EC2. I created a few dbs yesterday for an application. Today, I am getting an error in creating a new database.
mysql -u root -p
pw: xxx
CREATE testdb;
I get an error 1064(42000): You have an error in SQL syntex; check the manual that corresponds to your mysql server version for the right syntex to use near 'testdb' at line 1.
I also tried mysqladmin -u root -p$pwd create testdb;
It takes the password and throws the same problem.
Root has all permissions.