用这个命令进入mysql
sudo mysql

在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';

exit回到终端命令行,输入:
sudo mysql_secure_installation

输入刚才的密码即可。
出现的问题都选n.

- 【五期李伟平】CCF-A(AAAI'21)Game of Gradients: Mitigating Irrelevant Clients in Federated Learning
- 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
- Python中出现"No module named 'requests'"的图文解决办法
- web项目启动时dubbo报错: No provider available for the service com.davidhu.shopguide.api.service.UserEventService from the url zookeeper ://localhost:2181/org.apache.du
- 在Windows上出现"localhost拒绝连接”的问题
- ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
- mybatis提示com.microsoft.sqlserver.jdbc.SQLServerException: 列名 'xxxx' 无效。
- Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
- 初中英语优秀范文100篇-055My Father's Job-我父亲的工作
本栏目推荐文章