Excerpt |
---|
The default port that MySQL database server is running under Linux and Unix is 3306/TCP. |
...
In order to change the default MySQL/MariaDB database port in Linux, open MySQL server configuration file for editing by issuing the below command. |
Code Block | ||
---|---|---|
| ||
# vi /etc/my.cnf.d/server.cnf [On CentOS/RHEL] # vi /etc/mysql/mariadb.conf.d/50-server.cnf [On Debian/Ubuntu] |
...