Ciao a tutti, sto provando a installare il mio drupal! ma purtroppo mi da questo errore..capisco che l'errore stia nella riga 31 del file database.mysql.inc ma non capisco cosa!!!!
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/mhd-01/www.emiliaromagnameteo.com/htdocs/includes/database.mysql.inc on line 31
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Io ho impostato tutto così
function db_connect($url) {
$url = parse_url($url);
// Allow for non-standard MySQL port.
if (isset($url['port'])) {
$url['host'] = $url['host'] .':'. $url['port'];
}
$connection = mysql_connect($url['sql.HOST.com'], $url['USER'], $url['PASS']) or die(mysql_error());
mysql_select_db(substr($url['path'], 1)) or die('unable to select database');
return $connection;
}
/**
Grazie a tutti.
se sei su win installa easyphp1.7
---
Multi-blog sociale
--
Drupal e Siti Web Torino
Blog: Computer Graphics