Minh Loc
Minh Loc

Reputation: 173

Write a .bat script create database for orientdb and run by php

OrientDB is using console command create DB by the way run console.bat file on "..\orientdb\bin\". However i need create a .bat separate file run like this command:

create database remote:localhost/test <root> <password> local graph

And run that .bat file by PHP

Thank for advance !

Upvotes: 1

Views: 618

Answers (1)

Seer
Seer

Reputation: 495

Based on the old documentation at https://code.google.com/p/orient/wiki/ImportFromRDBMS it seem that it is possible and is similar to what i want to do as well.

console.bat database.sql

where all your sql commands are in database.sql. The link about includes a sample for porting a full database over but don;t see why it should not work for similar scripts as well.

That said i have not tested this yet.

Upvotes: 1

Related Questions