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.

ローカル環境でMysqlWorkbenchに接続する

Posted at

はじめに

自分用の備忘録として書きました.
ほぼ,MySQLWorkbench を Vagrant + VirtualBox 上の MySQL と繋ぐ方法と同じです.

接続方法

vagrant upした状態で,
$ vagrant ssh-config

Host homestead
  HostName 127.0.0.1
  User vagrant
  Port 2222
  …
  IdentityFile /Users/…/Private_key
  …

MySQLWorkbenchを起動して,
Database -> Connect Database
(もしくは、MySQL Connections 画面の + を押下(こちらからやると接続する際の設定が保存されるのでおすすめ))

項目 設定内容
Connection Name Connectionの+から追加した場合は名前をつける
Connection Method Standard TCP/IP over SSH
SSH Hostname 127.0.0.1:2222
SSH Username vagrant
SSH Key File 上記IdentityFileのパス
MySQL Hostname 127.0.0.1
MySQL Server Port 3306
Username root

OKを押下

参考文献

MySQLWorkbench を Vagrant + VirtualBox 上の MySQL と繋ぐ方法
vagrantでLaravelの開発環境構築

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?