0
4

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.

macOS CatalinaでMySQL Workbenchが起動しなくなった時にすること

Last updated at Posted at 2020-04-21

macOS Catalinaにアップデートしてから、MySQL Workbenchが起動しなくなってしまって困ってたのが、やっと解決。

スタンドアロンで動くし、データベースを使う使わないに関わらず、設計・分析時のE-R図作成ツールとしても重宝してるので、使えないとかなり不便。

というわけで、コマンドラインで直接実行してみて以下のようなエラーが出て起動しない場合の処方箋。

$ /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench

your pythonpath points to a site-packages dir for python 3.x but you are running python 2.x! pythonpath is currently: "/applications/mysqlworkbench.app/contents/resources/libraries" you should `unset pythonpath` to fix this.

launchdからのアプリ起動時にPython2のライブラリを呼び出すように環境変数を設定するのが解なので、~/Library/LaunchAgents/jp.co.cyberz.forMySQLWorkbench.plist に以下のファイルを作って、ログアウト→ログインで解決。
もちろん無保証。

~/Library/LaunchAgents/jp.co.cyberz.forMySQLWorkbench.plist
<!--
===== No guarantee!! =====
NAKABAYASHI Toshifumi
http://www.cyberz.co.jp/index.php/staff/
===== No guarantee!! =====

(1)place this file
 ~/Library/LaunchAgents/jp.co.cyberz.forMySQLWorkbench.plist

(2) logout and login
-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>jp.co.cyberz.forMySQLWorkbench</string>
    <key>ProgramArguments</key>
    <array>
      <string>/bin/launchctl</string>
      <string>setenv</string>
      <string>PYTHONPATH</string>
      <string>/usr/local/lib/python2.7/site-packages/</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
  </dict>
</plist>

MySQL Workbenchはシステムデザインに最良のツールの一つ。
それにしても新しいサービスの設計考えるの楽しいよね

0
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?