Skip to content

Instantly share code, notes, and snippets.

@sahilkhosla
Last active December 3, 2020 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sahilkhosla/ac633daa86b947293e76855b3d59ab17 to your computer and use it in GitHub Desktop.
Save sahilkhosla/ac633daa86b947293e76855b3d59ab17 to your computer and use it in GitHub Desktop.
#install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install mysql
brew install mysql
brew services start mysql
# create database
mysql -uroot
>> create database parking
#make sure you have pip3 installed
which pip3
# install myslq connector
pip3 install mysql-connector
# make sure password in your code is correct
# by defaul root user on mysql has no password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment