[ 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
相关推荐
星辰_mya6 分钟前
彩云之上——[特殊字符]的架构师
java·后端·微服务·面试·架构
phltxy17 分钟前
Redis 主从复制
java·数据库·redis
Full Stack Developme18 分钟前
Spring-Core 解析
java·spring·rpc
摇滚侠43 分钟前
针对主键索引的 for update 操作有什么用
java
RainCity1 小时前
Java Swing 自定义组件库分享(六)
java·笔记·后端
xuanjiong1 小时前
DDD架构Repository仓储数据流转全链路详解:Domain与其他层的数据流转
java·系统架构
吴声子夜歌1 小时前
Java——类加载机制
java·开发语言·python
Xiacqi11 小时前
Java 中 String、StringBuffer、StringBuilder 的区别
java
Xiacqi11 小时前
Java 常用集合框架手册
java
笨蛋不要掉眼泪2 小时前
Java并发编程:线程的创建和运行
java·开发语言·jvm