0
1

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 3 years have passed since last update.

MacでMysql のインストール

Posted at

仕事で、ローカルPCにMqsqlをセットアップしたのでメモ

1.環境構築

##brew を使ってインストール、
##まずは最新に
% brew update 
 ****

## mysqlインストール
% brew install mysql
Updating Homebrew...
==> Installing dependencies for mysql: openssl@1.1 and protobuf
==> Installing mysql dependency: openssl@1.1

## サービススタート
% mysql.server start
Starting MySQL
.. SUCCESS! 

## セキュリティ設定
% mysql_secure_installation

## ログイン
% mysql -uroot -p
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.19 Homebrew



  1. Mysqlのクライアント設定

いろいろ調べた結果こいつがよさそうなので設定。

その他

99.Mysqlのコマンドメモ

参考
https://dev.mysql.com/doc/refman/8.0/en/create-user.html

コマンド 内容 備忘
T This This
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?