[ Spring ] Install MySQL on Unbuntu24

Reference Guidance

https://medium.com/@jasonrbodie/how-to-install-mysql-on-ubuntu-24-04-bfd11f73224b

Install or Uninstall MySQL
bash 复制代码
sudo apt update
sudo apt install mysql-server-8.0
sudo apt purge mysql-server-8.0
Start or Stop MySQL
bash 复制代码
sudo systemctl enable mysql.service
sudo systemctl start mysql.service
sudo systemctl stop mysql.service
sudo systemctl restart mysql.service
Initialize after First Installation
kotlin 复制代码
sudo mysql_secure_installation
Set Default Password
bash 复制代码
sudo mysql
SET GLOBAL validate_password.length=9;
SET GLOBAL validate_password.policy=LOW;
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY '123456789';
exit
mysql -u root -p
123456789
相关推荐
My is 李豆1 小时前
CentOS 7 安装 MySQL 详细教程
mysql·centos
Menior_2 小时前
【MySQL】基本查询
数据库·mysql
北城以北88884 小时前
数据库--MySQL数据管理
数据库·mysql
大白的编程日记.4 小时前
【MySQL】数据库的基本操作
数据库·mysql·oracle
清风徐来QCQ9 小时前
阿里云centos7-mysql的使用
mysql·阿里云·云计算
Rhys..9 小时前
Python&Flask 使用 DBUtils 创建通用连接池
开发语言·python·mysql
舒一笑9 小时前
为什么where=Version就是乐观锁了?
后端·mysql·程序员
小熊h10 小时前
MySQL集群高可用架构——组复制 (MGR)
linux·数据库·mysql
sunshine-sm10 小时前
CentOS Steam 9安装 MySQL 8
linux·运维·服务器·数据库·mysql·centos·centos stream