Comments - Installing MariaDB Binary Tarballs
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Hi,
I am trying to install mariadb-10.11.2 and mariadb-10.10.3 on 3306 and 3307 port respectively
i followed this steps
``` shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /path/to/mariadb-VERSION-OS.tar.gz | tar xvf - shell> ln -s full-path-to-mariadb-VERSION-OS mysql shell> cd mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> bin/mysqld_safe --user=mysql & ```
``` cd /usr/local/apps unpacked mariadb-10.10.3-linux-systemd-x86_64.tar.gz into the directory of my choice mv mariadb-10.10.3-linux-systemd-x86_64 mariadb1010 cd mariadb1010 groupadd mysql useradd -g mysql mysql chown -R mysql . chgrp -R mysql . scripts/mysql_install_db --user=mysql --port=3306 --datadir=/var/lib/mariadb1010 --socket=/var/lib/mariadb1010/mysql.sock --log-error=/var/lib/mariadb1010/error.log --pid-file=/var/lib/mariadb1010/mysqld.pid --basedir=/usr/local/apps/mariadb1010 --defaults-file=/etc/my1010.cnf chown -R root . bin/mysqld_safe --user=mysql --port=3306 --datadir=/var/lib/mariadb1010 --socket=/var/lib/mariadb1010/mysql.sock --log-error=/var/lib/mariadb1010/error.log --pid-file=/var/lib/mariadb1010/mysqld.pid --basedir=/usr/local/apps/mariadb1010 --defaults-file=/etc/my1010.cnf & cp /usr/local/apps/mariadb1010/support-files/mysql.server /etc/init.d/mysql1010.server cp /usr/local/apps/mariadb1010/support-files/systemd/mariadb.service /usr/lib/systemd/system/mariadb1010.service
cd /usr/local/apps unpacked mariadb-10.11.2-linux-systemd-x86_64.tar.gz into the directory of my choice mv mariadb-10.11.2-linux-systemd-x86_64 mariadb1011 cd mariadb1011 groupadd mysql useradd -g mysql mysql chown -R mysql . chgrp -R mysql . scripts/mysql_install_db --user=mysql --port=3307 --datadir=/var/lib/mariadb1011 --socket=/var/lib/mariadb1011/mysql.sock --log-error=/var/lib/mariadb1011/error.log --pid-file=/var/lib/mariadb1011/mysqld.pid --basedir=/usr/local/apps/mariadb1011 --defaults-file=/etc/my1011.cnf chown -R root . bin/mysqld_safe --user=mysql --port=3307 --datadir=/var/lib/mariadb1011 --socket=/var/lib/mariadb1011/mysql.sock --log-error=/var/lib/mariadb1011/error.log --pid-file=/var/lib/mariadb1011/mysqld.pid --basedir=/usr/local/apps/mariadb1011 --defaults-file=/etc/my1011.cnf & cp /usr/local/apps/mariadb1011/support-files/mysql.server /etc/init.d/mysql1011.server cp /usr/local/apps/mariadb1011/support-files/systemd/mariadb.service /usr/lib/systemd/system/mariadb1011.service ``` changes port in myxx.cnf
but both installs areloading /etc/my.cnf and running on 3306 and creating databse at /var/mysql
when service starts
for both of mysql on mariadb1011 and mariadb1010 directory
setting