Link to home
Avatar of marrowyung
marrowyung

asked on

check out the location of the configuration files for MySQL InnodB cluster and MariaDB Galeria Cluster.

h


how I want to backup the MySQL InnodB cluster , MySQL router, MariaDB cluster and maxscale configuration file to other linux  VM so that can I setup the same cluster again , how can I know where is the updated location of the my.cnf, myrouter.cnf, server.cnf and maxscale.cnf?
ASKER CERTIFIED SOLUTION
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of marrowyung
marrowyung

ASKER

"MariaDB/MySQL :  mysqld --help --verbose"

can the same command use to find the .cnf files ? how ?

at this moment just want to find out all .cnf !

tks.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
tks. let me try and get back to you if any !
is it possible for the command to show me the cnf file MysQL/MariaDB is not using at all but just some rubblish files ?
maxscale do not have that mysqld, so what should I do ?

how can I find the maxscale.cnf?



and when I do this to one :
mysqld --help --verbose | grep cnf

it seems gives me some other thing.
User generated image
so which one is ..?
Hi,

As I mentioned in earlier comment then

Usually these my.cnf files are under /etc , /etc/mysql/ or /etc/mysql.d/ or simlar folders in Linux.

For example MaxScale would be under /etc and/or the /etc/maxscale.cnf.d folder.

https://mariadb.com/kb/en/mariadb-maxscale-22-mariadb-maxscale-configuration-usage-scenarios/

Regards,
    Tomas Helgi
"Usually these my.cnf files are under /etc , /etc/mysql/ or /etc/mysql.d/ or simlar folders in Linux."

actually what i meant is, as according to the output of the command, none of them are currect, I know where is the my.cnf now, it is none of this location.

any reason why ?
I found whereis command also ok.