connection-string

C++ app MySQL odbc database connection error: terminate called after throwing an instance of 'otl_tmpl_exception<>

自作多情 提交于 2020-07-23 08:21:27
问题 I am currently debugging a containerized C++ application, it seems like it's throwing exception and complaining about the database connection, error: terminate called after throwing an instance of 'otl_tmpl_exception<odbc::otl_exc, odbc::otl_conn, odbc::otl_cur>' Aborted The code in main() is below: int main(int ac, char *av[]) { auto otl_connect = std::make_unique<odbc::otl_connect>("Driver={/usr/local/lib/libmyodbc8a.so};server=xxx.x.x.x;port=xxxx;database=xxxx;user=xxx;password=xxx"); std:

C++ app MySQL odbc database connection error: terminate called after throwing an instance of 'otl_tmpl_exception<>

本小妞迷上赌 提交于 2020-07-23 08:19:05
问题 I am currently debugging a containerized C++ application, it seems like it's throwing exception and complaining about the database connection, error: terminate called after throwing an instance of 'otl_tmpl_exception<odbc::otl_exc, odbc::otl_conn, odbc::otl_cur>' Aborted The code in main() is below: int main(int ac, char *av[]) { auto otl_connect = std::make_unique<odbc::otl_connect>("Driver={/usr/local/lib/libmyodbc8a.so};server=xxx.x.x.x;port=xxxx;database=xxxx;user=xxx;password=xxx"); std:

How to handle special characters in the password of a Postgresql URL connection string?

旧城冷巷雨未停 提交于 2020-07-15 06:33:27
问题 Using a Postgresql URL connection string in the format of: postgresql://user:secret@localhost How do I handle special characters in that string (e.g., $ ) so that it will actually function when I connect to my postgres database? I've tried simply URL encoding it, so for example, "test$" becomes "test%24" ... but that seems to be a problem as I get a "FATAL: password authentication failed " error when attempting to use it. 回答1: See Connection URIs in the doc. There are a few things that don't

How to handle special characters in the password of a Postgresql URL connection string?

风格不统一 提交于 2020-07-15 06:33:10
问题 Using a Postgresql URL connection string in the format of: postgresql://user:secret@localhost How do I handle special characters in that string (e.g., $ ) so that it will actually function when I connect to my postgres database? I've tried simply URL encoding it, so for example, "test$" becomes "test%24" ... but that seems to be a problem as I get a "FATAL: password authentication failed " error when attempting to use it. 回答1: See Connection URIs in the doc. There are a few things that don't

How do I solve “Keyword not supported: 'metadata' ”?

我的梦境 提交于 2020-07-06 10:46:47
问题 I can't connect to SQL Server and connection string of my project is: <add name="Teleport_DEVEntities" connectionString="metadata=res://*/Data.Model.AdvertisingModel.csdl|res://*/Data.Model.AdvertisingModel.ssdl|res://*/Data.Model.AdvertisingModel.msl;provider=System.Data.SqlClient;provider connection string="data source=*****;initial catalog=****;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> I get this error: Keyword

How do I solve “Keyword not supported: 'metadata' ”?

不羁的心 提交于 2020-07-06 10:46:20
问题 I can't connect to SQL Server and connection string of my project is: <add name="Teleport_DEVEntities" connectionString="metadata=res://*/Data.Model.AdvertisingModel.csdl|res://*/Data.Model.AdvertisingModel.ssdl|res://*/Data.Model.AdvertisingModel.msl;provider=System.Data.SqlClient;provider connection string="data source=*****;initial catalog=****;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> I get this error: Keyword

Error connecting to Atlas Free Cluster (MongoDB)

混江龙づ霸主 提交于 2020-06-17 09:45:23
问题 TL;DR: Can't connect to Atlas Cluster even after doing exactly what docs said. Hi, so I read the docs of getting started with Atlas and everything seemed nice & easy. I did follow the steps, created a free cluster, whitelisted my IP, and then tried to connect using their sample app: const { MongoClient } = require("mongodb"); // Replace the following with your Atlas connection string const url = "mongodb+srv://<username>:<password>@clustername.mongodb.net/test?retryWrites=true&w=majority

Where to find .csdl, .ssdl, and .msl files in Entity Framework 4.0 code first?

﹥>﹥吖頭↗ 提交于 2020-05-28 22:29:02
问题 I want to run tests with Effort and to do that I need to specify a connectionstring that also contains a reference to .csdl, .ssdl , and .msl files. The (non-working) connectionstring looks like this now: <add name="SQLAzureConnection" connectionString= "metadata=res://*/Model.projectContext.csdl| res://*/Model.projectContext.ssdl|res://*/Model.projectContext.msl; provider=System.Data.SqlClient; provider connection string="Data Source=(LocalDb)\v11.0;Initial Catalog=Database_Nieuw;Integrated