在我的Slackware 13.37上安装各种库几个小时后,我设法启动了mysql-workbench(但我错了)。 从命令行启动时,我收到此警告:
bash-4.2# mysql-workbench
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
Traceback (most recent call last):
File "/usr/local/lib/mysql-workbench/modules/wb_admin_ssh.py", line 43, in <module>
import paramiko
ImportError: No module named paramiko
Warning! Can't use connect with timeout in paramiko None
Traceback (most recent call last):
File "/usr/local/lib/mysql-workbench/modules/wb_admin_grt.py", line 27, in <module>
import wb_admin_main
File "/usr/local/lib/mysql-workbench/modules/wb_admin_main.py", line 29, in <module>
import wb_admin_monitor
File "/usr/local/lib/mysql-workbench/modules/wb_admin_monitor.py", line 21, in <module>
import wba_monitor_be
File "/usr/local/lib/mysql-workbench/modules/wba_monitor_be.py", line 26, in <module>
import wb_admin_ssh
File "/usr/local/lib/mysql-workbench/modules/wb_admin_ssh.py", line 119, in <module>
log_warning(_this_file, 'Cannot use connect with timeout in paramiko version %s\n' % paramiko.__version__)
AttributeError: 'NoneType' object has no attribute '__version__'
** Message: Failed loading module '/usr/local/lib/mysql-workbench/modules/wb_admin_grt.py' (python)
Ready.
出现主程序窗口,当我尝试建立新连接时出现此错误:
Traceback (most recent call last):
File "/usr/local/share/mysql-workbench/sshtunnel.py", line 14, in <module>
import paramiko
ImportError: No module named paramiko
** (mysql-workbench-bin:2919): WARNING **: Tunnel manager could not be executed
并出现一个弹出窗口:
无法使用root用户在127.0.0.1:3306连接到MySQL 启动SSH隧道管理器
正确安装和配置了mysql和ssh:
bash-4.2# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.24 MySQL Community Server (GPL)
bash-4.2# ssh -v
OpenSSH_6.0p1, OpenSSL 0.9.8x 10 May 2012
请有人帮帮我!!!
答案 0 :(得分:2)
它告诉您python-paramiko模块丢失了。它是用于SSH连接的python模块;显然,MySQL Workbench的一个功能使用了它。获取slackware包here并安装它
sudo installpkg paramiko-1.7.6-noarch-1gds.txz
祝你好运!
答案 1 :(得分:1)
上面的答案很好。在64位系统上,您必须安装特定的32位库才能使工作台工作。例如,我必须在64位python旁边安装32位python。 常见错误还包括特定于分发的错误。 “/etc/mysql/my.cnf”未找到,我从/etc/my.cnf创建了一个软链接。还必须在/root/.mysql/workbench/log上创建一个文件夹,以便工作台启动