Installation and my.conf location

Hello,

I am trying to install xtradb cluster for the first time, in Ubuntu. I have ran the folloiwng commands:

I need to create a my.conf file, but I’m not sure where to find the mysql directory.

I have not installed MySQL but according to one of the following links,
we need to create it in

Do I need to install MySQL first so that this directory exists already, or should I just create
the missing directory and then create the my.conf file in there?

[URL=“http://www.percona.com/doc/percona-xtradb-cluster/5.6/howtos/ubuntu_howto.html”]http://www.percona.com/doc/percona-x...ntu_howto.html[/URL]

[URL=“http://www.percona.com/doc/percona-xtradb-cluster/5.6/installation.html#installation”]http://www.percona.com/doc/percona-x...l#installation[/URL]

Thank you

Herbey,

You don’t have to install Oracle’s MySQL to have this directory or the configuration file, if for some reason /etc/mysql directory or /etc/mysql/my.cnf is not found you may be able to create it without any problems.

You may use the sample my.cnf here - [url]Installing Percona XtraDB Cluster on Ubuntu, or here [url]Installing Percona XtraDB Cluster. Just make sure to change the parameters that would fit your test cluster.

You may also read the blogpost by Jay Janssen below:
[url]http://www.mysqlperformanceblog.com/2013/09/23/percona-xtradb-cluster-setting-simple-cluster/[/url]

Shameless plug of my blogpost (just skip through Docker specific commands)
[url]http://www.mysqlperformanceblog.com/2014/05/26/installing-three-node-percona-xtradb-cluster-5-6-docker/[/url]

Or if you’re like me who prefers watching a video, then you can visit this link to watch a recorded webinar presented by Peter Boros:
[url]http://www.percona.com/webinars/percona-xtradb-cluster-installation-and-setup[/url]