It is needed to grant permission in MySQL server for users of the database. Below MySQL commands can be used to grant permissions.
- grant all privileges on database.* to 'sujith'@'localhost';
- flush privileges;
Refer MySQL documentation for more details.