A
A
Anton V.2019-08-02 11:18:41
linux
Anton V., 2019-08-02 11:18:41

Why did the config file revert to default after updating the mysql package?

Good afternoon!
Faced with an unpleasant and strange problem for me.
On one of the servers, it turned out that automatic updates of security packages were not configured for half a year.
And when the problem was discovered, unattended-upgrade was installed and launched, after which it updated all the security-related pacts, including mysql
. As it turned out after the update, the my.cnf configuration file in which everything was well configured for the left just disappeared and the file returned to the starting value.
Perhaps someone has come across this, or knows what the reason is and how important it is to avoid it in the future.
I would be very grateful for any help!
Thanks in advance!
And have a nice day!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2019-08-02
@martin74ua

https://habr.com/ru/company/flant/blog/330406/
well, for example, read here. In general, you yourself asked the system so)

A
alternativshik, 2019-08-02
@alternativshik

It asks what to do with the config, leave the current one or write down the one provided by the package maintainer.

V
Victor Taran, 2019-08-02
@shambler81

That's why I basically backup /etc every day ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question