I am trying to execute this queries -
DROP DATABASE IF EXISTS `hotel`; GRANT USAGE ON *.* TO \'user\'@\'localhost\'; DROP USER \'user\'@\'localhost\'; CRE
Run from Root user:
grant all privileges on *.* to 'user'@'localhost' identified by '';
EDIT
Example
mysql> grant all privileges on *.* to 'user'@'localhost' identified by 'user'; mysql> flush privileges;