Step 1
Copy the MySQL installation folder from another workstation:
dev.mysql.com/doc/refman/8.0/en/windows-extract-archive.html
Step 2
Copy the MySQL data folder from another workstation:
https://dev.mysql.com/doc/refman/8.0/en/windows-extract-archive.html
Step 3
Add MySQL to PATH
:
dev.mysql.com/doc/refman/8.0/en/mysql-installation-windows-path.html
Step 4
Install MySQL as a Windows service:
mysqld --install-manual MySQL --defaults-file="C:\server\mysql\ini\my.ini"
- dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/windows-start-service.html#idm45809698438368
- dev.mysql.com/doc/refman/8.0/en/windows-start-service.html#idm45632642337056
- stackoverflow.com/a/18359021
How to fix «Failed to install the service» on mysqld --install
?
Step 5. Testing the service
5.1.
net start MySQL
5.2.
net stop MySQL && net start MySQL
5.3.
mysql