It's because mysql default root user cant login with password and is set to auth_socket. To change this behavior you should connect to mysql if you on linux with this command: sudo mysql -u root
and run this command to enable password login: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…