On one of my server which having direct connection to internet without firewall ..am seeing a established connection with SSH .. am not getting how ..there no login but I can see this established connection .
## have hidden original IPs with below notations for security concerns .
My-IP: A.B.C.Z
Unknown-IP: W.X.Y.Z
After that have restricted the access by below Blindly ..
## Set below iptables
# Now I can see below connection that with W.X.Y.Z
Many time have killed this connection by killing above PID and after 1-2 minutes it again established connection over port: 666* that is below in my services files
As per my understanding some of my system process is trying to sent packet to this W.X.Y.Z ip and waiting for ack response that is this SYN_SENT .
Please help me to find the root cause, how I can find which process/sw is trying to establish connection to this IP (W.X.Y.Z) and how I can block it fully ..
Hi All,
On a solaris box A port B
in which port B is established and receiving data.
My question is how do i listen on that established port ,
how can i get the data received at box A: port B through my application
I had searched the forum for the same, but i am unable to retrieve the... (5 Replies)
hi experts,
very need help about script how to login into oracle database and select a table and append the query into a file.
i have oracle database and have a table named omc_ip with fields like host_id(varchar2(20)),ip(varchar2(10)) and update_date(date).
i want to build a script that... (15 Replies)
i am using big brother 1.9i.some clients are shut down.but server and other clients are on and bb is running successfullly on all of them.But network tests like conn ssh,telnet etc are going purple for some time and become green for some time on all clients and server reports are not updating..i... (1 Reply)
hai ,
i want to connect to global ftp through ip address.
remote type is unix.
sometimes it is connecting some times connection timed out is coming
what is solution (1 Reply)
Hi, sorry for my english,
i want to find the C-sources of the compiler gcc because i must create a compiler for an educational architecture made by my information technology professor. He told me that i must start from this sources, compile the gcc with them (pratically "auto-compile" the... (2 Replies)
I put lsof -i -P -n into the terminal and this is the output. I believe i am being hacked??
lsof -i -P -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
SystemUIS 1578 melodysneed 9u IPv4 0x07d608ec 0t0 UDP *:*
SystemUIS 1578 melodysneed 11u IPv4 0x0ba68810... (5 Replies)
Hi,
How can i find the types of files in some directory(~/mydir) that start with word "fix" then followed by number 3, 4, 7 or 8 and end with .ccp or .in
How can i find the total number of files that are larger than 5000 bytes in specific directory?, I can do it by current directory by using ... (4 Replies)
Hello.I have been trying to solve the following problem, but to no avail. If anyone could please give me some indications, or anything, it would be amazing.
A C source program and a type name are given. Determine from source,
the list of the global variables having the given type.
For each... (5 Replies)
Hello Guys,
Someone or, some tool has killed the application process with signal 9 (kill -9) . How to track that in HP-UX?
On AIX we can use light-weight tool called ProbeVue to track it but not sure how to do it on HP-UX. Appreciate your help.
Kelly
Closed because this is... (0 Replies)
Hello Guys,
Someone or, some tool has killed the application process with signal 9 (kill -9) . How to track that in Solaris?
On AIX we can use light-weight tool called ProbeVue to track it but not sure how to do it on Solaris. Appreciate your help.
Kelly (3 Replies)
Discussion started by: aixusrsys
3 Replies
LEARN ABOUT PHP
mysql_ping
MYSQL_PING(3) 1 MYSQL_PING(3)mysql_ping - Ping a server connection or reconnect if there is no connectionSYNOPSIS
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should
be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
omysqli_ping(3)
bool mysql_ping ([resource $link_identifier = NULL])
DESCRIPTION
Checks whether or not the connection to the server is working. If it has gone down, an automatic reconnection is attempted. This function
can be used by scripts that remain idle for a long while, to check whether or not the server has closed the connection and reconnect if
necessary.
Note
Automatic reconnection is disabled by default in versions of MySQL >= 5.0.3.
o $
link_identifier -The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect(3) is
assumed. If no such link is found, it will try to create one as if mysql_connect(3) was called with no arguments. If no connection
is found or established, an E_WARNING level error is generated.
Returns TRUE if the connection to the server MySQL server is working, otherwise FALSE.
Example #1
A mysql_ping(3) example
<?php
set_time_limit(0);
$conn = mysql_connect('localhost', 'mysqluser', 'mypass');
$db = mysql_select_db('mydb');
/* Assuming this query will take a long time */
$result = mysql_query($sql);
if (!$result) {
echo 'Query #1 failed, exiting.';
exit;
}
/* Make sure the connection is still alive, if not, try to reconnect */
if (!mysql_ping($conn)) {
echo 'Lost connection, exiting after query #1';
exit;
}
mysql_free_result($result);
/* So the connection is still alive, let's run another query */
$result2 = mysql_query($sql2);
?>
mysql_thread_id(3), mysql_list_processes(3).
PHP Documentation Group MYSQL_PING(3)