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
Solved

Trying to import mysql file via phpmyadmin.  Error message

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SubQuery link 4 35
Moving from Mcrypt to OpenSSL 18 45
Read a remote csv file from a https URL 8 47
How do I show metrics with PHP or Javascript 6 31
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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 …
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 count occurrences of each item in an array.

840 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