1
0

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.

【備忘録】mac版 mariaDBのいろいろ

Posted at

mariaDBのインストール

$brew install mariadb

mariaDBのアンインストール

$brew uninstall mariadb

注意!

brew uninstall mariadbだけでは、/usr/local/var/mysqlは残ったままなので、こちらは手動で消さないと変な設定が残ってしまうみたい。

mariaDBの起動

$mysql.server start

mariaDBの停止

$mysql.server stop

mariaDBをセーフモードで起動

$mysql.server start --skip-grant-tables

mariaDBにログイン

パスワード付きの場合

$mysql -u ユーザー名 -p
Enter password: 

データベース一覧表示

MariaDB [(none)]> show databases;

データベース選択

MariaDB [(none)]> use データベース名;
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?