FAQ Database Discussion Community


How can I check whether a database connection is closed or open using java?

java,jdbc,connectivity,jdbc-odbc
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=Signing_Utility.mdb;"; Connection con = DriverManager.getConnection(database, "", ""); Statement s = con.createStatement(); ...

PHP disconnected and mysql connection

php,mysql,connectivity
I have a MySQL query in PHP that deletes multiple row from different tables. I would like to know if when my browser is waiting for the MySQL query to finish if I lost my internet connection will the MySQL query still work on server or will it stop as...

check internet status from the main activity

java,android,connectivity
I'm new student on android development, so i don't have the enough experience for coding, so i need the help from you... I create a java class on android studio to check if there is an internet connection or not : import android.app.Activity; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import...

Checking internet connection in Android (function comparison)

android,connectivity
So I am comparing which of the two functions I should implement below. I know one checks if the phone is connected to the internet vs. checks if you have a connection in general? Does one work better then the other, what does one do vs. the other? Do they...

Connectivity Internet - how can I try to connect for 5 secs and then give up?

ios,objective-c,reachability,connectivity
I would like to connect to the Internet. If after 5 secs I haven't connected (using Reachability) I want to abort. Is this possible ?

Metric to assess interconnectivity between two communities/subgraphs

networking,graph,connectivity
Consider a large graph with several thousands nodes. Nodes belong to two communities (defined intrinsically by a node attribute). I am looking for a metric (if possible already implemented in gephi, cytoscape, or other software) able to tell me how much these two communities/subgraphs are interconnected (and compare several case...

How to stay connected through mobile network after WIFI is connected on Android?

android,android-wifi,android-networking,connectivity
I noticed that while streaming audio from a remote server through 3G (mobile) connection and while the WIFI is disconnected or OFF, as soon as WIFI is activated and connected, connection through 3G is dropped. I want the app keep using 3G even if WIFI is connected too now. I...

Android is device connected to the internet method

android,android-networking,connectivity,internet-connection
I want to create a method which tells if the device is online. As far as I understand ConnectivityManager tells only if the device is connected to a network. This doesn't mean that the device is connected to the internet. To ensure that the device is online I'm using InetAddress.getByName("google.com").isReachable(3);...

How can I make my server accessible from all wi-fi networks?

tomcat,wifi,server,connectivity,sesame
I have a website that queries a server on my machine. I have made a firewall exception that enables any computer to access the server (or I thought so). I have accessed the server from several public wi-fi networks without any issues. However, I am unable to connect from an...

subgraph and graph connectivity in boost

c++,boost,graph,connectivity,subgraph
I want to know if there are some predefined functions to get those two tests results as a boolean in BOOST, then i will put the code (in an UPDATE). 1- if graph g1 is a subgraph of g2 (by giving g1 and g2 as a function parameter). here http://www.boost.org/doc/libs/1_57_0/libs/graph/doc/subgraph.html...

Zabbix Monitoring Tool Database Connection issue

mysql,connectivity,zabbix
I am trying to install Zabbix Monitoring server on Linux Cent OS 6.x. I have installed Zabbix 2.4 version on it. I have followed the following article of Zabbix to configure it: https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages Once I reach at IPAddress/zabbix at browser settings, I have successfully passed PHP settings and configuration stage....