📜  将MYSQL配置为在另一个端口号上运行,而不是默认端口3306 ubuntu linux - SQL代码示例

📅  最后修改于: 2022-03-11 15:05:24.510000             🧑  作者: Mango

代码示例1
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

port 3306 =>3309 /*change the port number from 3306 to any of choice*/

service mysql restart

sudo mysql

select @@port /*to identify the new port running on*/

https://www.linkedin.com/pulse/how-change-mysql-default-port-3306-secure-piyush-diwakar/?trk=public_profile_article_view