Last active
December 16, 2015 10:19
-
-
Save abarth500/5419510 to your computer and use it in GitHub Desktop.
[情報科学科実験I] データベースとユーザの作成
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #rootでmysqlにログイン | |
| mysql -u root -p | |
| #パスワードを聞かれるので先ほど入力したパスワードを入れる |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --utf8の文字コードでデータベースの作成 | |
| CREATE DATABASE CSexp1DB CHARACTER SET utf8; | |
| --すべてのSQL文を発行できるユーザの作成(パスワードのhogehogeは適当に班で決めて書きかえてください) | |
| GRANT ALL PRIVILEGES ON CSexp1DB.* TO CSexp1@localhost IDENTIFIED BY 'hogehoge'; | |
| FLUSH PRIVILEGES; | |
| --mysqlからshellのコマンドラインへ戻るには次のコマンド | |
| quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment