<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TableToGeodatabase using MySQL input in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/tabletogeodatabase-using-mysql-input/m-p/575152#M45068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey did you ever resolve this? I'd prefer not to have to use python-mysqldb for this but the process to set up an OLE DB Connection is incredibly onerous and not exposed to ArcPy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 03:01:01 GMT</pubDate>
    <dc:creator>RichardLaw2</dc:creator>
    <dc:date>2015-04-10T03:01:01Z</dc:date>
    <item>
      <title>TableToGeodatabase using MySQL input</title>
      <link>https://community.esri.com/t5/python-questions/tabletogeodatabase-using-mysql-input/m-p/575151#M45067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to convert a MySQL table to a personal geodatabase table using TableToGeodatabase and MySQLdb (to connect to the db). I'm able to successfully connect to the database and query it, I am just not able to correctly select the table to be converted. Although I am using an .mdb instead of a .gdb, this does not throw an error. The only error I receive is "ERROR 000735: Input Table: Value is required"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import system modules
import arcpy
from arcpy import env
 
import MySQLdb
import sys

# open a database connection
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; connection = MySQLdb.connect(host="host.org", user="abcde", passwd="12345", db="waterdb")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if connection.open:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "open"

# Set environment settings
# I believe this should reference the MySQL database but I don't know how
env.workspace = "" 
 
# the table I want to convert
table = arcpy.ListTables(["vwComboFlows"]) 

# Set local variables
outLocation = "C:/output/output.mdb"

try: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Execute TableToGeodatabase
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Importing tables to mdb: " + outLocation
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableToGeodatabase_conversion(table, outLocation)
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 18:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletogeodatabase-using-mysql-input/m-p/575151#M45067</guid>
      <dc:creator>DavidReeves</dc:creator>
      <dc:date>2013-02-07T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: TableToGeodatabase using MySQL input</title>
      <link>https://community.esri.com/t5/python-questions/tabletogeodatabase-using-mysql-input/m-p/575152#M45068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey did you ever resolve this? I'd prefer not to have to use python-mysqldb for this but the process to set up an OLE DB Connection is incredibly onerous and not exposed to ArcPy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 03:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletogeodatabase-using-mysql-input/m-p/575152#M45068</guid>
      <dc:creator>RichardLaw2</dc:creator>
      <dc:date>2015-04-10T03:01:01Z</dc:date>
    </item>
  </channel>
</rss>

