alter user '用户名'@localhost IDENTIFIED WITH mysql_native_password by '你的密码';
mysql没有data目录
mysqld --initialize-insecure --user=mysql
alter user '用户名'@localhost IDENTIFIED WITH mysql_native_password by '你的密码';
mysql没有data目录
mysqld --initialize-insecure --user=mysql