Anti-SOPA/PIPA Campaign

Stop Censorship, Web Developer - Joomla, Drupal, Wordpress

Drupal Camp Manila 2012

Drupal web developer, Metro Manila, Philippines, I'm going, are you? Drupal Camp Manila: February 25, 2012

You have an error in your SQL syntax, TYPE=MyISAM CHARACTER SET `utf8`

Articles - Joomla Web Development Articles

User Rating: / 5
PoorBest 
Share/Save/Bookmark

Joomla db installation error while installing Joomla 1.5.2x, and encountered error on step 4 database, WampServer Version 2.1

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to usenear 'TYPE=MyISAM CHARACTER SET `utf8`' at line 29 SQL=CREATE TABLE`jos_banner` ( `bid` int(11) NOT NULL auto_increment, `cid` int(11)NOT NULL default '0', `type` varchar(30) NOT NULL default 'banner',`name` varchar(255) NOT NULL default '', `alias` varchar(255) NOT NULLdefault '', `imptotal` int(11) NOT NULL default '0', `impmade` int(11)NOT NULL default '0', `clicks` int(11) NOT NULL default '0',`imageurl` varchar(100) NOT NULL default '', `clickurl` varchar(200)

Reason is the latest version of MySQL no longer supports TYPE=MyISAM.

Workaround / Solution:

  1. modify the following sql files:
    • /installation/sql/mysql/joomla.sql 
      and 
    • /installation/sql/mysql/sample_data.sql

      in the "installation" folder and replace all occurrences of TYPE=MyISAM to ENGINE=MyISAM. Be careful with the Find and Replace, make sure to match the exact case and the exact whole word/term to avoid other references to variables with "type"
  2. Restart Joomla installation, with cleared browser cache, and proceed with the installation.
  3. For joomla 1.5, use mysql 5.1
    For joomla 1.6, use mysql 5.5
  4. If using WAMP Server, add other mysql versions as needed (this is easily found from the wamp icon in the system tray).

In new MySQL version, mysql doesn't support TYPE, instead ENGINE is used as replacement type. The keyword 'TYPE' was introduced as deprecated since ENGINE was added in MySQL 4.0.18. It is mentioned in the CREATE TABLE structure manaul page (http://dev.mysql.com/doc/refman/4.1/en/create-table.html) that the TYPE keyword will be removed in future MySQL versions.

When working with Wampserver, simply download from Wampserver website the necessary MySQL addons to downgrade or upgrade MySLQ versions. These libraries can easily be downloaded, installed, then enabled from the Wampserver system tray/console as necessary. PHP version plugins are also available.

Comments  

 
0 #1 webbie 2011-11-08 19:08
it works! thanks, jerome!
Quote
 

Add comment


Security code
Refresh

Joomla, Drupal and CMS seminars, training courses, Metro Manila, Philippines

ACE IT Learning Solutions offers affordable, practical Joomla and Drupal hands-on trainings and courses, as well as SEO / Analytics seminars conducted regularly at the training center in Cubao, Quezon City, Philippines. Visit ACE IT training website to learn more.

smart-traffic
SEO company - Increase organic search engine rankings. Increase your sales. Increase your profits. The UK's leading SEO company. Please visit Smart Traffic United Kingdom and SEO Service Australia for more information.

TPC Events hosts Joomla, Drupal and other CMS seminars and workshops in Ortigas, Pasig, Metro Manila, Philippines

Seminars and workshops are also being offered at TipidPC Events in Ortigas, Pasig City and at Buendia, Makati, Metro Manila, Philippines. Please visit the TPC Events.Org website for more information.

free-seo-company

Get up to £3500 of completely FREE SEO Services to help your business compete online. We will take you well on your way to ranking success! For more information, please visit the Free SEO Company and Services website.

binary-republic

Binary Republic is your online source of computer tutorials on programming, software and computer-related topics on .Net, ASP.net, Database, Java, Linux, Microcontrollers, Open Source, Photoshop, PHP, Tech News, Web Design, Web Development, Wireless technology, among others. Visit the website blog at BinaryRepublic.com.

net-worx

Pay on results guaranteed, cheap SEO and campaigns. Networx is UK'S leading affordable SEO company. Call us on 0207 193 5342 or visit the Networx website.

Joomla Blog Articles and Notes

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Drupal Blog Articles and Notes

Web / Internet Resources

  • 1
  • 2
  • 3

Latest Comments

Web hosting

Archived blogs (CMS Experiences, Blogger/Blogspot)

Archived blogs (Joomla Experiences, Blogger/Blogspot)