Created
August 5, 2012 01:55
-
-
Save skshiro/3261087 to your computer and use it in GitHub Desktop.
mysql root password setting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start mysqld --skip-grant-tables | |
mysql -u root mysql | |
use mysql; | |
select * from user; | |
select * from user where user='root'; | |
update user set password=PASSWORD('XXXXXX') where user='root'; | |
SET PASSWORD FOR root@"%"=PASSWORD('XXXXX'); | |
SET PASSWORD FOR bitnami@"%"=PASSWORD('QQQQQQ'); | |
SET PASSWORD FOR bitnami@"%"=PASSWORD('QQQQQQ'); | |
update user set password=PASSWORD('QQQQQQ') where user='bitnami'; | |
mysqldump -u bitnami -pQQQQQQ bitnami_redmine > redmine.dump | |
mysql -u bitnami -pQQQQQQ bitnami_redmine < redmine.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment