knightlost Posted December 16, 2008 Share Posted December 16, 2008 Hi people, first sorry with my english, i'm spanish. My problem is when import my oscommerce from a db mysql 4.x to my new server with mysql 5.x. The error is: -- phpMyAdmin SQL Dump -- version 2.6.0-pl2 -- http://www.phpmyadmin.net -- -- Servidor: 213.xx.xx.xx -- Tiempo de generación: 16-12-2008 a las 17:51:00 -- Versión del servidor: 4.1.22 -- Versión de PHP: 4.3.10 -- -- Base de datos: `ac8655` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `address_book` -- CREATE TABLE `address_book` ( `address_book_id` int( 11 ) NOT NULL AUTO_INCREMENT , `customers_id` int( 11 ) NOT NULL default '0', `entry_gender` char( 1 ) NOT NULL default '', `entry_company` varchar( 32 ) default NULL , `entry_firstname` varchar( 32 ) NOT NULL default '', `entry_lastname` varchar( 32 ) NOT NULL default '', `entry_street_address` varchar( 64 ) NOT NULL default '', `entry_suburb` varchar( 32 ) default NULL , `entry_postcode` varchar( 10 ) NOT NULL default '', `entry_city` varchar( 32 ) NOT NULL default '', `entry_state` varchar( 32 ) default NULL , `entry_country_id` int( 11 ) NOT NULL default '0', `entry_zone_id` int( 11 ) NOT NULL default '0', PRIMARY KEY ( `address_book_id` ) , KEY `idx_address_book_customers_id` ( `customers_id` ) ) ENGINE = MYISAM AUTO_INCREMENT =37DEFAULT CHARSET = latin1 AUTO_INCREMENT =37; MySQL ha dicho: Documentación #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 '`address_book_id` int(11) NOT NULL auto_increment, `customers_id` int(11) NOT ' at line 1 Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 16, 2008 Share Posted December 16, 2008 This code works DROP TABLE IF EXISTS address_book; CREATE TABLE address_book ( address_book_id int NOT NULL auto_increment, customers_id int NOT NULL, entry_gender char(1) NOT NULL, entry_company varchar(32), entry_firstname varchar(32) NOT NULL, entry_lastname varchar(32) NOT NULL, entry_street_address varchar(64) NOT NULL, entry_suburb varchar(32), entry_postcode varchar(10) NOT NULL, entry_city varchar(32) NOT NULL, entry_state varchar(32), entry_country_id int DEFAULT '0' NOT NULL, entry_zone_id int DEFAULT '0' NOT NULL, PRIMARY KEY (address_book_id), KEY idx_address_book_customers_id (customers_id) ); You might want to remove ` and try again Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.