当前位置:网站首页>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

边栏推荐
- C # cross thread refresh foreground UI
- Object locking in relational database transactions
- Reading of a unified generic framework for aspect based sentimental analysis
- Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)
- Detailed explanation of pl/sql parameters ("box model")
- Some personal understandings of openpose
- 【sylar】框架篇-Chapter15-Stream 模块
- 重要的 SQL Server 函数 - 数字函数
- glusterfs 文件未挂载,权限: r-s
- Ffmpeg common instructions
猜你喜欢

Bio annotation of emotion analysis aste triples extraction

idea启动项目mvn命令终端用不了法将“mvn”项识别为 cmdlet

H265/hevc noun explanation -- CTU, CTB, Cu, CB, Tu, PU, TB, Pb, LCU, slice, tile, chroma, luma, I frame, B frame, P frame

pytorch_ Lightning in lightning_ The output of hparams.yaml in logs is null

High number_ Chapter 4__ Curvilinear integral_ Exercise solution

VAE generation model (with VAE implementation MNIST code)

Password key hard coding check

Kotlin——函数

High number_ Chapter 4__ curvilinear integral
![[record of question brushing] 9. Number of palindromes](/img/01/74b0f40a29aaec487898a791cc8b79.png)
[record of question brushing] 9. Number of palindromes
随机推荐
[day03] process control statement
【实战】使用 Web Animations API 实现一个精确计时的时钟
《关于我写自定义cell这件事》
Space complexity calculation super full sorting!! (calculation of hand tearing complexity
mysql分区表改造
A little advice for students - how to build their own knowledge system?
What to do when encountering slow SQL? (next)
虚拟机类加载机制
ESP8266 WIFI 模块和手机通信
setup和hold timing分析不满足是解决方法
Cyber Nuwa, how to make digital people?
Remove screen cutting and copying restrictions
When import is introduced, sometimes there are braces, sometimes there are no braces. How should we understand this?
Information system project manager (2022) - key content: Project Risk Management (11)
About me writing a custom cell
【day03】流程控制语句
【sylar】框架篇-Chapter22-辅助模块
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]
Kingbasees Security Guide for Jincang database -- 5.2. data integrity protection
Fedformer MOE module