title: Upload and fetch MySQL polygons to Python
body: <p>I have to store some polygons in a MySQL database.
  I insert a polygon into the database using a query from the MySQL manual</p>
  
  <pre><code>SET @g = 'POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5))';
  INSERT INTO geom VALUES (111, ST_GeomFromText(@g));
  </code></pre>
  
  <p>The columns of the table are <code>id</code> and <code>polygon</code>, the type of the latter column is <code>POLYGON</code>, but I have the same issue if it is set to <code>GEOMETRY</code>.
  Then I fetch the polygon from the database (using <em>sqlalchemy</em>) and the result will be bytes.
  So I try to convert it into Shapely</p>
  
  <pre><code>from shapely import wkb
  from sqlalchemy import create_engine
  import pandas as pd
  
  my_engine = ... # sqlalchemy engine connecting to the database
  df = pd.readsql('SELECT polygon FROM geom WHERE id = 111;', my_engine)
  p = df.polygon[0]
  wkb.loads(p)
  &gt;&gt;&gt; &lt;shapely.geometry.point.Point at 0x7f1896b01b38&gt;
  </code></pre>
  
  <p>I get a point not a polygon. What could be the issue?</p>