{"id":11312,"date":"2020-08-12T13:52:35","date_gmt":"2020-08-12T16:52:35","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=11312"},"modified":"2025-07-17T16:53:25","modified_gmt":"2025-07-17T19:53:25","slug":"how-to-connect-elipse-e3-to-a-mysql-database","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/","title":{"rendered":"How to connect Elipse E3 to a MySQL database."},"content":{"rendered":"<p>In this article, we will show you how to connect the Elipse E3 to a MySQL database.<\/p>\n<p><span data-teams=\"true\"><strong>IMPORTANT:<\/strong> Since <strong>version 6.5<\/strong>, Elipse E3 has a native connection with the MySQL Server database.<br \/>\nThe minimum MySQL version compatible with this feature is <strong>8.0.11.<\/strong><\/span><\/p>\n<p>For <strong>versions prior to 6.5<\/strong>, check out the procedure below:<\/p>\n<p>Since this database is not native to the Elipse platform, the connection will be established via ODBC driver.<\/p>\n<p>&nbsp;<\/p>\n<h2>Requirements:<\/h2>\n<p>First of all, in order to connect MySQL to Elipse E3, you will need the following software:<\/p>\n<ul>\n<li><strong>Elipse E3<\/strong>: In this example, we use version 5.1.195.<\/li>\n<li><strong>MySQL Server (local or on the network)<\/strong>: In this example, we use version 8.0.21.<\/li>\n<li><a href=\"https:\/\/support.microsoft.com\/pt-br\/help\/2977003\/the-latest-supported-visual-c-downloads\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Visual Studio 2019 Redistribu\u00edvel x86<\/strong><\/a>: required for Connector\/ODBC.<\/li>\n<li><strong><a href=\"https:\/\/dev.mysql.com\/downloads\/connector\/odbc\/\" target=\"_blank\" rel=\"noopener noreferrer\">Connector\/ODBC (32 bits) do MySQL<\/a><\/strong>.<\/li>\n<\/ul>\n<h3><\/h3>\n<h2>Introduction:<\/h2>\n<p>Firstly, install the 32-bit version (x86) of Visual Studio 2019 Redistributable.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-11203\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/1_11168EN.png\" alt=\"\" width=\"753\" height=\"309\" \/><\/p>\n<p>Then, install the 32-bit version of MySQL&#8217;s Connector\/ODBC.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-11204\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/2_11168EN.png\" alt=\"\" width=\"982\" height=\"890\" \/><\/p>\n<h3><\/h3>\n<h2>Establishing communication:<\/h2>\n<p>At version 8.0.21, the connection string is:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Provider=MSDASQL;Driver={MySQL ODBC 8.0 ANSI Driver}; Server=IP_SERVIDOR; Database=BANCO; User=USUARIO;Password=SENHA;Option=3;\r\n<\/pre>\n<p>Or<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Provider=MSDASQL;Driver={MySQL ODBC 8.0 Unicode Driver}; Server=IP_SERVIDOR; Database=BANCO; User=USUARIO;Password=SENHA;Option=3;\r\n<\/pre>\n<p>You can check the driver at the OBDC&#8217;s datasources for Windows (32 bits).<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-11205\" src=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/3_11168EN.png\" alt=\"\" width=\"426\" height=\"204\" \/><\/p>\n<p>If you&#8217;re using a different version, check the connection string in the following link:<\/p>\n<p><a href=\"https:\/\/www.connectionstrings.com\/mysql\/\">https:\/\/www.connectionstrings.com\/mysql\/<\/a><\/p>\n<p>With the connection string, you can now assemble the script that will establish the connection and retrieve the data.<\/p>\n<p>Since this communication happens via ODBC, it will happen entirely via scripts.<\/p>\n<p>At the attached example, we will check the first five instances in the world table; this table is installed alongside MySQL.<\/p>\n<h3><\/h3>\n<h2>Script Structure:<\/h2>\n<ul>\n<li>The connection to the database is established with the previously identified connection string.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">'Cria conex\u00e3o com o banco de dados\r\nSet db_con = CreateObject(\"ADODB.Connection\")\r\n\r\nstr_con = \"Provider=MSDASQL;Driver={MySQL ODBC 8.0 ANSI Driver};Server=\"&Screen.Item(\"spIP\").Value&\";Database=world;User=\"&Screen.Item(\"spUsuario\").Value&\";Password=\"&Screen.Item(\"spSenha\").Value&\";Option=3;\"\r\n'ou Driver={MySQL ODBC 8.0 Unicode Driver}\r\ndb_con.Open str_con 'Abre a conexao ODBC<\/pre>\n<ul>\n<li>After the connection has been established, you will need to create a query that will return the desired values.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Set rs = CreateObject(\"ADODB.Recordset\")\r\nsqlstr = \"SELECT * FROM city\" 'SQL da consulta. Buscando todos os registros da tabela City\r\nrs.ActiveConnection = db_con\r\nrs.Open sqlstr, db_con 'Executa a consulta definia na variavel sqlstr\r\nrs.MoveFirst 'Vai para o primeiro registro<\/pre>\n<ul>\n<li>From this moment on, the data will return at points where the <em>fields<\/em> variable starts with 0. Example:<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Msgbox rs.fields(0)\r\nFor i = 0 to 4\r\n                For j= 0 to 4\r\n                    Execute \"Screen.Item(\"&Chr(34)&\"Texto\"&((j+1)+(5*i))&Chr(34)&\").Value = rs.fields(\"&j&\")\" 'Percorre todos os campos e preenche os displays da tela\r\nNext\r\n                rs.MoveNext 'Passa para o proximo registro\r\nNext<\/pre>\n<p><span style=\"text-decoration: underline;\"><strong>Attention<\/strong><\/span>: Don&#8217;t use the <em>root<\/em> to establish this connection.<\/p>\n<h3><\/h3>\n<h3>Attachment:<\/h3>\n<p><a href=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/MySql_ODBC_EN.zip\">MySql_ODBC_EN<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to connect the Elipse E3 to a MySQL database. IMPORTANT: Since version 6.5, Elipse E3 has a native connection with the MySQL&hellip;<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[583],"tags":[1066,1064,1065],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to connect the Elipse E3 to a MySQL database.<\/title>\n<meta name=\"description\" content=\"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to connect the Elipse E3 to a MySQL database.\" \/>\n<meta property=\"og:description\" content=\"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T16:52:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-17T19:53:25+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/1_11168EN.png\" \/>\n<meta name=\"author\" content=\"Daniel Link\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Link\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\"},\"author\":{\"name\":\"Daniel Link\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058\"},\"headline\":\"How to connect Elipse E3 to a MySQL database.\",\"datePublished\":\"2020-08-12T16:52:35+00:00\",\"dateModified\":\"2025-07-17T19:53:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\"},\"wordCount\":311,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"keywords\":[\"Database\",\"MySQL\",\"ODBC\"],\"articleSection\":[\"DataBases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\",\"name\":\"How to connect the Elipse E3 to a MySQL database.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2020-08-12T16:52:35+00:00\",\"dateModified\":\"2025-07-17T19:53:25+00:00\",\"description\":\"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to connect Elipse E3 to a MySQL database.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058\",\"name\":\"Daniel Link\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g\",\"caption\":\"Daniel Link\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/link\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to connect the Elipse E3 to a MySQL database.","description":"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/","og_locale":"en_US","og_type":"article","og_title":"How to connect the Elipse E3 to a MySQL database.","og_description":"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.","og_url":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2020-08-12T16:52:35+00:00","article_modified_time":"2025-07-17T19:53:25+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/07\/1_11168EN.png"}],"author":"Daniel Link","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Daniel Link","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/"},"author":{"name":"Daniel Link","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058"},"headline":"How to connect Elipse E3 to a MySQL database.","datePublished":"2020-08-12T16:52:35+00:00","dateModified":"2025-07-17T19:53:25+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/"},"wordCount":311,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"keywords":["Database","MySQL","ODBC"],"articleSection":["DataBases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/","url":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/","name":"How to connect the Elipse E3 to a MySQL database.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2020-08-12T16:52:35+00:00","dateModified":"2025-07-17T19:53:25+00:00","description":"This article shows how to connect the Elipse E3 to a MySQL database. Since this database is not native to the Elipse platform, we will use the ODBC driver.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-connect-elipse-e3-to-a-mysql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"How to connect Elipse E3 to a MySQL database."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/c00158385fccb29f5ff088542d1a1058","name":"Daniel Link","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f549886b43447af6d53385f4ed7d575f?s=96&d=mm&r=g","caption":"Daniel Link"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/link\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11312"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=11312"}],"version-history":[{"count":9,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11312\/revisions"}],"predecessor-version":[{"id":17185,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11312\/revisions\/17185"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=11312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=11312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=11312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}