4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrewでインストールしたmariadbをアンインストールする

Posted at

こんばんは :whale2:
今日は homebrew でインストールした mariadb をアンインストールしたいと思います。

環境

環境
# コンピュータ
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.11.3
BuildVersion:	15D21

事前確認

# 稼働状況確認
$ mysql.server status
 SUCCESS! MySQL running (7525)


# 設定ファイルの場所
$ ls /usr/local/etc/my.cnf
$ ls /usr/local/etc/my.cnf.d/


# データファイルの場所
$ mysql -uroot -proot -e'SHOW VARIABLES LIKE "datadir"'
+---------------+-----------------------+
| Variable_name | Value                 |
+---------------+-----------------------+
| datadir       | /usr/local/var/mysql/ |
+---------------+-----------------------+

削除

# サーバ停止
$ mysql.server stop
Shutting down MySQL
.. SUCCESS!


# mariadb 削除
$ brew remove mariadb
Uninstalling /usr/local/Cellar/mariadb/10.1.12... (565 files, 131.5M)


# 設定ファイル削除
$ rm -rf /usr/local/etc/my.cnf*


# データファイル削除
$ rm -rf /usr/local/var/mysql

おわりです :beer:

参考と注釈

(とくになし)

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?