-- to grant all privileges on 1 database and all its table GRANT ALL PRIVILEGES ON database_name.* TO 'user'@'localhost'; -- to grant all privileges on all databases and all their respective tables GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost';