Jump to content

Recommended Posts

Posted

I am getting an error while trying to import database on mysql 5.5. Here is the error:

 

 

Error

 

SQL query:

CREATE TABLE `dp_banks` (

`id`
(
11
)
NULL
AUTO_INCREMENT
,

`owner`
(
11
)
NULL
DEFAULT
'0'
,

`bname`
(
128
)
NULL
DEFAULT
''
,

`baddress`
(
128
)
NULL
DEFAULT
''
,

`bcity`
(
64
)
NULL
DEFAULT
''
,

`bzip`
(
16
)
NULL
DEFAULT
''
,

`bcountry`
(
2
)
NULL
DEFAULT
''
,

`bstate`
(
32
)
NULL
DEFAULT
''
,

`bphone`
(
32
)
NULL
DEFAULT
''
,

`bnameacc`
(
128
)
NULL
DEFAULT
''
,

`baccount`
(
32
)
NULL
DEFAULT
''
,

`btype`
(
2
)
NULL
DEFAULT
''
,

`brtgnum`
(
9
)
NULL
DEFAULT
''
,

`bswift`
(
32
)
NULL
DEFAULT
''
,

`status`
(
1
)
NULL
DEFAULT
'0'
,

`default`
(
1
)
NULL
DEFAULT
'0'
,

PRIMARY
KEY
(
`id`
)
) TYPE = MYISAM AUTO_INCREMENT =1;

 

 

 

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=1' at line 19

  • Like 3
Posted

It should be ENGINE, and the DEFAULT CHARSET should also be defined:

ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...