当前位置:网站首页>mac通过brew方式安装mysql5.7
mac通过brew方式安装mysql5.7
2022-07-13 19:21:00 【laocaibulao】
1、查询mysql包
brew search mysql2、安装msyql5.7(上一步确认是否有这个包名称)
brew install [email protected]等一段时间后,安装成功后显示
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
[email protected] is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have [email protected] first in your PATH, run:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/boolean/.bash_profile
For compilers to find [email protected] you may need to set:
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
For pkg-config to find [email protected] you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
To restart [email protected] after an upgrade:
brew services restart [email protected]
Or, if you don't want/need a background service you can just run:
/usr/local/opt/[email protected]/bin/mysqld_safe --datadir=/usr/local/var/mysql
==> Summary
/usr/local/Cellar/[email protected]/5.7.37: 320 files, 234.2MB
==> Running `brew cleanup [email protected]`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).3、启动mysql
/usr/local/opt/[email protected]/bin/mysql.server start4、登录mysql
通过命令行登录mysql
/usr/local/opt/[email protected]/bin/mysql -uroot -p通过navacat软件 登录mysql

边栏推荐
- dtcloud的消息机制(一)
- 有名管道原理及详解(非常实用)
- Message Mechanism of dtcloud (1)
- 常用邮箱访问协议
- Shutter renderflex overflowed by pixels on the bottom keyboard pop-up warning exception
- JMeter 21 day clock in day01
- Hardware iic+dma operation sharing based on stm32f405
- Emqx cloud update: add redis and JWT external authentication authorization
- odoo manifest.py文件详解
- Message mechanism of dtcloud (3)
猜你喜欢

LeetCode 2155. All subscripts with the highest score in the group

strlen简介,和sizeof的区别

Build your own website (21)

ODOO form视图详解(一)

Hcip first day notes

dtcloud Qweb实战之看板视图

音视频学习(六)——PCM音频基础

YOLOv5使用时遇到的问题

Judge whether two binary trees are isomorphic, and three implementation methods (recursion, queue, stack)

ADB环境配置
随机推荐
HCIP第二个实验
模拟实现库函数strcpy,对strcpy的进一步理解(深刻理解重叠问题,防止内存与源重叠)
PG operation and maintenance -- service start and stop
渲染流程,代码是如何变为页面的(二)
Extract the language you need from the multilingual data set and save it as CSV
wait 和 waitpid 的区别
jupyterlab 安装
Build your own website (21)
Interprocess communication (very practical)
The computer regularly clears wechat data
c语言 寄存器技巧 (struct 和 union)
天田AMADA数控折弯机触摸屏维修RGM21003主机电路板维修
Shell script learning record
用 AnimatedBuilder 分离组件和动画,实现动效复用
[canvas] canvas and SVG are basically used
ADB环境配置
Common mailbox access protocols
程序员转型项目管理?考个PMP?
spark期末考试选择题精选
为什么越来越多的人要考PMP项目管理认证?