Skip to content

Instantly share code, notes, and snippets.

@nivethan-me
Last active October 22, 2024 15:26
Show Gist options
  • Save nivethan-me/1745b152291d5a8803ea5c3a9297e9a1 to your computer and use it in GitHub Desktop.
Save nivethan-me/1745b152291d5a8803ea5c3a9297e9a1 to your computer and use it in GitHub Desktop.
Installing MySQL community server using a noinstall ZIP Archive in windows 10/11

Installing MySQL community server using a noinstall ZIP Archive in windows 10/11

  1. Download the Archived file by selecting MySQL version and OS version using this link

  2. Create a new folder inside C:\ folder as mysql

  3. Extract the zip file and copy all the contents within the folder and paste it inside the mysql folder

  4. Inside the mysql folder create a new file named my.ini and paste the following config

[mysqld]

# set basedir to your installation path
basedir=C:\\mysql

# set datadir to the location of your data directory
datadir=C:\\mysql\\data
  1. Go inside mysql/bin folder in terminal and run the following commands
mysqld.exe --initialize-insecure

mysqld.exe --install
  1. Press the Windows key and search for services, open services and search for a service named MySQL
  2. Right click on the service and select start
  3. Open a new termainal and invoke the following command to check if mysql server is accessible
mysql -u root --skip-password
  1. To give root user a password run the following inside the mysql server you opened on previous step
ALTER USER 'root'@'localhost' IDENTIFIED BY 'ENTER_YOUR_PASSWORD_HERE';
FLUSH PRIVILEGES;
  1. Type the password after invoking the command. that's it!
mysql -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment