mysql -u root -p
SHOW VARIABLES LIKE 'port';
show variables where variable_name in ('hostname','port');
[mysqld]
port = 3306
basedir = "C:/Program Files/MySQL/MySQL Server 8.0/"
datadir = "C:/ProgramData/MySQL/MySQL Server 8.0/Data/"
socket = "MySQL"
key_buffer_size = 16M
sudo netstat -tuln | grep mysql