View Issue Details

IDProjectCategoryView StatusLast Update
0008444mantisbtinstallationpublic2009-06-23 15:28
Reporterdapozzom Assigned Tograngeway  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0rc1 
Fixed in Version1.2.0rc1 
Summary0008444: APPLICATION ERROR 0000401
Description

During the installation process I received the attached message.
Where is oit possible to find out the /core/database_api.php replacement module.

Database query failed. Error received from database was #1193: Unknown system variable 'NAMES' for the query: SET NAMES UTF8

TagsNo tags attached.

Activities

giallu

giallu

2007-10-04 07:17

reporter   ~0015806

Which database server/version are you using?

dapozzom

dapozzom

2007-10-04 12:14

reporter   ~0015807

MySQL: 4.0.25

giallu

giallu

2007-10-04 15:54

reporter   ~0015808

Then you need to upgrade that: it was decided that mantis 1.1 will require MySQL 4.1 in order to support, among other stuff, SET NAMES and nested queries.

vboctor

vboctor

2007-10-05 13:21

manager   ~0015818

giallu, can you add the requirements file the docs folder. Also we need to update our check.php and install scripts to detect such cases for upgrades / new installations.

joaquimponte

joaquimponte

2007-12-03 07:16

reporter   ~0016344

Last edited: 2007-12-03 07:19

I'm running mysql server 4.0.26
I've installed 1.1.0a4 an i did experienced the same error. Then i've made some changes in core/database_api.php, on function db_connect.
Basically, i've changed:

  • all !== to !=
  • all === to ==

And this worked fine.

Now, i've installed latest release, 1.1.0rc3 and i experienced the same error. I made the same changes and this seems to work perfectly too.

Hope this can help.
Joaquim.

giallu

giallu

2007-12-03 09:00

reporter   ~0016349

I find your solution quite... interesting: I wonder how your modifications magically made SET NAMES supported in MySQL 4.0.

I think you just managed to skip the "SET NAMES" query, but your installation is doomed to break when it will run the nested queries we have now in the code.

Ah, and of course strange things could also happen with UTF8 characters.

grangeway

grangeway

2009-04-15 09:25

reporter   ~0021555

Added a check to ensure mysql is at least version 4.1