MySQL 5.x can be downloaded from the specified URL. Steps are provided to install MySQL on Mac and Windows. For Mac, download the DMG file, run the installer using the system password, and save the temporary root password generated. For Windows, run the MySQL installer MSI file and select full installation, saving the password. To verify the installation, access the MySQL console by entering the password and run commands like "show databases".
MySQL 5.x can be downloaded from the specified URL. Steps are provided to install MySQL on Mac and Windows. For Mac, download the DMG file, run the installer using the system password, and save the temporary root password generated. For Windows, run the MySQL installer MSI file and select full installation, saving the password. To verify the installation, access the MySQL console by entering the password and run commands like "show databases".
Note: Don’t download “8.x” version, there are compatibility issues
1.1.1 Steps to install for “Mac”:
a. Download “macOS 10.14 (x86, 64-bit), DMG Archive” by clicking “Download” button and selecting “No thanks, just start download”. b. Go the Downloads folder and double-click on the downloaded “dmg” file which opens pops up a “pkg” which can be installed. c. While installing it asks the system password, enter and select all defaults d. While installing a temporary password is generated for root@localhost:_______, make sure you save this password before you continue the installation
To verify the installation:
a. Open Spotlight and search for “mysql” b. On clicking the searched “mysql” it opens a pop-up, using which you can start and stop “mySql” server using “system password”
c. Checking “mysql” console
a. Got the terminal and enter [if required use “SUDO”]: i. user$ /usr/local/mysql/bin/mysql -uroot -p ii. Enter Password: generated password for mysql b. On successful login we get “mysql” prompt, change the password i. mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword'; ii. mysql> exit iii. user$ /usr/local/mysql/bin/mysql -uroot -p iv. Enter Password: your new password v. mysql> show databases;
1.1.2 Steps to install for “Windows”:
a. Click on “MySQL Installer for windows: MySQL installer MSI” b. Select “full installation” and all other default options c. Make sure you save the password you selected for MySQL
After Installation to verify:
a. Open MySQL 5.7 command line client: b. Enter the password for “MySQL” c. msql> show databases