|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 1,141
|
sql help?
Trying to import a sql file into a new DB i made.
i get this error when i go to import it PHP Code:
PHP Code:
Any ideas? |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 1,141
|
mysql (4.0.22-standard) btw
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
ENGINE=INNODB DEFAULT CHARSET=latin1;
I am going to say the engine declare. If you don't need it to be specifically MyIsam, take it out and see if that works... it should. Basically it's like forcing it to one type and sometimes the different types aren't accepted for that specific charset or engine type. Goodluck!
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
Nvm,
`gal_id` int(11) NOT NULL auto_increment, it should be: `gal_id` int(11) auto_increment NOT NULL ,
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 1,141
|
so try it as
[HTML]DROP TABLE IF EXISTS `exporter`; CREATE TABLE `exporter` ( `gal_id` int(11) NOT NULL auto_increment, `gal_title` text NOT NULL, `gal_link` text NOT NULL, `site_name` text NOT NULL, `nn_nude` varchar(4) NOT NULL default '', `gal_short` text NOT NULL, `gal_long` text NOT NULL, `num_thumbs` int(11) NOT NULL default '0', `pic_vid` char(3) NOT NULL default '', `thumb_url` text NOT NULL, `site_url` text NOT NULL, PRIMARY KEY (`gal_id`) ) DEFAULT CHARSET=latin1; [/HTML] ? |
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
Quote:
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
|
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 1,141
|
tried both of those, same error now on all 3 ways
|
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
Hold on, I'll take a look...
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Dec 2004
Posts: 363
|
Quote:
no, thats entirely wrong the CHARSET is not supported in 4.0.x you'll want to drop the default charset or upgrade to mysql 4.1.x |
|
|
|
|
|
|
#10 |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 1,141
|
k fixed i changed
) ENGINE=INNODB DEFAULT CHARSET=latin1; to ) ENGINE=INNODB; and it worked. thanks www.wiresix.com for the help :P |
|
|
|
|
|
#11 | |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
Quote:
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
|
|
|
|