Project

General

Profile

Actions

Bug #16234

closed

'Lost connection to MySQL server during query with Records Statistics

Added by old_jdall over 18 years ago. Updated almost 13 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-06-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When selecting Tools / DB check / Record Statistics (shouldn't that be 'Records' i.e. with an ending s?) I'm getting a bunch of

mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/typo3_src-4.0/t3lib/class.t3lib_db.php on line 801

errors.

Enabling SQL debug, the ERROR shows as

Lost connection to MySQL server during query

The query is

SELECT uid,pid,title
FROM static_template
WHERE
pid NOT IN (-1,0)

Executing that query in the MySQL Query Browser, I'm also getting the 'Lost connection' message

Replacing (-1,0) with (0,0) or (0,1) the query completes without any errors.

Reading the SQL for the table creation, it seems the column 'pid' has been created as an unsigned int:

`pid` int(11) unsigned NOT NULL default '0',

Changing the column to a signed type:

ALTER TABLE static_template MODIFY pid int(11) NOT NULL default '0'

makes this error go away.

Now, which one is wrong: the query or the table column definition?

MySQL version 5.0.21

The Ubuntu 6.06 LAMP server has been configured from scratch - i.e. the database has never hosted typo3.

(issue imported from #M3661)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #16211: DB-Check->Records Statistics uses -1 in query while pid is defined unsignedRejected2006-06-02

Actions
Actions #1

Updated by old_jdall over 18 years ago

0003617 is reporting the same issue

Actions #2

Updated by Dmitry Dulepov almost 13 years ago

  • Status changed from New to Rejected
  • Target version deleted (0)
  • PHP Version deleted (5)

Too old. pid can be -1 due to workspaces.

Typically that message means connection timeout in mysql. Can't do much about it.

Actions

Also available in: Atom PDF