DB Lab Basics
DB Lab Basics
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-0-2-26 ~]$ man mysql
[ec2-user@ip-10-0-2-26 ~]$ sudo mysql -u admin -p --host lab-db.c1sguoc32lvh.us-
west-2.rds.amazonaws.com
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 8.0.28 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [lab]>
Creating Another Database / Tables
MySQL [lab]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| lab |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
MySQL [lab]>