Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: MySQL problem in step 4 or 5  (Read 3631 times)
Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« on: May 08, 2012, 15:27:29 »

Hi,
I upgraded MySQL to version 5.5
It seems that 5.5 does not support TYPE

I see these errors when I want to install Elxis :

Code:
mysql error [1064] : EXECUTE
URI: index.php
Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci' at line 19
CREATE TABLE `elx_banner` ( `bid` INTEGER NOT NULL AUTO_INCREMENT, `cid` INTEGER NOT NULL DEFAULT 0, `type` VARCHAR(10) NOT NULL DEFAULT 'banner', `name` VARCHAR(50), `imptotal` INTEGER NOT NULL DEFAULT 0, `impmade` INTEGER NOT NULL DEFAULT 0, `clicks` INTEGER NOT NULL DEFAULT 0, `imageurl` VARCHAR(100), `clickurl` VARCHAR(200) NOT NULL, `dateadded` TIMESTAMP NOT NULL, `showbanner` TINYINT NOT NULL DEFAULT 0, `checked_out` TINYINT NOT NULL DEFAULT 0, `checked_out_time` DATETIME NOT NULL DEFAULT '1979-12-19 00:00:00', `editor` VARCHAR(50), `custombannercode` TEXT, `targetbanner` TINYINT NOT NULL DEFAULT 1, PRIMARY KEY (`bid`) ) TYPE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci
mysql error [1146] : EXECUTE
URI: index.php
Message: Table 'de4376wf_sw2tqef.elx_banner' doesn't exist
ALTER TABLE `elx_banner` ADD INDEX `elx_viewbanner` (`showbanner`)

What we should do ?
« Last Edit: July 15, 2012, 10:26:09 by Farhad Sakhaei » Logged

ahmet
Sr. Member
****
Offline Offline

Posts: 254


360 HDR Virtual Tours | Windsurfing Sailing


WWW
« Reply #1 on: May 08, 2012, 21:10:38 »

i guess its because of charset of the database..
when i wanted to carry the site, i was faced to same problem ..
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #2 on: May 09, 2012, 10:10:38 »

Open the SQL file and replace "TYPE" with "ENGINE" wherever this is found.

ENGINE=MyISAM
« Last Edit: May 09, 2012, 10:12:51 by datahell » Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #3 on: May 09, 2012, 10:17:15 »

Hi John , Thank you for your reply

Do you mean the file : /installation/schema/elxis.xml ?
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #4 on: May 09, 2012, 17:33:14 »

Either you use an outdated version of Elxis or a modified one...
Elxis 2009.3 already uses ENGINE instead of TYPE.
Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #5 on: May 12, 2012, 20:39:10 »

I checked the Elxis 2009.3 , The problem is in it too

To solve the problem I changed this line in : includes/adodb/adodb-datadict.inc.php

Line: 590

Replace:

$sql[0] .= ' TYPE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci';

to :

$sql[0] .= ' ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci';


Now everything is perfect Smiley
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #6 on: May 12, 2012, 22:47:34 »

I know were the problem is but this has been changed since February 27, 2011 (attribute TYPE became deprecated on newer mysql versions).
This is why I told you that you don't use the official release or you use an outdated one.


* datadict_engine.png (50.59 KB, 781x441 - viewed 181 times.)
« Last Edit: May 12, 2012, 22:49:47 by datahell » Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #7 on: May 13, 2012, 07:18:49 »

Oh, Sorry , I was not inform about the new revision
I was used the last download of elxis 2009.3 which I had on my computer
Sorry , Sorry Smiley
Logged

Pages: [1]
  Print  
 
Jump to: