mysql修改密码和端口

mysql> use mysql;  
mysql> update mysql.user set authentication_string=password('123456') where user='root';
mysql> flush privileges;  

C:\ProgramData\MySQL\MySQL Server 5.7\my.ini

The TCP/IP Port the MySQL Server will listen on

port=3306

你可能感兴趣的:(mysql修改密码和端口)