Hello Monks,
When i http://nikos.varsa.gr i get
DBI connect('nikos_db','e_shop',...) failed: Can't connect to local My
+SQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /home/
+www/nikos.varsa.gr/cgi-bin/index.pl line 20
here is the line 20 code and the followinf line just sets the enviromental variable correctly in case the script run in the remote server instead of the localhost.
I just don't see why i can't connect to the mysql server although the credentilas are correct and the myslq server name too.
#=====================================================================
+==========
my $db = ( $ENV{'SERVER_NAME'} !~ /freehostia/ )
? DBI->connect('DBI:mysql:e_shop', 'root', 'supersecret', {Rais
+eError=>1})
: DBI->connect('DBI:mysql:nikkou6_db:mysql3.freehostia.com', 'n
+ikkou6_db', 'supersecret', {RaiseError=>1});
if( $ENV{'SERVER_NAME'} =~ /freehostia/ ) { $ENV{'DOCUMENT_ROOT'} = '
+/www/nikos.varsa.gr/' };
#=====================================================================
+==========
20070701 Janitored by Corion: Changed password