A database connection is a facility that allows client software to communicate with database server software, whether on the same machine or not. A connection is required to send commands and receive answers.
0
votes
0answers
8 views
Configuring config/database.php file using php script
i have a script in my controller which is as follows
if($this->db->query("CREATE DATABASE IF NOT EXISTS db_ecommerce"))
{
...
0
votes
1answer
8 views
C3P0 maxPoolSize exausted
I have an application that uses C3P0 for connection pooling. It has been working fine for a long time, but recently i am getting the following exception while trying to hit the database.
...
0
votes
1answer
60 views
What's the issue with following PHP MySQL code?
I'm using PHP and MySQL database.
$con=mysql_connect("localhost","XYZ","pqr") or die("Failed to connect with database!!!!");
mysql_select_db("LMN", $con);
//Code and SQL query to ...
0
votes
2answers
14 views
Trouble connecting to Oracle with c#
I have trouble connecting to an Oracle 11g XE instance that is running on a VM (on my local machine).
I'm trying to connect to it with c# using:
using System.Data.OracleClient;
OracleConnection conn ...
0
votes
0answers
18 views
SQL Server Compact Edition open fails with E_FAIL Unspecified error with VS 2005 C++ and ADO
When trying to use SQL Server Compact Edition to replace SQL Server modifying just the connect string my application is unable to access the .sdf database file successfully.
I would like to have ...
0
votes
2answers
16 views
How to get PoolingDataSource from Tomcat's JNDI
If I deploy a web app to Tomcat, and have code like this:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("jdbc/myDB");
How can I specify for this DataSource to be a ...
-1
votes
0answers
16 views
Connect to database and inspect it for a list of usernames and e-mails? [on hold]
How do I inspect a database with the end goal of generating a list of usernames and passwords?
1
vote
1answer
24 views
MongoDB Internet connection failure
I have MongoDB set up and running on Ubuntu 12.04LTS server. Everything works fine on localhost and from computers inside the local network using macs and linux boxes. However, when I try to connect ...
0
votes
0answers
8 views
How to create a mysqldump file automatically from SQL server database on a daily basis [migrated]
I want to create a mysqldump file from a SQL Server database, I know its possible using MYSQL workBench, what i want is to make it completely automate. So the script runs on a daily or weekly basis ...
0
votes
0answers
24 views
HIbernatejava.sql.SQLException: Connection ConnectionID:4 is closed
I am using Struts 1.2 - Hibernate 3 - MS Sql server 2005 for my application.
When I run the application, its working fine in local but in server I am getting below exception:
...
0
votes
1answer
13 views
MQ (websphere) connection issue java.lang.NoClassDefFoundError
I am trying to establish a connection with MQ from Java. I am using the following sample code from IBM, but it is possible to be outdated. How can i resolve the issue / what am i missing?
import ...
-1
votes
0answers
21 views
Database connection retry interval in Jboss 7 (Connection Pooling)
My jboss connection manager is throwing errors indicating 'Connection cannot be created'. Jboss is retrying to connect again and again and I get lot of this error in the log file in a small duration.
...
1
vote
1answer
43 views
Proper Table Design - How to create child table
I am not sure if this is the right forum - it is more about designing sql tables
I was trying to find answers online - no luck
I have menu permission table that list
permissionID - sequential ...
1
vote
2answers
30 views
How to set the DB ConnectionStringSettings in Code Behind
Studio 2010 C# application accessing LUW DBs. I am receiving an error when building my DB Conncetion settings in the code behind file rather than using the web.config. We have a third party product ...
0
votes
1answer
30 views
+50
(FRAPI API) How to get Frapi_Database::getInstance() without class or function(Outside MAMP and FRAPI Environment)?
I am setting up cron job in mac using crontab command.
I am using MAMP PRO as a local server environment for FRAPI API.
But I can not get Frapi_Database::getInstance() without using class or ...
0
votes
1answer
6 views
connect dahatabase in webservices from jdeveloper
I am trying to develop web service using jdeveloper for my adf mobile app. I have connected database from remote server. Which connection type I suppose to use ?
I've set oracle(jdbc) already.I call ...
2
votes
0answers
16 views
How to set a path or change to access the server configuration file in postgresql
I am trying to connect my postgresql database but its giving me " Server not listening" blank pop up window error and timing out the connection. I figured out from Event viewer that it is due to my ...
0
votes
0answers
24 views
Java + MongoDB: unnesessary connections
Created a singleton class to maintain MongoDB, but it still creates a new connection each time it's initialised.
public class MongoDB {
private static MongoDB ourInstance = null;
private DB db;
...
0
votes
0answers
17 views
How to debug frequent connects to the database
How to debug frequent connects to the MySQL database running as a RDS instance (using mysql2 gem) of my Rails 3 application. I have the reconnect bit set to true, so it keeps reconnecting, but I am ...
2
votes
1answer
36 views
Connecting and creating an android application to retrieve data from MSSQL
Am kind of new to android.the thing is i programmed a vb code to upload some data to SQL server including an image.so i want to create an android app to view these data by creating a drop down list ...
0
votes
1answer
31 views
hive jdbc connection giving out of memory error
I'm just trying to run a sample hivejdbc client program but it's giving me an out of memory error.
import java.sql.SQLException;
import java.sql.Connection;
import java.sql.ResultSet;
import ...
0
votes
1answer
20 views
Microsoft.ACE.OLEDB.12.0 for MS Access 2003
I'll be specific here... my database is designed in Access 2007 with an .accdb extension.... I deployed my application where Office 2003 is installed.. I know the simple thing would be to just install ...
0
votes
0answers
18 views
Setting parameters for mysql turning
I have mysql server with 3 databases schemas. Each of these schemas has 1000 tables, with some of the tables (product related, order related and customer related tables) holding more that 15 millions ...
0
votes
0answers
15 views
Store a HDBC connection handle in memory to be used later
I have a few connection handles that interact with 3 different databases. But I don't want the connections to be opened and closed every time. So, I was trying to save the name of DB and the handle in ...
3
votes
2answers
50 views
Remote host “.” was not found error
I am getting following error while trying to connect to DB2 database.
SQL1336N The remote host "." was not found. SQLSTATE=08001
The DB2 Express is installed in my local machine and using ...
0
votes
1answer
34 views
Trusted_Connection isn't working anymore
A year ago on this very setup it was working. I've been working on completely unrelated stuff and now I'm back to the old project--and I'm getting login failed for user 'servername'\GUEST.
Note: ...
0
votes
0answers
12 views
windows installer (wix): How to setup a .net db connection
I'd like to install a .NET application and let the user set up two database connection. At least one of them isn't MS SQL-Server.
All examples/solutions I found explain how to create a connection ...
0
votes
1answer
12 views
Unable to load 'Microsoft.Data.ConnectionUI" for DataConnectionDialog use
I created an application in C# , .Net 4.0.
In this application i need to show a DataConnectionDialog for accessing DataBase.
I use this code :
DataConnectionDialog BDdialog = new ...
0
votes
0answers
48 views
Select available
Trying to write a small C# application that is going to be distributed to some computers in an organisation. These computers may or may not have a version of a database installed. I am expecting a ...
0
votes
0answers
41 views
How to use MySql .net Connector 6.7.4 on Windows Store Apps ?
I am having problem using the MySql .net connector for my Windows Store apps
According to the documentation released my Oracle, mySql supports Windows Store apps from /connector 6.7 onwards.
But I ...