Hi!

Somtimes i get error messages at logs like:

Lost connection to MySQL server during query query: SELECT sid FROM sessions WHERE sid = 'c2fb3332a4100cbdd2c2cd5229a53591' - /includes/database.mysql.inc - line 121.

and right after:

Duplicate entry 'c2fb3332a4100cbdd2c2cd5229a53591' for key 1 query: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('c2fb3332a4100cbdd2c2cd5229a53591', 0, 0, '212.92.1.124', '', 1169539481) - /includes/database.mysql.inc - line 121.

What can I do when I don't want to get these error messages?

Comments

catch’s picture

The sessions table only records who's logged in. You can fairly safely empty this table (phpmyadmin does it quite easily) - and the only side effect will be logging everyone including you out of the site - as usual you should run a backup first.

You should probably contact your web host about the lost connection problem though.