日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mac系统装mysql还是mariadb_Mac上安装mariadb

發布時間:2025/3/21 数据库 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mac系统装mysql还是mariadb_Mac上安装mariadb 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、查看mariadb包信息

# brew info mariadb

mariadb: stable 10.2.6 (bottled)

Drop-in replacement for MySQL

https://mariadb.org/

Conflicts with: mariadb-connector-c, mysql, mysql-cluster, mysql-connector-c, mytop, percona-server

/usr/local/Cellar/mariadb/10.1.23 (594 files, 155.5MB) *

Poured from bottle on 2017-05-14 at 17:49:24

From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mariadb.rb

==> Dependencies

Build: cmake ?

Required: openssl ?

==> Options

--with-archive-storage-engine

Compile with the ARCHIVE storage engine enabled

--with-bench

Keep benchmark app when installing

--with-blackhole-storage-engine

Compile with the BLACKHOLE storage engine enabled

--with-embedded

Build the embedded server

--with-libedit

Compile with editline wrapper instead of readline

--with-local-infile

Build with local infile loading support

--with-test

Keep test when installing

==> Caveats

A "/etc/my.cnf" from another install may interfere with a Homebrew-built

server starting up correctly.

MySQL is configured to only allow connections from localhost by default

To connect:

mysql -uroot

To have launchd start mariadb now and restart at login:

brew services start mariadb

Or, if you don't want/need a background service you can just run:

mysql.server start

2、安裝mariadb

# brew install mariadb

3、運行Installer

# unset TMPDIR

# cd /usr/local/Cellar/mariadb/10.1.23/

# mysql_install_db

4、啟動服務(包信息中有說明如何啟動)

后臺啟動,并且開機自啟動

# brew services start mariadb

==> Tapping homebrew/services

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...

remote: Counting objects: 10, done.

remote: Compressing objects: 100% (7/7), done.

remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0

Unpacking objects: 100% (10/10), done.

Tapped 0 formulae (37 files, 51.1KB)

==> Successfully started `mariadb` (label: homebrew.mxcl.mariadb)

前臺啟動

# mysql.server start

Starting MySQL

.170529 21:36:17 mysqld_safe Logging to '/usr/local/var/mysql/bogon.err'.

170529 21:36:17 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql

SUCCESS!

5、Secure the Installation

# mysql_secure_installation

6、查看版本

# mysql -uroot -p

MariaDB [(none)]> select @@version;

+-----------------+

| @@version |

+-----------------+

| 10.1.23-MariaDB |

+-----------------+

1 row in set (0.00 sec)

總結

以上是生活随笔為你收集整理的mac系统装mysql还是mariadb_Mac上安装mariadb的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。