MySQLのテーブル

MySQLでMovable Typeを使うときに、MySQLのテーブルとユーザーの作り方。
これがいつもわからなくて何度も何度も探しているので、忘れないようにメモ


# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 9 to server version: 4.0.24_Debian-10-log
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.
mysql> create database mtdb;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on *.* to mtuser@localhost IDENTIFIED by ‘password‘;
Query OK, 0 rows affected (0.00 sec)

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください