GRANT ALL PRIVILEGES ON *.* TO `user`@`localhost` WITH GRANT OPTION;
seuaikan usernya tanda *.* artinya bisa aksess semua database.