Solved

Trying to import mysql file via phpmyadmin.  Error message

Posted on 2013-06-14
2
680 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
&& operators not performing required logic 8 40
How do I allow for non standard CSV file 9 45
SQL Function 4 38
MySql Qry performance  (Ver 5.5.17) 1 17
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

734 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