warning: mysql_affected_rows(): A link to the server could not be established in /home/cogdziek/public_html/katalog-sklepow/includes/database.mysql.inc on line 222.
I have installed drupal at http://all4democracy.f2o.org/cms and it worked fine for a few days. But when I tried to access the site after a few days it gave me blank page. So far I did the following:
1) Checked mysql dbs using phpmyadmin, all intact including that of the modules
2) Checked sites/default/settings.php, which is intact
3) Checked the files using gFTP and all were found intact.
4) Renamed .htaccess in the installation root, but the problem persists.
Problem with mysql. When connecting I receive the following message:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp' (111) in /home/drupal/includes/database.mysql.inc on line 35
Can't connect to local MySQL server through socket '/tmp' (111)
The socket defined (in /etc/my.cnf) as /tmp/mysql.sock !!! not /tmp!!!
Parsing of db url is ok.
I putted the following lines in database.mysql.inc and got right results.