[root@centos ~]# mysql -u root -p ← MySQLへrootでログイン
Enter password: ← MySQLのrootパスワード応答
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 78 to server version: 5.0.22
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all privileges on openpne.* to openpne@localhost identified by 'パスワード'; ← openpneユーザー作成
Query OK, 0 rows affected (0.52 sec)
mysql> create database openpne; ← openpneデータベース作成
Query OK, 1 row affected (0.08 sec)
mysql> exit ← ログアウト
Bye
|
|