[ 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
相关推荐
慧都小妮子4 小时前
不想频繁改 PLC?用 DeviceXPlorer Lua 脚本把产线业务逻辑放到 OPC Server 层
java·junit·lua·takebishi·dxpserver·设备数据采集软件·opc server
凭X而动4 小时前
MySQL 5.7.44 部署
数据库·mysql·部署
迦蓝叶4 小时前
【开源自荐】JAiRouter:一个轻量级 AI 模型服务网关的开源实践
java·人工智能·spring·开源·llm-gateway·mass
Adorable老犀牛4 小时前
MySQL Server Exporter:Prometheus 监控 MySQL/MariaDB 指南
mysql·prometheus·mariadb
swordbob4 小时前
缓存延迟双删的两种策略
java·缓存
凡人叶枫4 小时前
Effective C++ 条款08:别让异常逃离析构函数
java·linux·数据库·c++·嵌入式开发
云烟成雨TD4 小时前
Agent Scope Java 2.x 系列【4】模型层
java·人工智能·agent
云烟成雨TD5 小时前
Agent Scope Java 2.x 系列【5】智能体抽象层
java·人工智能·agent
阿伟AI说5 小时前
Codex 桌面版接入国产模型系列二:Codex++
java·开源软件·ai编程·腾讯云ai代码助手