@mmumshad Please kindly help with this the sql server is denying me access to log in with the pre-generated password.
-p stands for password. You are combining the parameter with the password. Give space.
You can type mysql --help from the command line for more information about all available parameters.
Alright, thanks Lkshimi.