I cant check whether the file '/var/run/mysqld/mysqld.sock' exists or not, i aksed na admin though and he definately stated that the mysql server on freehostia runs normally. I also have no access to any of the error logs.
I switched the code to this but it still produces the same error:
#===================================================================== +========== my $db = ( $ENV{'SERVER_NAME'} !~ /freehostia/ ) ? DBI->connect('DBI:mysql:e_shop@localhost', 'root', '*****', { +RaiseError=>1}) : DBI->connect('DBI:mysql:nikkou6_db@mysql3.freehostia.com', 'n +ikkou6_db', '*****', {RaiseError=>1}); if( $ENV{'SERVER_NAME'} =~ /freehostia/ ) { $ENV{'DOCUMENT_ROOT'} = ' +/www/nikos.varsa.gr/' }; #===================================================================== +==========
In reply to Re^2: Canot connect to the remote mysql server through those lines
by Nik
in thread Canot connect to the remote mysql server through those lines
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |