I am unsuccessful in attempt to make layer with TileStache whitch gets data from MySQL. I found simple MySQL table structure (<http://howto-use-mysql-spatial-ext.blogspot.com/>):

```
create table Points ( 
name VARCHAR(20) PRIMARY KEY, 
location Point NOT NULL, 
description VARCHAR(200), 
SPATIAL INDEX(location) 
); 

```

and then

```
INSERT INTO Points (name, location) VALUES ( 'point1' , GeomFromText( ' POINT(31.5 42.2) ' ) )

```

For TileStache in tilestache.cfg I got:

```
"data":
    {
        "provider": {"name": "vector", "driver": "MySQL",
                     "parameters": {"dbname": "gis", "port": "3306", 
                     "user": "root", "password": "root",
                     "table" : "points"}}
    },

```

When I go to http://localhost:8080/data/ I get in console:

> 
> * GET http://localhost:8080/data/10/167/395.png 500 (Internal Server
>  Error);
> * GET http://localhost:8080/data/null 400 (Bad Request).
> 
> 
> 

Same internal error when going to http://localhost:8080/data/0/0/0.geojson

NOTE: http://localhost:8080/osm/ works fine.

I think problem is global, because I tried making layer from .json file, but same result