My goal is to connect to a newly created database named mydb
through a new user named jpriest
instead of the default user monetdb
.
Following this question monetdb: switch off password on mclient and the answer provided, I configured a .monetdb file in the current working directory containing the following content:
user=jpriest
password=mypassword
language=sql
however I received the following error message
InvalidCredentialsException:checkCredentials:invalid credentials for user 'jpriest'
I am trying to follow the Getting Started section that states :
To connect/login to the database server the first time,
you must use monetdb as user name and enter its default password: monetdb.
Once connected you may create new users, create new schemas, create tables etc.
It is also strongly recommended to change the default password of the monetdb system user
via ALTER USER SET PASSWORD command.
Since I have not managed to make it work any help is greatly appreciated!
After some research I solved the problem through the following steps:
mydbfarm
via: monetdbd create mydbfarm
monetdbd
that serves the connections to the databases in mydbfarm
to listen to the port 54321 via: monetdbd set port=54321 mydbfarm
mydbfarm
via: monetdbd start mydbfarm
mydb
via: monetdb -p 54321 create mydb
mydb
via : monetdb -p 54321 release mydb
mydb
via : monetdb -p 54321 start mydb
mydb
thought mclient via: mclient -d mydb -p 54321
. I typed monetdb
for user and again monetdb
for passworduser
jpriest with password
monetdb, name
inpap and schema
"sys" via: CREATE USER "jpriest" WITH PASSWORD 'monetdb' NAME 'inpap' SCHEMA "sys";
jpriest
that I created in step 10 via: mclient -d mydb -p 54321
and by typing user
jpriest
password
monetdbmonetdb
to pass
via the command: ALTER USER SET PASSWORD 'pass' USING OLD PASSWORD 'monetdb'
;user=jpriest
password=pass
language=sql
will allow you to always log in as user
jpriest with the password
pass