I've had a local instance of OrientDB (version:2.2.20) which i'm using it as graph database. When i tried to create new database from DB Client instance it gives time out error. The code is shown below,
import pyorient
####establishing connection with OrientDB
client=pyorient.OrientDB('localhost',2424)
session_id=client.connect('root','kavin')
####connect to database
####create one when there is no database
if client.db_exists('sample_db',pyorient.STORAGE_TYPE_MEMORY):
client.db_open('sample_db','root','kavin')
print('db exists')
else:
print('db doesn\'t exists')
client.db_create('sample_db',pyorient.DB_TYPE_GRAPH,pyorient.\
STORAGE_TYPE_MEMORY
Traceback (most recent call last):
File "<pyshell#67>", line 1, in <module>
.......
timeout: timed out
The client object gives me other existing database and the connection doesnt have any problems. Please suggest me to deal with it