Errores solucionados
This commit is contained in:
parent
fa2f629c73
commit
cfedf3d1b8
|
@ -23,10 +23,10 @@ class Conn
|
|||
function open ($host, $user, $pass, $name, $port = NULL)
|
||||
{
|
||||
$conn = $this->conn = mysqli_init ();
|
||||
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
|
||||
$conn->options (MYSQLI_OPT_LOCAL_INFILE, TRUE);
|
||||
@$conn->real_connect ($host, $user, $pass, $name, $port);
|
||||
|
||||
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
|
||||
$conn->real_connect ($host, $user, $pass, $name, $port);
|
||||
|
||||
if (mysqli_connect_errno ())
|
||||
{
|
||||
sleep (3);
|
||||
|
|
Loading…
Reference in New Issue