[ Java ] Install MySQL on Mac

install mysql
bash 复制代码
brew install mysql
start mysql server
bash 复制代码
mysql.server start
stop mysql server
bash 复制代码
mysql.server stop
enable auto launch as service
bash 复制代码
brew services start mysql
disable auto launch
bash 复制代码
brew services stop mysql
configure mysql

you can set root password in this step

bash 复制代码
mysql_secure_installation
connect mysql

test connection by JetBrains DataGrip in this url

bash 复制代码
jdbc:mysql://localhost:3306/?characterEncoding=utf-8&serverTimezone=UTC
相关推荐
bqq19861026几秒前
MySQL 8与MySQL 5.7的主要区别
数据库·mysql
yaoxin5211233 分钟前
406. Java 文件操作基础 - 字符与二进制流
java·开发语言·python
happymaker062611 分钟前
SpringBoot学习日记——DAY02(SpringBoot整合Swagger3)
java·spring boot·学习
阿坤带你走近大数据22 分钟前
Java中的JVM、类加载记住、多线程、性能优化的概念
java·jvm·性能优化
chushiyunen30 分钟前
r树索引、mysql对r树的支持
数据库·mysql
鱼鳞_33 分钟前
苍穹外卖-Day04
java
未若君雅裁36 分钟前
Spring Boot 自动配置原理与常用注解
java·spring boot·后端
罗超驿1 小时前
16.深入理解数据库事务:从转账场景剖析ACID四大特性与回滚(Rollback)机制
数据库·mysql
Klong.k1 小时前
如何避免Bean的线程安全问题
java·开发语言
basketball6161 小时前
C++ 单例模式完全指南:从饿汉式到现代 C++ 的最佳实践
java·c++·单例模式