Skip to content

Instantly share code, notes, and snippets.

@nax3t
Last active October 31, 2023 18:14
Show Gist options
  • Save nax3t/767e06f6af0bafc70b4c4cba0c8d38e7 to your computer and use it in GitHub Desktop.
Save nax3t/767e06f6af0bafc70b4c4cba0c8d38e7 to your computer and use it in GitHub Desktop.
Goorm MySQL Cheat Sheet

Goorm MySQL Cheat Sheet

The purpose of this document is to quickly show you how to get back into your MySQL database after returning from a break

All the commands below will be run from the terminal (command line).

  1. Start by running the mysql service and opening the mysql shell, this can be done simultaneously with a single command:
mysql-ctl cli

If this worked then you should see mysql> in your terminal. You may now enter the following MySQL commands:

  1. List all existing databases:
SHOW DATABASES;
  1. If you see your database then open it with:
USE <db_name>;

Be sure to replace <db_name> with the name of your database.

  1. If you do not see your database then you will need to create it: CREATE DATABASE <db_name>; Again, be sure to replace <db_name> with the name of your database.

  2. Now you can open your newly created database with:

USE <db_name>;

You are now inside of a database and can begin creating tables, querying for data, and so on. Once you are done working, simply type the exit command to quit the MySQL shell and return to the terminal.

@ShivSahil
Copy link

thanks for sharing the file

@aamit1234
Copy link

Hello Sir, Could you please let me know how should i connect my groom ide MYSQL instance from my local MYSQL work benche.

@nick09-nt
Copy link

nick09-nt commented Feb 4, 2022 via email

@aamit1234
Copy link

@@nick09-nt. any proper links are not available into the google. If you have any handy link or video could you please share with me.

@nick09-nt
Copy link

nick09-nt commented Feb 4, 2022 via email

@muhammadoswarazul
Copy link

Thank you so much for sharing your knowledge, Hope you will have an awesome life ahead.

@DataAnalyst33
Copy link

thanks for sharing file.

@harshjxx
Copy link

thank you very much!! :)

@codeapplied
Copy link

thanks man

@wnicolass
Copy link

thank you man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment