Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

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

fiLLLip's profile image fiLLLip posted 4 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.