How to open mysql in Terminal - MySQL

·

1 min read

A.jpg

Hello every one, in this content i wanna tell you how to open mysql in terminal. Check this out!.

I. First Open terminal, you can search in mac with use spaces bar (cmd + space) or in windows you can search in windows panel and search terminal.

II. Second, you can write in terminal like this :

mysql -u root -p
  • After you get password screen in your terminal like this. Jepretan Layar 2021-04-28 pukul 07.52.04.png

By default mysql you can press enter in mysql. You can give a password in your mysql, but very hard to access your mysql to write or create table. So, don't give if you not understand

III. Third, you can create database in your mysql on terminal like this.

Jepretan Layar 2021-04-28 pukul 08.01.38.png

  • And to create table like this.

Jepretan Layar 2021-04-28 pukul 08.22.50.png

IV. Last, you can insert the content to your table with TablePlus, DataGrip, Others code editor. So, enjoy in my blog and thanks your reading my blog. See You.