##################################################### Installation of MySQL on macOS for Use with WordPress ##################################################### Currently MySQL 5.7.18 for macOS 10.12 is installed from a corresponding DMG file in /local/macos/mysql and obtained from the official MySQL site. The installation is in /usr/local via a link at /usr/local/mysql. The username is "root" with password "421oakley", and the database for WordPress is named "wordpress". These values should be present in the wp-config.php setup file in the WordPress directory. ###################################################### Creating or Replacing the MySQL Database for WordPress ###################################################### Below is a sample session that removes an existing MySQL database named "wordpress", and then creates a new database with the same name: TINKERTOOLS 11>cd /usr/local/mysql/bin TINKERTOOLS 12>ls innochecksum* mysqlbinlog* lz4_decompress* mysqlcheck* my_print_defaults* mysqld* myisam_ftdump* mysqld-debug* myisamchk* mysqld_multi* myisamlog* mysqld_safe* myisampack* mysqldump* mysql* mysqldumpslow* mysql_client_test_embedded* mysqlimport* mysql_config* mysqlpump* mysql_config_editor* mysqlshow* mysql_embedded* mysqlslap* mysql_install_db* mysqltest_embedded* mysql_plugin* mysqlxtest* mysql_secure_installation* perror* mysql_ssl_rsa_setup* replace* mysql_tzinfo_to_sql* resolve_stack_dump* mysql_upgrade* resolveip* mysqladmin* zlib_decompress* TINKERTOOLS 13>./mysql -u root -p Enter password: (entered TinkerTeam) Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 122 Server version: 5.7.18 MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE wordpress; ERROR 1007 (HY000): Can't create database 'wordpress'; database exists mysql> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | | wordpress | +--------------------+ 5 rows in set (0.00 sec) mysql> DROP DATABASE wordpress; Query OK, 71 rows affected (0.19 sec) mysql> CREATE DATABASE wordpress; Query OK, 1 row affected (0.01 sec) mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "ponder@tinkertools.org" -> IDENTIFIED BY "TinkerTeam"; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye