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

MySQLの外部接続の設定

Posted at

MySQLの外部接続の設定

PiZeroWにインストールしたMySQLのテーブルに同じネットワーク内にあるPCのMySQL Workbenchからアクセスするための設定メモ。

環境

Debian 9.8
mysql Ver 15.1 Distrib 10.1.37-MariaDB
MySQL Workbench 8.0

設定

下記のサイトと同じように進めようとすると、自分の環境ではディレクトリ構造が違ったので、メモを残しておきます。
MySQLの外部接続の設定

50-server.cnfを編集する。

root@raspberrypi:~# nano /etc/mysql/mariadb.conf.d/50-server.cnf

bind-addressの行をコメントアウトする。

#bind-address           = 127.0.0.1

MySQLを再起動

root@raspberrypi:~# sudo service mysql restart

以上

1
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
1
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?