MYSQL Tutorial



INSTALLATION AND SETUP


โš™๏ธ Installation and Setup of MySQL

To use MySQL, you must install the MySQL Server and a client tool to manage your databases.

๐ŸชŸ Windows Installation

  1. Go to the official MySQL website: dev.mysql.com/downloads/installer
  2. Download the MySQL Installer for Windows (Community).
  3. Run the installer and choose:
    • Developer Default โ€“ recommended for beginners.
  4. Click Next and install required software (if prompted).
  5. Set a strong root password (remember this!).
  6. Click Execute and wait for installation to finish.

๐Ÿ macOS Installation

  1. Install Homebrew (if not already installed).
  2. Run the command:
    brew install mysql
  3. Start MySQL server:
    brew services start mysql
  4. Log in to MySQL:
    mysql -u root

๐Ÿง Linux (Ubuntu) Installation

  1. Update your packages:
    sudo apt update
  2. Install MySQL Server:
    sudo apt install mysql-server
  3. Secure the installation:
    sudo mysql_secure_installation
  4. Log in:
    sudo mysql

๐Ÿ“Œ Tools to Use with MySQL

  • ๐Ÿ–ฅ๏ธ MySQL Command Line โ€“ built-in terminal for running queries.
  • ๐Ÿงฐ MySQL Workbench โ€“ GUI tool for creating tables and writing SQL visually.
  • ๐Ÿงช phpMyAdmin โ€“ web-based tool for managing MySQL (use with XAMPP).
โœ… Tip: Use mysql -u root -p in terminal to log in with your password.

๐ŸŒŸ Enjoyed Learning with Us?

Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!

Leave a Google Review