一、下载安装MySql数据库
在MySql官网下载MySQL Community Server
可以选择默认配置安装数据库
二、查看本地MySQL
可以在本地“系统偏好设置”最下方,查看自己的MySql服务是否正常
也可以在终端输入查看,会提示你输入密码:
/usr/local/mysql/bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.2.0 MySQL Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or