特殊:Badtitle/NS100:MySqlWorkBench
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MySqlWorkBench }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/af | • {{#if: UbuntuHelp:MySqlWorkBench|Afrikaans| [[::MySqlWorkBench/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ar | • {{#if: UbuntuHelp:MySqlWorkBench|العربية| [[::MySqlWorkBench/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/az | • {{#if: UbuntuHelp:MySqlWorkBench|azərbaycanca| [[::MySqlWorkBench/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/bcc | • {{#if: UbuntuHelp:MySqlWorkBench|جهلسری بلوچی| [[::MySqlWorkBench/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/bg | • {{#if: UbuntuHelp:MySqlWorkBench|български| [[::MySqlWorkBench/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/br | • {{#if: UbuntuHelp:MySqlWorkBench|brezhoneg| [[::MySqlWorkBench/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ca | • {{#if: UbuntuHelp:MySqlWorkBench|català| [[::MySqlWorkBench/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/cs | • {{#if: UbuntuHelp:MySqlWorkBench|čeština| [[::MySqlWorkBench/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/de | • {{#if: UbuntuHelp:MySqlWorkBench|Deutsch| [[::MySqlWorkBench/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/el | • {{#if: UbuntuHelp:MySqlWorkBench|Ελληνικά| [[::MySqlWorkBench/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/es | • {{#if: UbuntuHelp:MySqlWorkBench|español| [[::MySqlWorkBench/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/fa | • {{#if: UbuntuHelp:MySqlWorkBench|فارسی| [[::MySqlWorkBench/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/fi | • {{#if: UbuntuHelp:MySqlWorkBench|suomi| [[::MySqlWorkBench/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/fr | • {{#if: UbuntuHelp:MySqlWorkBench|français| [[::MySqlWorkBench/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/gu | • {{#if: UbuntuHelp:MySqlWorkBench|ગુજરાતી| [[::MySqlWorkBench/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/he | • {{#if: UbuntuHelp:MySqlWorkBench|עברית| [[::MySqlWorkBench/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/hu | • {{#if: UbuntuHelp:MySqlWorkBench|magyar| [[::MySqlWorkBench/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/id | • {{#if: UbuntuHelp:MySqlWorkBench|Bahasa Indonesia| [[::MySqlWorkBench/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/it | • {{#if: UbuntuHelp:MySqlWorkBench|italiano| [[::MySqlWorkBench/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ja | • {{#if: UbuntuHelp:MySqlWorkBench|日本語| [[::MySqlWorkBench/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ko | • {{#if: UbuntuHelp:MySqlWorkBench|한국어| [[::MySqlWorkBench/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ksh | • {{#if: UbuntuHelp:MySqlWorkBench|Ripoarisch| [[::MySqlWorkBench/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/mr | • {{#if: UbuntuHelp:MySqlWorkBench|मराठी| [[::MySqlWorkBench/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ms | • {{#if: UbuntuHelp:MySqlWorkBench|Bahasa Melayu| [[::MySqlWorkBench/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/nl | • {{#if: UbuntuHelp:MySqlWorkBench|Nederlands| [[::MySqlWorkBench/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/no | • {{#if: UbuntuHelp:MySqlWorkBench|norsk| [[::MySqlWorkBench/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/oc | • {{#if: UbuntuHelp:MySqlWorkBench|occitan| [[::MySqlWorkBench/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/pl | • {{#if: UbuntuHelp:MySqlWorkBench|polski| [[::MySqlWorkBench/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/pt | • {{#if: UbuntuHelp:MySqlWorkBench|português| [[::MySqlWorkBench/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ro | • {{#if: UbuntuHelp:MySqlWorkBench|română| [[::MySqlWorkBench/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/ru | • {{#if: UbuntuHelp:MySqlWorkBench|русский| [[::MySqlWorkBench/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/si | • {{#if: UbuntuHelp:MySqlWorkBench|සිංහල| [[::MySqlWorkBench/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/sq | • {{#if: UbuntuHelp:MySqlWorkBench|shqip| [[::MySqlWorkBench/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/sr | • {{#if: UbuntuHelp:MySqlWorkBench|српски / srpski| [[::MySqlWorkBench/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/sv | • {{#if: UbuntuHelp:MySqlWorkBench|svenska| [[::MySqlWorkBench/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/th | • {{#if: UbuntuHelp:MySqlWorkBench|ไทย| [[::MySqlWorkBench/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/tr | • {{#if: UbuntuHelp:MySqlWorkBench|Türkçe| [[::MySqlWorkBench/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/vi | • {{#if: UbuntuHelp:MySqlWorkBench|Tiếng Việt| [[::MySqlWorkBench/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/yue | • {{#if: UbuntuHelp:MySqlWorkBench|粵語| [[::MySqlWorkBench/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/zh | • {{#if: UbuntuHelp:MySqlWorkBench|中文| [[::MySqlWorkBench/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/zh-hans | • {{#if: UbuntuHelp:MySqlWorkBench|中文(简体)| [[::MySqlWorkBench/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MySqlWorkBench | UbuntuHelp:MySqlWorkBench | {{#if: | :}}MySqlWorkBench}}/zh-hant | • {{#if: UbuntuHelp:MySqlWorkBench|中文(繁體)| [[::MySqlWorkBench/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MySqlWorkBench|:MySqlWorkBench|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MySqlWorkBench/zh | | {{#ifexist: MySqlWorkBench/zh | | {{#ifeq: {{#titleparts:MySqlWorkBench|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MySqlWorkBench|1|-1|}} | zh | | }}
As of this writing (March 2009), MySQL Workbench can be easily installed on Ubuntu/Gnome. Just download the binary .deb file from the MySQL web site for workbench (currently named mysql-workbench-oss-5.1.9-1_i386.deb), save it to your home directory. Then run:
sudo apt-get install liblua5.1-0 libzip1 sudo dpkg -i mysql-workbench-oss-5.1.9-1_i386.deb (adapt the name accordingly)
Then, you have MySQL Workbench listed under "Applications > Programming".
These are the previous notes left for history purpose: My notes on installing MySqlWorkBench. As far as I can tell, no one has started working on packaging it.
sudo apt-get install build-essential liblualib50-dev libglade2-dev libxml++2.6-dev libgtkmm-2.4-dev libpcre3-dev libmysqlclient15-dev uuid-dev libglut3-dev wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-gui-tools-5.0r5.tar.gz/from/http://mysql.mirrors.hoobly.com/ tar xzvf mysql-gui-tools-5.0r5.tar.gz cd mysql-gui-tools-5.0r5/mysql-gui-common ./configure --enable-grt --enable-canvas make make install cd ../mysql-workbench ./configure make make install mysql-workbench
It runs. it segfaulted on me in the fist 5 min of playing. so play on backup data. here is a line to dump all databases (except the system one) from one server:
mysql -u root -pfoo -Bqse 'SHOW dATABASES' | grep -Ev '^mysql$' | while read db ; do mysqldump -uroot -pfoo --databases $db ; done >all_databases.sql sudo apt-get install mysql-server-5.0 mysql -u root < all_databases.sql
from the mail list: The "extra requirements" for mysql-gui-common (when you want support for the Generic Canvas and the GRT) include uuid-dev package and several others, as described here: http://forge.mysql.com/wiki/Building_MySQL_GUI_Tools_on_Linux I then came across this post which depressed me at first: http://www.monkeyhelper.com/2006/07/mysql_workbench_and_ubuntu_dap.html However, I was able to get completed builds on everything using the SVN trunk revisions for my Ubuntu 6.06 LTS (Dapper) (on both my i386 and also on my AMD64/x86_64 host) by doing as follows:
sudo apt-get install subversion autoconf automake1.9 libtool svn co http://svn.mysql.com/svnpublic/mysql-gui-common/trunk mysql-gui-common cd mysql-gui-common sh ./autogen.sh --enable-grt --enable-canvas make sudo make install cd .. svn co http://svn.mysql.com/svnpublic/mysql-administrator/trunk mysql-administrator cd mysql-administrator sh ./autogen.sh make sudo make install cd .. sudo apt-get install libgtkhtml3.8-dev # Determine which revision of libgtkhtml ... $ ls /usr/lib/pkgconfig/libgtk* # Then include that revision in the --with-gtkthml clause below. $ svn co http://svn.mysql.com/svnpublic/mysql-query-browser/trunk mysql-query-browser $ cd mysql-query-browser $ sh ./autogen.sh --with-gtkhtml=libgtkhtml-3.8 $ make $ sudo make install $ cd .. svn co http://svn.mysql.com/svnpublic/mysql-workbench/trunk mysql-workbench cd mysql-workbench sh ./autogen.sh make sudo make install cd .. svn co http://svn.mysql.com/svnpublic/mysql-migration-tool/trunk/ mysql-migration-tool cd mysql-migration-tool # um.. what next doc? there is no ./autogen.sh or INSTALL.txt...
I'll clean this up as I go.
Some more notes (new user) I'm trying this on using the directions up top. While trying to compile the tools I get the following: g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/freetype2 -DDLOAD_JVM -I/usr/include/lua50 -I../../../library/base-library/include -I../../../library/utilities/include -I../../../library/utilities/shared_include -I../../../library/generic-runtime/include -I../../../library/generic-canvas/include -I../../../library/generic-canvas/ftgl/include -DENABLE_LUA_MODULES -I../include -MT GraphRenderer.lo -MD -MP -MF .deps/GraphRenderer.Tpo -c GraphRenderer.cpp -fPIC -DPIC -o .libs/GraphRenderer.o GraphRenderer.cpp: In member function 'void GraphRenderer::recalc_outer_rect()': GraphRenderer.cpp:432: error: 'INT_MAX' was not declared in this scope GraphRenderer.cpp:434: error: 'INT_MIN' was not declared in this scope It appears these used to be warnings, but that changed in g++-4.3. Compiling with g++4.2 I get other errors.