Skip to content

Instantly share code, notes, and snippets.

@alainlankers
Last active June 17, 2022 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alainlankers/0ef42def8d263e3155ced028ae5c1115 to your computer and use it in GitHub Desktop.
Save alainlankers/0ef42def8d263e3155ced028ae5c1115 to your computer and use it in GitHub Desktop.
Create MySQL database for WordPress install
$ sudo mysql -u root
mysql> CREATE DATABASE wordpressdb;
mysql> CREATE USER wordpress@localhost IDENTIFIED BY '<your-password>';
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
-> ON wordpressdb.*
-> TO wordpress@localhost;
mysql> FLUSH PRIVILEGES;
mysql> quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment