mysql -u root CREATE DATABASE dbname; GRANT ALL PRIVILEGES ON dbname.* TO "root"@"localhost"; FLUSH PRIVILEGES;