当前位置:网站首页>Mac installs mysql5.7 through brew
Mac installs mysql5.7 through brew
2022-07-28 04:29:00 【laocaibulao】
1、 Inquire about mysql package
brew search mysql2、 install msyql5.7( In the previous step, confirm whether there is this package name )
brew install [email protected]Wait a while , After the installation is successful
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、 start-up mysql
/usr/local/opt/[email protected]/bin/mysql.server start4、 Sign in mysql
Log in from the command line mysql
/usr/local/opt/[email protected]/bin/mysql -uroot -padopt navacat Software Sign in mysql

边栏推荐
- Thoroughly understand the sharing function in wechat games
- Information system project manager (2022) - key content: Project Risk Management (11)
- RuntimeError: stack expects each tensor to be equal size, but got [8] at entry 0 and [2] at entry 2
- 【二、移动web网页开发】2D&3D转换与动画、移动端布局、响应式布局
- C语言初阶——循环语句(while,for,do while)
- Campus stray cat information recording and sharing applet source code
- Go grpc: a solution of connection reset by peer
- MATLB | location and constant volume IEEE30 node implementation of distributed energy
- Information system project manager (2022) - key content: organization level project management, process management, project set management (18)
- [performance optimization methodology series] III. core idea of performance optimization (2)
猜你喜欢

Information system project manager (2022) - key content: Project Risk Management (11)

Esp8266 WiFi module and mobile communication

重要的 SQL Server 函数 - 其他函数

openpose的一些个人理解
![[record of question brushing] 9. Number of palindromes](/img/01/74b0f40a29aaec487898a791cc8b79.png)
[record of question brushing] 9. Number of palindromes

【YOLOv5实战5】基于YOLOv5的交通标志识别系统-YOLOv5整合PyQt5

Campus stray cat information recording and sharing applet source code

Study of the Intel aria 10 Avalon mm DMA interface for PCI Express solutions User Guide

Study notes of Gu Yujia on July 27, 2022

RT thread changes the print serial port (add other functions on the basis of BSP)
随机推荐
Docking with Hang Seng express ― dolphin DB NSQ plug-in tutorial
Campus stray cat information recording and sharing applet source code
Reading of papers on "towards generative aspect based sentimental analysis"
RT thread changes the print serial port (add other functions on the basis of BSP)
【day03】流程控制语句
【sylar】框架篇-Chapter22-辅助模块
Go结构体
[record of question brushing] 9. Number of palindromes
【牛客】求1+2+3+...+n
网页源代码查看竟然有这么多方法!你都知道吗?
Esp8266 WiFi module and mobile communication
Simple summary of Modbus Protocol
Applet form-2
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]
Null security and exception
[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5
Transformer landing | next vit realizes the real-time landing of industrial tensorrt, surpassing RESNET and cswin
25 openwrt guest network add
[Niuke] find 1+2+3+... +n
Slice切片