Skip to content

Instantly share code, notes, and snippets.

@mullnerz
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save mullnerz/a71edb7b351c64a3b5b7 to your computer and use it in GitHub Desktop.

Select an option

Save mullnerz/a71edb7b351c64a3b5b7 to your computer and use it in GitHub Desktop.

Revisions

  1. mullnerz revised this gist Apr 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion new_gist_file_0
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ wp --info

    wp core download

    #export DB_NAME=awesome ; export DB_USERNAME=awesome ; export DB_PASSWORD=awesome
    #export DB_NAME=awesome ; export DB_USERNAME=awesome ; export DB_PASSWORD=123

    mysql -h localhost -u root -p
    create database if not exists `${DB_NAME}`;
  2. mullnerz created this gist Mar 25, 2015.
    17 changes: 17 additions & 0 deletions new_gist_file_0
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    php wp-cli.phar --info
    chmod +x wp-cli.phar
    sudo mv wp-cli.phar /usr/local/bin/wp
    wp --info

    wp core download

    #export DB_NAME=awesome ; export DB_USERNAME=awesome ; export DB_PASSWORD=awesome

    mysql -h localhost -u root -p
    create database if not exists `${DB_NAME}`;
    grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`localhost` identified by '123';
    grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`%` identified by '123';

    wp core config --dbname=awesome --dbuser=awesome --dbpass=123
    wp core install --url=http://awesome.dev/ --title=WordPress --admin_user=awesome --admin_password=123 --admin_email=zoltan@mullner.hu