安装成功就能进去mysql。输入密码
在win是没有默认密码的,但是腾讯云是有的
使用文件传输软件找到my.conf
添加 skip-grant-tables
service mysqld restart来重启
这种方法是跳过密码验证
然后修改密码
set password for 'username'@'host' = password('newpassword');
根据网友Marksmanbat评论,如果在执行该步骤的时候出现ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 错误。则执行下 flush privileges 命令,再执行该命令即可。
最后不要忘记将跳过验证的配置删掉
mysql -u root -p
输入刚才的密码就行