Uploaded by Nacira Sout

Part 1 MAC250

advertisement
MAC250
MySQL Tutorial
Part # 1
09/14/2023
A demonstration on the mastery of fundamental SQL commands and functions, comprehension
of data manipulation, and investigating database queries.
Step # 1: Connecting to and Disconnecting from the server — Connect to the MySQL server
using your username mysql -u your_username -p
Step # 2: Disconnect from mysql server using ‘QUIT’ or ‘\q’ at the ‘mysql>’ prompt.
Step # 3: Issue queries to find out information and demonstrate combined queries with a
semicolon isolation.
Step # 4: Show existing databases and accessing it
Step# 5: Syntax — CREATE DATABASE HouseOfPets and use it
Step# 6: Syntax — CREATE TABLE
Step# 7: SHOW TABLE created
Step# 8: Syntax — Show table structure
Step# 9: Load data to a table pet
Step# 10: Syntax —Insert a row to a table
Download