Solved

Trying to import mysql file via phpmyadmin.  Error message

Posted on 2013-06-14
2
676 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

785 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