-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Thiago Rigonatti edited this page Jul 11, 2022
·
1 revision
Make sure to download https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.29-winx64.zip from the oficial website
and make sure to have downloaded ini.my
file also
Once running the script will:
- Check for administrator permissions
- Extract mysql-8.0.29-winx64.zip to C:\MySQL\
- Copy my.ini file to C:\MySQL\MySQL-8.0.29\
- Create uploads folder according to my.ini option
- Try to create a service named
MySQL80
if it already exists the script will prompt you to enter a name to a new service - Config this service as manual initialization
- Create 2 files named start MySQL80.bat and stop MySQL80.bat to start and open MySQL80 later
- Initialize MySQL data folder insecure (with no pass for root user)
- Open MySQL in command prompt to be used
Then you can change your root password by typing this on MySQL server
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YourNewPassword';
flush privileges;
exit;
Note: If you put a password for root you need to change start MySQL80.bat file as the following:
C:\MySQL\MySQL-8.0.29\bin\mysql.exe -u root
to
C:\MySQL\MySQL-8.0.29\bin\mysql.exe -u root -p YourNewPassword