Using MySQL Client With MySql Server Or MAMP — Run MySQL via Command Line ( CLI )

  1. With MAMP
  2. With MySQL Server.

1. With MAMP

Using MySQL client on Command Line

export PATH="/Applications/MAMP/Library/bin:$PATH"
nano .bash_profile
nano .zshrc
mysql --host=localhost -uroot -p

2. With MySQL Server

Running MySQL Client on Terminal

export PATH="/usr/local/mysql/bin:$PATH"
mysql -u root -p

--

--

--

👤 Full Stack Developer at rtCamp, Speaker, Blogger, YouTuber, Wordpress, React, Node, Laravel Developer http://youtube.com/ImranSayedDev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hot to Create a Simple Machine Learning Demo Using Streamlit Framework

Is Python Still a Good Language To Learn In 2022?

Avoid N + 1 problem in Rails

Partial classes and methods

Getting Started With WordPress Part 1

Swift best practices

Chat Server from UDP protocol

Customizing Android Studio with the IntelliJ Plugin SDK (Part 1)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Imran Sayed

Imran Sayed

👤 Full Stack Developer at rtCamp, Speaker, Blogger, YouTuber, Wordpress, React, Node, Laravel Developer http://youtube.com/ImranSayedDev

More from Medium

Building Beautiful Apis in Node js

Using Chart JS in React App

Generating the JSON Web Token for the Google Play Developer API

Takram: Part 2