MySQL 8.0 安装
2021/6/28 2:20:16
本文主要是介绍MySQL 8.0 安装,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
MySQL 8.0 安装
- 安装
在Ubuntu20.04上安装MySQL8.0及正确配置[已验证]
sudo apt-get update #更新源 sudo apt-get install mysql-server #安装 systemctl status mysql
- 远程登录
GRANT ALL ON *.* TO 'root'@'%' update user set host = '%' where user = 'root'; update user set host = '%' where user = 'root' and host='localhost'; GRANT ALL ON *.* TO 'root'@'%' flush privileges; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
- 新建用户
CREATE USER 'mycompany'@'%' IDENTIFIED BY 'mycompany'; ALTER USER 'mycompany'@'%' IDENTIFIED WITH mysql_native_password BY 'mycompany'; flush privileges;
-
MySQL8创建、删除用户和授权、消权
https://blog.csdn.net/qq_43278247/article/details/108883177 -
MySQL8允许远程连接
vi /etc/mysql/my.cnf 添加 [mysqld] port=3306 bind-address=0.0.0.0 service mysql restart
- 异常
-
mysql 8 设置允许远程连接 You are not allowed to create a user with GRANT
https://blog.csdn.net/mxskymx/article/details/88765072 -
Your password does not satisfy the current policy requirements
https://blog.csdn.net/zhanaolu4821/article/details/93622812 -
MySQL常用语句一、连接MySQL格式:mysql-h主机地址-u用户名-p用户密
https://blog.csdn.net/weixin_44797182/article/details/90639195
这篇关于MySQL 8.0 安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-10-23BinLog入门:新手必读的MySQL二进制日志指南
- 2024-10-23Binlog入门:MySQL数据库的日志管理指南
- 2024-10-22MySQL数据库入门教程:从安装到基本操作
- 2024-10-22MySQL读写分离入门教程:轻松实现数据库性能提升
- 2024-10-22MySQL分库分表入门教程
- 2024-10-22MySQL慢查询的诊断与优化指南
- 2024-10-22MySQL索引入门教程:快速理解与应用指南
- 2024-10-22MySQL基础入门教程:从安装到基本操作
- 2024-10-22MySQL数据库中的Binlog详解与操作教程
- 2024-10-12部署MySQL集群项目实战:新手入门教程