Site hostta çalışıyor. Fakat test için localhost' a aldığım da böyle bir sorunla karşılaştım. Neden kaynaklanır, çözümü nedir ?
CREATE TABLE IF NOT EXISTS `ayarlar` (
`id` İNT( 11 ) UNSİGNED NOT NULL AUTO_INCREMENT ,
`siteadi` VARCHAR( 255 ) NOT NULL ,
`siteicinkesiklink` VARCHAR( 255 ) NOT NULL ,
`siteicingreyboxlink` VARCHAR( 255 ) NOT NULL ,
`siteicinlink` VARCHAR( 255 ) NOT NULL ,
`siteicinssllink` VARCHAR( 255 ) NOT NULL ,
`siteicinmail` VARCHAR( 255 ) NOT NULL ,
`yeniuyebedavailansayisi` İNT( 255 ) NOT NULL ,
`aktivasyonluuyelik` İNT( 1 ) NOT NULL ,
`ilansayilarigosterimi` İNT( 1 ) NOT NULL ,
`anasayfaustreklam` VARCHAR( 255 ) NOT NULL ,
`anasayfaaltreklam` VARCHAR( 255 ) NOT NULL ,
`magazasayilarigosterimi` İNT( 1 ) NOT NULL ,
`komisyonoraniuye` DOUBLE NOT NULL ,
`komisyonoranimagaza` DOUBLE NOT NULL ,
`turkcellmobilodemeustlimit` DOUBLE NOT NULL ,
`bedavailandurumualisveris` İNT( 1 ) NOT NULL ,
`bedavailandurumuemlak` İNT( 1 ) NOT NULL ,
`bedavailandurumuvasita` İNT( 1 ) NOT NULL ,
`yayinsuresiucretionbesgun` DOUBLE NOT NULL ,
`yayinsuresiucretibiray` DOUBLE NOT NULL ,
`yayinsuresiucretiikiay` DOUBLE NOT NULL ,
`anasayfavitrinucreti` DOUBLE NOT NULL ,
`vitrinucreti` DOUBLE NOT NULL ,
`kalinyaziucreti` DOUBLE NOT NULL ,
`farklirenkucreti` DOUBLE NOT NULL ,
`acilucreti` DOUBLE NOT NULL ,
`magazafiyatiaylik` DOUBLE NOT NULL ,
`magazafiyatiucaylik` DOUBLE NOT NULL ,
`magazafiyatialtiaylik` DOUBLE NOT NULL ,
`magazafiyatiyillik` DOUBLE NOT NULL ,
`magazaanasayfavitrinyayinsayisiaylik` İNT( 255 ) NOT NULL ,
`magazaanasayfavitrinyayinsayisiucaylik` İNT( 255 ) NOT NULL ,
`magazaanasayfavitrinyayinsayisialtiaylik` İNT( 255 ) NOT NULL ,
`magazaanasayfavitrinyayinsayisiyillik` İNT( 255 ) NOT NULL ,
`magazavitrinyayinsayisiaylik` İNT( 255 ) NOT NULL ,
`magazavitrinyayinsayisiucaylik` İNT( 255 ) NOT NULL ,
`magazavitrinyayinsayisialtiaylik` İNT( 255 ) NOT NULL ,
`magazavitrinyayinsayisiyillik` İNT( 255 ) NOT NULL ,
`ilanyayinlariicinanasanalpos` VARCHAR( 255 ) NOT NULL ,
`description` VARCHAR( 2000 ) NOT NULL ,
`keywords` VARCHAR( 1500 ) NOT NULL ,
`footerlink` VARCHAR( 255 ) NOT NULL ,
`sharerlink` VARCHAR( 225 ) NOT NULL ,
`smtp` VARCHAR( 225 ) NOT NULL ,
`mailsifre` VARCHAR( 225 ) NOT NULL ,
`mailadi` VARCHAR( 225 ) NOT NULL ,
`sbdmagaza` VARCHAR( 225 ) NOT NULL ,
`logo` VARCHAR( 225 ) NOT NULL ,
`altlogo` VARCHAR( 225 ) NOT NULL ,
`facebook` VARCHAR( 225 ) NOT NULL ,
`twitter` VARCHAR( 225 ) NOT NULL ,
`google` VARCHAR( 225 ) NOT NULL ,
`googleapi` VARCHAR( 225 ) NOT NULL ,
`googlemap` VARCHAR( 500 ) NOT NULL ,
`footer` TEXT NOT NULL ,
`demo` İNT( 11 ) NOT NULL
) ENGINE = MYISAM DEFAULT CHARSET = latin5 AUTO_INCREMENT =2;
MySQL çıktısı: Belgeler
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key