Ubuntu MYSQL Workbench安装后连接失败:
Your connection attempt failed for user ‘root’ to the MySQL server at
localhost:3306:
The connection is closed
终端出现:XDG_RUNTIME_DIR(/run/user/1000) is not owed by us (uid 0),but by uid 1000!(This could e.g. happen if you try to connect to a non-root PulseAudio as a root user,over the native protocol.Don’t do that.)
试试:
#export XDG_RUNTIME_DIR=/run/user/1000
#loginctl
#sudo apt-get install dbus-x11