Forums / Install & configuration / Mysql errors in 3.10?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Mysql errors in 3.10?

Author Message

Andreas Kaiser

Wednesday 24 October 2007 10:18:20 am

I have a newly updated site from 3.9.2 to 3.9.10.

Since I updated, I think I'm getting random mysql access errors.

The server has installed:

Apache/1.3.33 (Debian GNU/Linux)
PHP/4.4.7-0.dotdeb.0 with Suhosin-Patch mod_perl/1.29
MySQL 4.1.15

I randomly get "kernel 20" errors, in debug some errors are:

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www/web9/web/lib/ezdb/classes/ezmysqldb.php on line 131
Connection error: Couldn't connect to database. Please try again later or inform the system administrator.
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Language 'esl-ES' does not exist or is not used!
Anonymous user not found, returning NoUser

and lot of other errors....

Normally when reloading the page, the error disappears.

I have looked at apache and mysql error logs, but there I haven't found anything. Also the service monitor I have installed didn't report any mysql downtime...

The coincidence is that this never happened with 3.9.2.

Anyone experienced similar problems?

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Łukasz Serwatka

Thursday 25 October 2007 11:57:10 pm

Hi Andreas,

Nothing happens without reason, so you will have to look closer on this problem. Take a look into MySQL doc for possible reasons:

http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html

We haven't seen any reports like this since 3.10 release.

You can contact eZ Systems for additional support: support@ez.no

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Andreas Kaiser

Friday 26 October 2007 6:29:10 am

I came just back to update my post, when I saw your comment.

"Nothing happens without reason" -> true, but sometimes the errors are so hidden and are random that who knows... ;)

I wanted to update that other scripts on that server are having also some random mysql connection errors. I have made some changes in mysql conf file instead listening from "localhost" to "server ip" (found this in google) ... and it seems to work now.

Because it was so a random error, that at the beginning only appeared in a recent upgraded ezp 3.10 install, I had to ask here...

Now we can be sure it hasn't nothing to do with the upgrade or ezp ;)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Norman Leutner

Monday 29 October 2007 4:32:50 am

Have you tried installing a blank ez 3.10 ?

Maybe it's the way how the passwords are stored within the database.

UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') WHERE User = 'user';

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh