国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

mac brew安裝mysql5.7并配置環(huán)境

這篇具有很好參考價(jià)值的文章主要介紹了mac brew安裝mysql5.7并配置環(huán)境。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

1.brew install mysql@5.7

2.

? echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.zshrc
? export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib"
? export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include"

3.brew services start mysql@5.7

4.mysql_secure_installation

輸入以上命令后,出現(xiàn)如下:

Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
// 提示是否設(shè)置密碼
Press y|Y for Yes, any other key for No: y
// 提示選擇密碼強(qiáng)度等級(jí)
There are three levels of password validation policy:

LOW ? ?Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary ? ? ? ? ? ? ? ? ?file

Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0
Please set the password for root here.
// 按照所選的密碼強(qiáng)度要求設(shè)定密碼
New password:

Re-enter new password:
// 提示密碼強(qiáng)度50,不符合要求重新設(shè)置密碼
Estimated strength of the password: 50
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
// 提示刪除默認(rèn)無(wú)密碼用戶
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.


Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
// 提示禁止遠(yuǎn)程root登錄
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.

By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

// 提示刪除默認(rèn)自帶的test數(shù)據(jù)庫(kù)
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
?- Dropping test database...
Success.

?- Removing privileges on test database...
Success.

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
// 提示是否重新加載privilege tables
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!
?

5.brew services start mysql和mysql.server start區(qū)別文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-616784.html

# 后臺(tái)啟動(dòng)
brew service start mysql

# 前臺(tái)啟動(dòng),關(guān)閉控制臺(tái),服務(wù)停止
mysql.server start

