In a shell we use the mysqladmin command to achieve this as follows for a local database server:
mysqladmin -u root password "the_new_password"Or a remote one:
mysqladmin -u root -h host_name password "the_new_password"Next you should restart the database server, to make sure the new security settings are used.
sudo /etc/init.d/mysql restart
No comments:
Post a Comment