# /etc/init.d/mysqld stop
# mysqld_safe --skip-grant-tables &
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("yournewpasswordhere") where User='root';
mysql> flush privileges;
mysql> quit
# /etc/init.d/mysqld stop
# /etc/init.d/mysqld start
Now you can login with your new password
# mysql -u root -p
Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts
Tuesday, 23 February 2010
Monday, 20 August 2007
mysql backup
Command which I am using for back up
mysqldump --single-transaction --all-databases -u username --password=password> backup_sunday_1_PM.sql
mysqldump --single-transaction --all-databases -u username --password=password> backup_sunday_1_PM.sql
Subscribe to:
Posts (Atom)