Ane bingung mau posting dimana :3
Soalnya ini berhubungan dengan 3 kategori. Pertama. OS Linux ubuntu, kedua Internet, dan ketiga yaitu Script Pemrograman
Nah ane bingung kan udah ane buat script PHP buat mysql ping nya
Seperti ini scriptnya
Quote:
<?php
$con=mysql_connect("localhost","root","ini password ane");
if(!$con)
{
die("Could not connect:".mysql_error());
}
mysql_select_db("gwrpdb",$con);
$res=mysql_query("select * from emp");
echo "Success= ".mysql_ping();
mysql_close($con);
?>
Nah seperti itu
pas ane cek lewat Web
"Succes= 1"
tapi. pas ane coba, malah gabisa konek gan. kenapa tuh?
malah kaya gini
Quote:
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:51] >> mysql_query( Connection handle: 1 )
[11:09:51] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[11:09:58] >> mysql_ping( Connection handle: 1 )
[11:09:58] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:09:58] >> mysql_reconnect( Connection handle: 1 )
Mohon pencerahannya ya mastah
Sorry kalo ane