查看mysql 默认端口号和修改端口号
先登录mysql
mysql -u root -p
再使用命令查看端口号
show global variables like 'port';
若要修改端口,编辑/etc/my.cnf文件(win
2020-01-27