Parašė Zixx· 2008 Vas. 10 22:02:49
#1
Ka daryti jeigu kai torento tvs instalinau ismeta
dbconn: mysql_connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Duomenis
]TIKRAI suvedziau teisingai bet kazkodel neina uzeit..
Parašė Zixx· 2008 Vas. 10 22:02:43
#2
Manau sitas praves.. ji radau
}
return $ip;
}
function dbconn($autoclean = false) {
global $mysql_host, $mysql_user, $mysql_pass, $mysql_db;
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass))
{
die('dbconn: mysql_connect: ' . mysql_error());
}
mysql_select_db($mysql_db)
or die('dbconn: mysql_select_db: ' + mysql_error());
userlogin();
if ($autoclean)
register_shutdown_function("autoclean");
}
function userlogin() {
global $GLOBALBAN, $HTTP_SERVER_VARS, $SITE_ONLINE;
unset($GLOBALS["CURUSER"]);
Redagavo Zixx· 2008 Vas. 10 22:02:10