-
Download the Archived file by selecting MySQL version and OS version using this link
-
Create a new folder inside
C:\
folder asmysql
-
Extract the zip file and copy all the contents within the folder and paste it inside the
mysql
folder -
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
- Go inside
mysql/bin
folder in terminal and run the following commands
mysqld.exe --initialize-insecure
mysqld.exe --install
- Press the Windows key and search for
services
, open services and search for a service namedMySQL
- Right click on the service and select start
- Open a new termainal and invoke the following command to check if mysql server is accessible
mysql -u root --skip-password
- 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;
- Type the password after invoking the command. that's it!
mysql -u root -p