适用于OSX的MySQL Workbench。没有公用设施

时间:2013-11-26 07:47:51

标签: mysql macos mysql-workbench

我正在尝试在我的Mac上运行MySQL和Workbench。

Workbench安装得很好,但是当我尝试运行MySQL实用程序时,我收到一条错误消息“无法找到命令行MySQL实用程序”。

Can't locate utilities

但是当我进入下载页面时,Mac没有可用的版本。

Utilities doesn't exist

我已经使用.dmg安装程序安装了MySQL社区服务器。

请帮助,最近在Mac上安装MySQL工作台的任何人。

(P.S。 - 我正在运行OSX 10.9,如果重要的话)。

谢谢!

2 个答案:

答案 0 :(得分:16)

必须从源代码构建并安装

  1. Download (Linux - Generic)和 install 首先是Connector / Python

    $ tar -xvf mysql-connector-python-1.0.12.tar.gz
    $ cd mysql-connector-python-1.0.12
    $ sudo python setup.py install
    
  2. Download (平台无关)和 install MySQL实用程序

    $ tar -xvf mysql-utilities-1.3.5.tar.gz 
    $ cd mysql-utilities-1.3.5/
    $ python ./setup.py build
    $ sudo python ./setup.py install
    
  3. 瞧,你自己搞定了MySQL Utilities

    $ /usr/local/bin/mysqluc -e "help utilities"
    Launching console ...
    
    Utility           Description                                              
    ----------------  ---------------------------------------------------------
    mysqlauditadmin   audit log maintenance utility                            
    mysqlauditgrep    audit log search utility                                 
    mysqldbcompare    compare databases for consistency                        
    mysqldbcopy       copy databases from one server to another                
    mysqldbexport     export metadata and data from databases                  
    mysqldbimport     import metadata and data from files                      
    mysqldiff         compare object definitions among objects where the       
                      difference is how db1.obj1 differs from db2.obj2         
    mysqldiskusage    show disk usage for databases                            
    mysqlfailover     automatic replication health monitoring and failover     
    mysqlfrm          show CREATE TABLE from .frm files                        
    mysqlindexcheck   check for duplicate or redundant indexes                 
    mysqlmetagrep     search metadata                                          
    mysqlprocgrep     search process information                               
    mysqlreplicate    establish replication with a master                      
    mysqlrpladmin     administration utility for MySQL replication             
    mysqlrplcheck     check replication                                        
    mysqlrplshow      show slaves attached to a master                         
    mysqlserverclone  start another instance of a running server               
    mysqlserverinfo   show server information                                  
    mysqluserclone    clone a MySQL user account to one or more new users
    

答案 1 :(得分:1)

这些实用程序现在可用于Mac OS 10.6(以前的GA版本)到10.9:

http://dev.mysql.com/downloads/utilities/