到了這里,關(guān)于mac brew安裝mysql5.7并配置環(huán)境的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Mac 使用 brew 安裝 mysql

    Mac 使用 brew 安裝 mysql

    最近需要用到 MySQL 來(lái)開(kāi)發(fā)項(xiàng)目,所以在 Mac 配置了下 MySQL 的環(huán)境。 1、使用 brew install mysql 安裝 MySQL 安裝完畢后會(huì)有以下提示信息,告訴我們初始安裝好后 root 賬戶沒(méi)有密碼,只需要輸入 mysql -uroot就能連接運(yùn)行MySQL。 那咱們輸入 mysql -uroot命令來(lái)連接一下試試,誒,好像不管

    2024年02月15日
    瀏覽(14)
  • MySQL 2 環(huán)境搭建(MySQL5.7.43和8.0.34的下載;8.0.34的安裝、配置教程 )

    MySQL 2 環(huán)境搭建(MySQL5.7.43和8.0.34的下載;8.0.34的安裝、配置教程 )

    目錄 MySQL的下載、8.0.34的安裝及配置? 1 MySQL版本介紹? 2?MySQL 下載 1. 下載地址 2. 打開(kāi)官網(wǎng),點(diǎn)擊DOWNLOADS ?編輯 3. 點(diǎn)擊 MySQL Community Server 4. 在General Availability(GA) Releases中選擇適合的版本 5.下載8.0.34和5.7.43版本 3 MySQL8.0 版本的安裝 步驟1:雙擊下載的mysql-installer-community-8.0.34

    2024年02月03日
    瀏覽(27)
  • Mac安裝brew、mysql、redis

    Mac安裝brew、mysql、redis

    第一步:執(zhí)行. 第二步:輸入開(kāi)機(jī)密碼 第三步:回車?yán)^續(xù)。等待安裝完成 第四步:根據(jù)提示執(zhí)行以下兩條命令,配置環(huán)境變量 第五步: 驗(yàn)證brew安裝成功 可能因?yàn)榫W(wǎng)絡(luò)原因,頻繁失敗,網(wǎng)絡(luò)正常的話約十分鐘可以完成(有梯子的話會(huì)快點(diǎn))。 第一步:mysql官網(wǎng)下載mac版本的

    2024年02月10日
    瀏覽(19)
  • Mac下使用Homebrew安裝MySQL5.7

    Mac下使用Homebrew安裝MySQL5.7

    mac下如何安裝homebrew MacOS安裝Homebrew與Oh-My-Zsh 如果執(zhí)行報(bào)錯(cuò) zsh: command not found: mysql_secure_installation。執(zhí)行 MySQL 5.7的Homebrew安裝 - MacOS macOS brew安裝mysql和安裝問(wèn)題解決 關(guān)于zsh: command not found: mysql問(wèn)題解決

    2024年02月11日
    瀏覽(18)
  • Linux環(huán)境安裝MySQL5.7教程

    在etc下新建配置文件my.cnf,并在該文件內(nèi)添加以下配置 安裝和初始化 etc/profile/ 獲得初始密碼 修改密碼 添加遠(yuǎn)程訪問(wèn)權(quán)限 重啟生效 為了在任何目錄下可以登錄mysql 無(wú)yum: 用apt-get代替yum 或者 即先用apt-get安裝yum,后續(xù)就可以使用yum了 參考自: https://www.cnblogs.com/dadadechengzi

    2024年01月16日
    瀏覽(26)
  • 【開(kāi)發(fā)環(huán)境】macOS中包管理器brew的使用入門(mén)

    【開(kāi)發(fā)環(huán)境】macOS中包管理器brew的使用入門(mén)

    ?官網(wǎng):Homebrew — The Missing Package Manager for macOS (or Linux) 所以,它是個(gè)包管理器,就像Linux系統(tǒng)的yum、apt-get神器,brew是MacOS系統(tǒng)中的神器??梢酝ㄟ^(guò)brew來(lái)安裝大部分軟件。 安裝的軟件都來(lái)源于官網(wǎng),安全。 brew會(huì)管理軟件的依賴和庫(kù),在不造成冗余的同時(shí),大大縮短軟件包的

    2024年01月25日
    瀏覽(16)
  • 在MacOS 上 使用brew 部署C++ gcc編譯環(huán)境

    在MacOS 上 使用brew 部署C++ gcc編譯環(huán)境

    brew包管理工具能夠幫助我們更好的管理電腦中的各種工具 再嘗試了很多次下載之后發(fā)現(xiàn),需要使用到國(guó)內(nèi)的包進(jìn)行下載安裝,不要使用官網(wǎng)的鏈接進(jìn)行直接下載,很大可能會(huì)導(dǎo)致下載失敗 按照提示,需要重啟Terminal或者輸入 輸入后提示 原因可能是沒(méi)有安裝xcode–select 按照提

    2024年02月05日
    瀏覽(24)
  • MacOS 安裝Brew

    MacOS 安裝Brew

    brew 是 Mac 下的一個(gè)包管理工具,作用類似于 centos 下的 yum。 brew 可以用一條命令,就可以在mac上安裝、卸載、更新各種軟件包,因?yàn)閎rew的使用方便,如今已成為使用mac電腦的程序員的必備工具。 本身它就是一個(gè)用ruby寫(xiě)的軟件,軟件是托管在github上的,所以下載的時(shí)候可能會(huì)

    2024年02月16日
    瀏覽(20)
  • macOS 下安裝brew、nvm

    1、brew: brew -v 查看版本 示例: 安裝jdk 查詢可用的jdk版本 安裝制定版本jdk 更換源:例如清華源 2、nvm brew install nvm? 查詢是否已經(jīng)安裝: nvm --version 錯(cuò)誤:?zsh: command not found: nvm 解決:

    2024年02月16日
    瀏覽(26)
  • MySQL5.7安裝和配置教程(超詳細(xì))

    MySQL5.7安裝和配置教程(超詳細(xì))

    ???????????????? 1.1、百度網(wǎng)盤(pán)鏈接下載 ???????????????????????? 鏈接:https://pan.baidu.com/s/1WGpGSX2_onAG7Vyi1K0Z7w?pwd=1234? ????????????????????????提取碼:1234 ? ? ? ? ? ? ? ? 1.2、官網(wǎng)在線下載 ????????????????????????MySQL官網(wǎng):htt

    2024年02月17日
    瀏覽(26)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包