mysql-workbench-community 无法运行

mysql-workbench-community 无法运行

似乎除了 snap 之外的其他可能性已不复存在。

Oracle 版本产生其他错误。

所以我做了:

快速安装 mysql-workbench-community

当我运行它时我得到:

mkdir: cannot create directory ‘/run/user/0’: Permission denied
ln: failed to create symbolic link '/root/snap/mysql-workbench-community/7/.local/share/glib-2.0/schemas/org.gnome.desktop.a11y.applications.gschema.xml': File exists
ln: failed to create symbolic link '/root/snap/mysql-workbench-community/7/.local/share/glib-2.0/schemas/org.gnome.desktop.a11y.gschema.xml': File exists
ln: failed to create symbolic link '/root/snap/mysql-workbench-community/7/.local/share/glib-2.0/schemas/org.gnome.desktop.a11y.keyboard.gschema.xml': File exists
ln: failed to create symbolic link '/root/snap/mysql-workbench-community/7/.local/share/glib-2.0/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml': File exists
...
(mysql-workbench-bin:932077): Gtk-WARNING **: 07:46:26.995: cannot open display: localhost:12.0

Ubuntu 20.04.2 LTS

有人运行 mysql-workbench 时没有遇到这些错误吗?

答案1

看起来您正在尝试以 的身份安装 snap root。不要这样做。Snap 安装在典型的用户帐户下。

  1. 打开终端(如果尚未打开)

  2. 安装 snap:

    $ snap install mysql-workbench-community
    
  3. 让它安装,然后输出此消息:

    mysql-workbench-community 8.0.22 from Tonin Bolzan (tonybolzan) installed
    
  4. 确认它可以运行:

    MySQL 工作台

  5. 开始快照:

    MySQL Workbench 打开

    笔记:启动似乎非常慢(约 30 秒)。

我刚刚完成了所有步骤,以确认 snap 仍然可用且可运行。目前在执行此工作的机器上运行着 Ubuntu 20.04.1

相关内容