mysql password function code example
Example 1: set password mysql
-- In case the UPDATE command returns "Column 'Password' is not updatable" run
ALTER USER 'root'@'localhost' IDENTIFIED BY 'newPassword';
flush privileges;
Example 2: how to pass password mysql command line
mysql -u user -ppassword
password should not have any space with -p