Next, verify MySQL installation by opening terminal and entering this command: $ mysql -uroot -pepicodus Alternatively, you can refresh your shell by typing in the following command:
Restart your shell (GitBash or Terminal) to apply the changes you've made to your shell's environment variables. Open the command line and enter the following command:įor bash users: $ echo 'export PATH="/usr/local/mysql/bin:$PATH"' > ~/.bash_profileįor zsh users: $ echo 'export PATH="/usr/local/mysql/bin:$PATH"' > ~/.zshrcĬonfirm That MySQL Community Server Is Working Next, configure your shell environment variables to know where to locate the MySQL Community Server. You can use your own password if you want but epicodus will be assumed in the lessons.Ĭonfigure Your Shell's Environment Variables Once you've reached Configuration, select or set the following options (use default if not specified): Next, follow along with the Installer until you reach the Configuration page. Scroll down and click the No thanks, just start my download link. Students with Catalina, Big Sur, Monterey or a newer OS and an M1 chip should use this link. Students with Catalina, Big Sur, Monterey or a newer OS and an Intel chip should use this link. Students with High Sierra or Mojave should use this link. dmg file from the MySQL Community Server page: Start by downloading the MySQL Community Server. We're going to installing two programs: MySQL Community Server and MySQL Workbench.
MySQL is a type of database software used to create, edit, query, and manage SQL data.įollow the installation instructions below.