V
V
Valentine2020-04-25 22:01:46
firebird
Valentine, 2020-04-25 22:01:46

Why can't I connect to the Firebird database?

Wrote the simplest code, the error occurs on the line fbc.Open();

FbConnectionStringBuilder csb = new FbConnectionStringBuilder
            {
                DataSource = "LOCALHOST",
                Charset = "WIN1251",
                Database = @"D:\Университет\ДЗ во время дистанционки\Языки\Task2.fdb",
                UserID = "SYSDBA",
                Password = "masterkey",
                ServerType = FbServerType.Default
            };
            FbConnection fbc = new FbConnection(csb.ToString());
            fbc.Open();
            FbDatabaseInfo fb_inf = new FbDatabaseInfo(fbc); //информация о БД
            fbc.Close();


5ea488f347eb5831904114.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin, 2020-04-26
@val_gr

I gave up and installed version 2.5
UPD1: Restarting the server can also help. (Turning off and on an application or service)

R
Roman, 2020-04-25
@yarosroman

Maybe the firewall is blocking, turn it off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question