I have tried to add a new short name to the 127.0.0.1 address in /etc/hosts :
127.0.0.1 localhost mysql1
but the next day, this setting has been reset to the initial value :
127.0.0.1 localhost
I want to use the "mysql1" short name to be able to switch my databases easily to a new server, without changing my settings in all the scripts.
But how can I do this if the /etc/hosts file gets reset everyday ?
127.0.0.1 localhost mysql1
but the next day, this setting has been reset to the initial value :
127.0.0.1 localhost
I want to use the "mysql1" short name to be able to switch my databases easily to a new server, without changing my settings in all the scripts.
But how can I do this if the /etc/hosts file gets reset everyday ?