SQL Error (4064): Cannot open user default database. Login failed.

[expired user #9664]'s profile image [expired user #9664] posted 8 years ago in Creating a connection Permalink

Hi, I get the error in the topic when launching HeidiSQL from command line. I'm using the following command:

>heidisql.exe -n 3 -h localhost\BlaBlaSql -u Username -p Password

It works fine if I set up a session with the database name.

How can I specify the database from command line?

1 attachment(s):
  • Pasted-image-at-2016_03_04-09_03

Please login to leave a reply, or register at first.