database-connection

How to set the proper connection parameters to connect a SQL Server database in Atom Editor using Data-Atom package?

匆匆过客 提交于 2019-12-24 02:56:08
问题 I'm trying to use Data-Atom package in the Atom Editor to connect to a SQL Server 2012 database. I can connect to the database with SQL Server Managment Studio using Windows Authentication or SQL Server Authentication . How the data-atom-connections.cson file should be using these two authentication methods? My data-atom-connections.cson file looks like this: [ { name: "WindowsAuthentication" protocol: "sqlserver" user: "username" password: "password" server: "apphost/Username" database:

Entity Framework: Error with dynamic connection string

瘦欲@ 提交于 2019-12-24 02:32:30
问题 Cheers all, I'm using an Entity Framework model. I need to pass my connection string like parameter, so, in another file, I've written (from this question): namespace MyNamespace.Model { using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; public partial class MyEntities: DbContext { public MyEntities(string nameOrConnectionString) : base(nameOrConnectionString) { } } } When I startup the app, I call this constructor in this way, so I can refer to this from anyway

Connect to ONLINE MySQL database using DSN ODBC

十年热恋 提交于 2019-12-24 01:05:45
问题 I am connecting an online MySQL database. I have downloaded MySQL ODBC Connector 5.1. Now am trying to setup the DSN. But am getting the error: Connection Failed : [HY000] [MySQL] [ODBC 5.1 Driver]Access Denied for user 'user123'@'myweb.com' I have hosted this site with some hosting provider. Do i need some details from the provider???? I am doing this > Control Panel--->Administrative Tools--->Data Sources (ODBC)--->Then i chose MySQL ODBC Driver 5.1-----> then i enter the following in the

Connection to SQL Server Database inside Visual Studio 2012 C#

笑着哭i 提交于 2019-12-24 00:49:34
问题 Forgive me if this is easy and I have seen similar posts but I am new-ish to C# and have been struggling on this, so any help would be much appreciated. I am trying to connect to a local DB SQL Server in Visual Studio 2012 but so far have had no luck. I got my connection string from the properties of my local DB which in the picture is in the left hand pane. public void connection() { string connectionString = "Data Source=(localdb)\v11.0;Integrated Security=True;Connect Timeout=15;Encrypt

Node JS and mysql not connecting (client does not support authentication protocol requested by server consider upgrading mysql client)

寵の児 提交于 2019-12-24 00:38:53
问题 I'm trying to connect my NodeJs application with a mysql database but its not connecting for some reason. I did install the mysql npm like this (typed this in commandline): npm install mysql After I installed the mysql npm I made an index.js file and in that file I tried to make the connection with my database. This is the code inside my index.js file to make a connection with mysql: //Gebruik mysql npm module voor de mysql database const mysql = require('mysql'); //Geef connectie details aan

MongoDB available connections

左心房为你撑大大i 提交于 2019-12-23 23:25:29
问题 I installed MongoDB on Windows, Mac and Linux. I run MongoDB with all default arguments and I enter a command db.serverStatus().connections on mongo to check the available connections. Here is my observation, Windows 7 has 19999, Mac has only 203 and Linux has 818. Therefore, I would like to ask what makes the number of available connections different and is it possible to increase the available connections? Thank you. 回答1: For UNIX-like systems (i.e. Linux and OS X), the connection limit is

Connect to an OLAP Cube using Python on LINUX

若如初见. 提交于 2019-12-23 23:06:00
问题 I know how to connect to a MS OLAP cube using Python on Windows - well, at least one method :-). Usually I use the win32py package and invoke a .COM object to connect: import win32com.client connection = win32com.client.Dispatch(r'ADODB.Connection') connString = 'Connection String to MSOLAP CUBE' connection.Open(connString) However, now I want to do the same with Linux (RHEL 7.2), and I have no idea how to do that. Can you please help me with that? What I tried so far: I tried using pyodbc

Unable to find the requested .Net Framework Data Provider. It may not be installed. (System.Data.SQLClient)

左心房为你撑大大i 提交于 2019-12-23 19:18:33
问题 I tried to look at the data connection between my visual studio and SQL server, however it keeps on saying "Unable to find the requested .Net Framework Data Provider. It may not be installed." How can I get this fixed please? It was working before, suddenly it stopped working. I checked in the C:/windows/assembly System.Data.SQLClient is not there. 回答1: Ensure that the provider factory is registered with an appropriate entry in the machine.config. 回答2: In my case I was selecting the worng

what is the standard ada include path

烂漫一生 提交于 2019-12-23 19:05:38
问题 Im using gnat4.6 on Ubuntu installed using apt-get. I need to know where to install downloaded libraries like APQ. What should I set my ADA_INCLUDE_PATH and ADA_OBJECTS_PATH to? 回答1: The beauty of Ada support in Debian (on which Ubuntu is based) is that you don't need to mess with ADA_INCLUDE_PATH and friends; supported libraries are installed where the GNAT Project Manager expects to find them. Say gnatls -v to see the default values. To use the system as intended, you will find it much

getting Lost connection to mysql when using mysqldump even with max_allowed_packet parameter

主宰稳场 提交于 2019-12-23 15:25:13
问题 I want to dump specific table in my remote server database, which works fine, but one of the tables is 9m rows and i get: Lost connection to MySQL server during query when dumping table `table_name` at row: 2002359 so after reading online i understood i need to increase my max_allowed_packet, and its possible to add it to my command. so im running the following command to dump my table: mysqldump -uroot -h my.host -p'mypassword' --max_allowed_packet=512M db_name table_name | gzip > dump_test