Closed dfroger closed 7 years ago
Simplify it a bit, this works (this is how pymonetdb.connect
invokes mapi
):
server = mapi.Connection()
server.connect(hostname=None, port=50000, username='monetdb',
password='monetdb',
database='demo', language='sql',
unix_socket='/tmp/.s.merovingian.50000')
this fails with access denied
(this is how pymonetdb.control.Control
invokes mapi
):
server = mapi.Connection()
server.connect(hostname='localhost', port=50000, username='monetdb',
password='monetdb',
database='merovingian', language='control',
unix_socket='/tmp/.s.merovingian.50000')
you you need to set a passphrase for monetdbd, enable remote management restart it.
this is unrelated to the authentication per database.
Thanks for the response. As monetdb create demo
command line tool was working, I was thinking the Python API could work the same way.
ok, that works! thanks again for the help!
it should be able to work over a socket without authentication, i never got to it to implement that since the protocol is slightly different. I think I documented it somewhere, but probably it is not obvious enough.
This may not be a bug, but I can't understand what I'm doing wrong. (Tested with Python 2.7 and 3.6).
Creating a farm, a database, and populating it works:
Querying the database in Python works:
But I always get
access denied
when trying to useControl
:Thanks!
Note: same error with: