WordPressインストール時のMysqlの操作

# mysql -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.5.27 MySQL Community Server (GPL) by Remi

Copyright (c) 2000, 2011, 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> GRANT ALL PRIVILEGES ON wordpress.* TO wp_user@localhost IDENTIFIED BY '**********';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET UTF8;
Query OK, 1 row affected (0.00 sec)

mysql> SHOW DATABASES;

 +--------------------+
 | Database           |
 +--------------------+
 | information_schema |
 | mysql              |
 | postfix            |
 | test               |
 | wordpress          |
 +--------------------+
 5 rows in set (0.00 sec)

 



コメントを残す