But what is the 'mdb' object in this line: rdb = metabase.MySQLMetabase('pygrdata.index', mdb, createLayer='leelab')
Since you are saying to create something of the same name only after I create this! What am I missing? Kenny On May 23, 4:21 am, Namshin Kim <n...@rna.kr> wrote: > rdb = metabase.MySQLMetabase('pygrdata.index', mdb, createLayer='leelab') > > I guess you are talking about one-liner above. 'pygrdata' is a database name > and 'index' is a table name. And 'leelab' is a layer name. Thus, you should > be able to create table on pygrdata database. > > After you create metabase.MySQLMetabase, you can access using usual > metabase. > > mdb = metabase.MetabaseList('mysql:pygrdata.index') > > Or you can set WORLDBASEPATH to be mysql:pygrdata.index > > > > On Fri, May 21, 2010 at 9:36 AM, Kenny Daily <kmda...@gmail.com> wrote: > > Is there a mysql metabase example somewhere? I only saw the one-liner > > in the module documentation. > > > The example in the module documentation shows I need to create a > > metabase.Metabase. But looking at this code, it seems that this calls > > metabase.MySQLMetabase if something on the worldbase path is a mysql > > database! I'm also not sure what to use as the resourceCache. Finally, > > how would I reconnect to this? Do I need a script such as what is in > > the __init__.py? > > > Also, the database server uses a non-standard port - can I pass this > > through kwargs so it gets to the mysql_connect? > > > Thanks! > > > Kenny > > > -- > > You received this message because you are subscribed to the Google Groups > > "pygr-dev" group. > > To post to this group, send email to pygr-...@googlegroups.com. > > To unsubscribe from this group, send email to > > pygr-dev+unsubscr...@googlegroups.com<pygr-dev%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/pygr-dev?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "pygr-dev" group. > To post to this group, send email to pygr-...@googlegroups.com. > To unsubscribe from this group, send email to > pygr-dev+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/pygr-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "pygr-dev" group. To post to this group, send email to pygr-...@googlegroups.com. To unsubscribe from this group, send email to pygr-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pygr-dev?hl=en.