SQL Install Mysql

Install Mysql

The installation process may vary slightly depending on your operating system.

Windows:

MySQL Installer in Windows:

  1. First of all download a MYSQL in officially website Here
  2. Run the installer and follow the on-screen instructions.
  3. During the installation, you can be prompted to choose the products to install. Select "MYSQL Server" and follow the prompts to complete your installation.
  4. Last you can set a root password when prompted. This it will be the password for the MySQL root user.

macOS:

MySQL Installer in macOS:

  1. You can install MySQL on macOS using Homebrew, a package manager for macOS.
  2. Open Terminal and run the following commands:

                                                        
                                                        /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
                                                        
                                                    
  3. After Homebrew is installed, run:
  4.                                                     
                                                        brew install mysql
                                                        
                                                    
  5. Start MySQL service:
  6.                                                     
                                                        brew services start mysql
                                                        
                                                    
  7. Secure your installation:
  8.                                                     
                                                        mysql_secure_installation
                                                        
                                                    

Linux (Ubuntu):

MySQL Installer in Ubuntu:

  1. Open Terminal and run the following commands to install MySQL Server:
  2.                                                     
                                                        sudo apt update
    sudo apt install mysql-server
                                                        
                                                    
  3. During the installation, you'll be prompted to set a password for the Mysql root user.
  4. Secure your installation:
  5.                                                     
                                                        sudo mysql_secure_installation
                                                        
                                                    

    Follow the on-screen prompts to configure security settings.

    Verification:

    1. After finish installation, you can check if MySQL is running by executing:
    2.                                                     
                                                          mysql -u root -p
                                                          
                                                      

      Enter the root password when prompted.

    3. After successfully log in, you're ready to start using MySQL!