Solved

Trying to import mysql file via phpmyadmin.  Error message

Posted on 2013-06-14
2
679 Views
Last Modified: 2013-06-14
Hello Mysql experts.

I'm trying to import a file into a mysql database using phpmyadmin.

Here's the first error I get.  Hopefully fixing it will let me import the complete file.

Error
SQL query:

CREATE TABLE  `#__ak_profiles` (

`id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`description` VARCHAR( 255 ) NOT NULL ,
`configuration` LONGTEXT,
`filters` LONGTEXT,
PRIMARY KEY (  `id` )
) TYPE = MYISAM AUTO_INCREMENT =2;

MySQL said: 

#1064 - 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 AUTO_INCREMENT=2' at line 1 

Open in new window

That's the error. If you need a snippet from the sql text file, let me know.

Here's some info regarding the version of mysql etc.

Server: Localhost via UNIX socket
Server version: 5.5.23-55
Protocol version: 10
User: chiropra@localhost
MySQL charset: UTF-8 Unicode (utf8)

cpsrvd 11.34.1.16
MySQL client version: 5.5.23
PHP extension: mysql

Thanks!

Rowby
0
Comment
Question by:Rowby Goren
2 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 39249410
it should be ENGINE=MYISAM, not TYPE
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39249496
Thanks!

Your solution fixed a big headache!

Rowby
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question