View & change the default password MySQL

 cd /etc/mysql 

 sudo vim debian.cnf 

copy  user and  password 

 mysql -u(user) -p(password) 

into mysql interface

user mysql
update mysql.user set authentication_string=password('mysql') where user='root'
flush privileges
quit

 

Guess you like

Origin www.cnblogs.com/jrri/p/11075026.html