Run the native ALTER USER SQL command syntax within the active mysql> prompt interface:
Alternatively, you can stop the engine directly via an elevated command shell: net stop mysql80 Use code with caution. Step 2: Construct the SQL Initialization Script Open . change mysql root password windows
mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --init-file=C:\mysql-init.txt --console Use code with caution. Run the native ALTER USER SQL command syntax
Ensure you are running the Command Prompt as an Administrator . change mysql root password windows
Return to the Windows management console ( services.msc ).