Control Web Panel

WebPanel => MySQL => Topic started by: qheart on November 15, 2015, 01:36:36 PM

Title: Change default port mariadb in cwp?
Post by: qheart on November 15, 2015, 01:36:36 PM
Hello How to change mariadb port default ?

I have edit in /etc/my.cnf.d/server.conf
i add in

[mysqld]
port=3333

after that i restart mariadb, service mysql restart

But in log port still on default port.
/usr/sbin/mysqld: ready for connections.
Version: '10.0.21-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server


Title: Re: Change default port mariadb in cwp?
Post by: Igor S. on November 17, 2015, 05:09:19 PM
Hello.

Try to add it to the /etc/my.cnf . That should be works.
also for the checking use the command;

Code: [Select]
netstat -nlp | grep -i mysql