root@531a0c7c5e99:/home/NBSystem# mysql -h nbsystem.cxiyempxoldu.ap-northeast-1.rds.amazonaws.com -P 3306 -u admin -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 531 Server version: 8.0.35 Source distribution Copyright (c) 2000, 2024, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement. mysql>
接続に成功しましたね。これで、MySQLのコマンドラインインターフェース (CLI) を使用して、RDSデータベースに対してクエリを実行できます。
例えば、データベース内のテーブルを表示するには、次のようにしてください。
sql
show tables;
また、データベース内の特定のテーブルの構造を確認するには、次のようにしてください。
sql
describe テーブル名;
他にも、任意のSQLクエリを実行したり、データベースの操作を行うことができます。必要な場合は、どんなクエリを実行したいかを教えてください。

ディスカッション
コメント一覧
まだ、コメントがありません