mysql の変更点   

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • mysql へ行く。

参考
 http://saba.nitty-gritty.org/900misc/mysql.html

* Install [#sf157791]
 yum -y install mysql-server 
 /etc/init.d/mysqld start
 mysql -u root

** root のパスワード設定 [#qbb45750]
 set password for root@localhost('new_password');

 mysql -u root -p

* ユーザの作成 [#dea4d7c4]
 grant all privileges on userdb.* to user123@localhost identified by '(パスワード)';
 quit;

 mysql -u user123 -p Enter password: (user123のパスワード) 

* DBの作成 [#b9710999]
 create database userdb;