GRANT ALL PRIVILEGES ON <database>.* TO 'newuser'@'localhost'; use the ip as well GRANT ALL PRIVILEGES ON <database>.* TO 'newuser'@'127.0.0.1';