41. DBの接続
?? RDS(MySQL)のエンドポイントを指定して接
続します。
$ mysql -h hokkaido.xxxxxxxx.ap-northeast-1.rds.amazonaws.com -P 3306 -u
hokkaido -p hokkaido
Enter password: ***
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 574
Server version: 5.6.23-log MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its a?liates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
a?liates. Other names may be trademarks of their respective
owners.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
mysql>