Creating and updating root password in Mysql
# Creating the first root password
If you have just installed mysql-server and have not set the root password, you will create the password like this:
$ sudo mysqladmin -uroot password 'password'
# Updating the root password
For updating the root password, you can do like this:
$ sudo mysqladmin -u root -p'oldpassword' password 'newpassword'
Nenhum comentário:
Postar um comentário