i created a file like this called schema.sql Create DATABASE remote:localhost/assets root xxxx plocal
CREATE CLASS Application extends V CREATE CLASS Asset extends Application create property Asset.addresses embeddedlist when you want to execute it from dos do this console schema.sql On Monday, March 2, 2015 at 1:59:40 AM UTC-6, Omega Silva wrote: > > Team, > > I'm trying to create a DB schema using a batch script. > > I've tried executing the batch script as mentioned in the documentation ( > http://www.orientechnologies.com/docs/2.0/orientdb.wiki/Tutorial-Run-the-console.html) > > but this doesn't work. > > My batch script: > > connect remote:localhost/Test root1 root1; > CREATE CLASS A; > CREATE PROPERTY A.name STRING; > ALTER PROPERTY A.name MANDATORY true; > > > Error I get > > orientdb> CREATE CLASS A > Error: com.orientechnologies.common.exception.OException: Database not > selected. Use 'connect <database-name>' to connect to a database. > > > Your support is much appreciated. > > Best Regards > Omega > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.