
29th July 2012, 07:47
|
|
Member
|
|
Join Date: Sep 2011
Posts: 34
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
How to change password of MySql and others?
Hello,
I have configured a two mail servers on openSUSE from here. Now I want to change the password of MySQL and the server. Please tell me step by step how can I do it with out interrupting the services ?
Thanks
Tanvir
|

29th July 2012, 09:52
|
|
Member
|
|
Join Date: Jun 2012
Posts: 32
Thanks: 0
Thanked 5 Times in 4 Posts
|
|
Quote:
Originally Posted by tanvir
Hello,
I have configured a two mail servers on openSUSE from here. Now I want to change the password of MySQL and the server. Please tell me step by step how can I do it with out interrupting the services ?
Thanks
Tanvir
|
Assuming you know your current 'root' passwords, to reset your system's 'root' password you need to login to your server via ssh and execute
it will ask you to enter and confirm your new system's 'root' password.
as for resetting the mysql's 'root' password, you need to login to your mysql server as root by executing:
once you're in, you need to change the database to 'mysql'
and then reset your mysql's 'root' password by executing:
Code:
mysql> update user set Password=PASSWORD('YOUR_NEW_PASS') WHERE User='root';
to quit the mysql shell type:
cheers
|

29th July 2012, 10:01
|
|
Member
|
|
Join Date: Sep 2011
Posts: 34
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
After changing MySQL password will postfix, Apache2, BIND, Dovecot, ISPConfig 3 etc work fine as they are doing now... ?
|

29th July 2012, 10:49
|
|
Member
|
|
Join Date: Jun 2012
Posts: 32
Thanks: 0
Thanked 5 Times in 4 Posts
|
|
Quote:
Originally Posted by tanvir
After changing MySQL password will postfix, Apache2, BIND, Dovecot, ISPConfig 3 etc work fine as they are doing now... ?
|
I'm not that familiar with ISPConfig 3 and cannot tell for sure if it or its services use a MySQL database, specifically the 'root' account.
You may want to wait for an answer on this from some one who knows how things work in ISPConfig 3.
anyhow, the services like apache, bind, dovecot, postfix should not be affected by the change of your mysql 'root' password.
|

30th July 2012, 12:44
|
|
Member
|
|
Join Date: Sep 2011
Posts: 34
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by rosehosting
I'm not that familiar with ISPConfig 3 and cannot tell for sure if it or its services use a MySQL database, specifically the 'root' account.
You may want to wait for an answer on this from some one who knows how things work in ISPConfig 3.
anyhow, the services like apache, bind, dovecot, postfix should not be affected by the change of your mysql 'root' password.
|
Thank you rosehosting. I am waiting for someone who knows the answer...
|

31st July 2012, 08:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
ISPConfig uses the mysql root password only to create new databases, all other operations are donw ith the less priveliged mysql user "ispconfig". So after you changed the mysql root password change it in the file /usr/local/ispconfig/server/lib/mysql_clientdb.conf as well.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

31st July 2012, 10:43
|
|
Member
|
|
Join Date: Sep 2011
Posts: 34
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
ISPConfig uses the mysql root password only to create new databases, all other operations are donw ith the less priveliged mysql user "ispconfig". So after you changed the mysql root password change it in the file /usr/local/ispconfig/server/lib/mysql_clientdb.conf as well.
|
Just being curious, If I do as you said then will postfix, Apache2, BIND, Dovecot, ISPConfig 3 work fine as they are working now ?
|

31st July 2012, 18:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Apache and BIND are fine as they don't use MySQL as backend. For Postfix, Dovecot, and ISPConfig you will have to update the MySQL password in the appropriate configuration files.
|

1st August 2012, 09:07
|
|
Member
|
|
Join Date: Sep 2011
Posts: 34
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by falko
Apache and BIND are fine as they don't use MySQL as backend. For Postfix, Dovecot, and ISPConfig you will have to update the MySQL password in the appropriate configuration files.
|
till has described how to change the for ISPConfig 3. Thanks for that. Can you tell ma how to change for Postfix and Dovecot ?
|

1st August 2012, 14:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
For Postfix, you must modify the mysql*.cf files in the /etc/postfix/ directory. The same has to be done for dovecot.conf (which is either in /etc/or /etc/dovecot/). Restart both daemons afterwards.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:08.
|
|
Recent comments
1 day 5 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 19 hours ago
1 day 20 hours ago
1 day 22 hours ago
2 days 11 hours ago
2 days 12 hours ago