FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Baza danych

 


SkorpioN
Witam!
Zgrałem tabele z bazy danych z serwisu darmoland
i chcąc wgrać Je do mojej bazy danych tutaj wyskakuje mi:

Code:

Błąd
zapytanie SQL:

# phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Host: localhost
# Czas wygenerowania: 10 gru 2005, 11:15
# Wersja serwera: 4.1.13
# Wersja PHP: 5.0.4
#
# Baza danych : `db15279`
#
# --------------------------------------------------------
#
# Struktura tabeli dla `kons`
#
CREATE TABLE `kons` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`owner` int( 11 ) NOT NULL default '0',
`size` int( 11 ) NOT NULL default '1',
`value` int( 11 ) NOT NULL default '1',
`bedroom` char( 1 ) NOT NULL default 'N',
`wardrobe` int( 11 ) NOT NULL default '0',
`points` int( 11 ) NOT NULL default '10',
`name` varchar( 60 ) default NULL ,
`used` int( 11 ) NOT NULL default '0',
`build` int( 11 ) NOT NULL default '0',
`rest` char( 1 ) NOT NULL default 'N',
`locator` int( 11 ) NOT NULL default '0',
`locrest` char( 1 ) NOT NULL default 'N',
`cost` int( 11 ) NOT NULL default '0',
`seller` int( 11 ) NOT NULL default '0',
KEY `id` ( `id` ) ,
KEY `owner` ( `owner` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 PACK_KEYS =0 AUTO_INCREMENT =16
MySQL zwrócił komunikat: 

#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 'DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=16' at line 3
 


Co zrobić aby wgrać te tabele?
ozyrys
Usuń to co przeszkadza, czyli
Code:

ENGINE = MYISAM DEFAULT CHARSET = latin1 PACK_KEYS =0 AUTO_INCREMENT =16

jak będzie działać to wszytko w porządku a jeżeli nie to pokombinuj z kodowaniem .
Byc może na fih jest nowasza wersja bazy danych niz na twoim wcześniejszym serwerze i naprawione błedy z wczęsniejszych wersji na frihu już nie działają .

pozdrawim
^^ozi
SkorpioN
Ja sie nie zbyt znam na Mysql, usunołem tamto i:

Code:

Błąd
zapytanie SQL:

# phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Host: localhost
# Czas wygenerowania: 10 gru 2005, 11:15
# Wersja serwera: 4.1.13
# Wersja PHP: 5.0.4
#
# Baza danych : `db15279`
#
# --------------------------------------------------------
#
# Struktura tabeli dla `kons`
#
CREATE TABLE `kons` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`owner` int( 11 ) NOT NULL default '0',
`size` int( 11 ) NOT NULL default '1',
`value` int( 11 ) NOT NULL default '1',
`bedroom` char( 1 ) NOT NULL default 'N',
`wardrobe` int( 11 ) NOT NULL default '0',
`points` int( 11 ) NOT NULL default '10',
`name` varchar( 60 ) default NULL ,
`used` int( 11 ) NOT NULL default '0',
`build` int( 11 ) NOT NULL default '0',
`rest` char( 1 ) NOT NULL default 'N',
`locator` int( 11 ) NOT NULL default '0',
`locrest` char( 1 ) NOT NULL default 'N',
`cost` int( 11 ) NOT NULL default '0',
`seller` int( 11 ) NOT NULL default '0',
KEY `id` ( `id` ) ,
KEY `owner` ( `owner` )
)#
# Zrzut danych tabeli `kons`
#
INSERT INTO `kons`
VALUES ( 1, 1, 1, 1, 'N', 0, 0, 'Biały Mustang', 0, 1, 'N', 0, 'N', 0, 0 )
MySQL zwrócił komunikat: 

#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 'INSERT INTO `kons` VALUES (1, 1, 1, 1, 'N', 0, 0, 'Biały Mustan 


Usunołem to co jest po zrzut danych bla bla i mam :

Code:

Błąd
zapytanie SQL:

# phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Host: localhost
# Czas wygenerowania: 10 gru 2005, 11:15
# Wersja serwera: 4.1.13
# Wersja PHP: 5.0.4
#
# Baza danych : `db15279`
#
# --------------------------------------------------------
#
# Struktura tabeli dla `kons`
#
CREATE TABLE `kons` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`owner` int( 11 ) NOT NULL default '0',
`size` int( 11 ) NOT NULL default '1',
`value` int( 11 ) NOT NULL default '1',
`bedroom` char( 1 ) NOT NULL default 'N',
`wardrobe` int( 11 ) NOT NULL default '0',
`points` int( 11 ) NOT NULL default '10',
`name` varchar( 60 ) default NULL ,
`used` int( 11 ) NOT NULL default '0',
`build` int( 11 ) NOT NULL default '0',
`rest` char( 1 ) NOT NULL default 'N',
`locator` int( 11 ) NOT NULL default '0',
`locrest` char( 1 ) NOT NULL default 'N',
`cost` int( 11 ) NOT NULL default '0',
`seller` int( 11 ) NOT NULL default '0',
KEY `id` ( `id` ) ,
KEY `owner` ( `owner` )
)# --------------------------------------------------------
#
# Struktura tabeli dla `pary`
#
CREATE TABLE `pary` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`prisoner` int( 11 ) NOT NULL default '0',
`prisonerp` int( 11 ) NOT NULL default '0',
`data` date NOT NULL default '0000-00-00',
`verdict` text NOT NULL ,
`cost` int( 11 ) NOT NULL default '0',
KEY `id` ( `id` )
)#
# Zrzut danych tabeli `pary`
#
INSERT INTO `pary`
VALUES ( 2, 42, 1, '2005-10-05', 'Prawdziwa miłośc...', 2147483647 )
MySQL zwrócił komunikat: 

#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 'CREATE TABLE `pary` (
  `id` int(11) NOT NULL auto_increment,
SkorpioN
Dzięki już sobie poradziłem Smile
Arin
Fajnie by było gdybyś napisał co powodowało błąd, żeby inni mogli sobie tego poszukać w razie takiego samego problemu =).

Cheers,
Arin.
SkorpioN
Noo ok.

Błąd powodowało:

#
# Zrzut danych tabeli `xxx`

i to co jest dalej i:

) ENGINE = MYISAM DEFAULT CHARSET = latin1 PACK_KEYS =0 AUTO_INCREMENT =16

aby błędu nie było trzeba usunąć zrzut danych i to po enigne Smile
Related topics

Baza danych
najoryginalniejsze przypadki utraty danych wg Ontrack
Instalowanie forum
Post- Nuke
Jak dowiedzielisce sie o FRIHOST?

Darmowe skrypty forum
KONKURS NA STRONKE WWW
Problem ze strona
Witaj wsrod nas :)
Zle wiesci na temat serwera 2 (*.frih.net)

Antywirus
dużo zajętego miejsca na serwerze
Oczekiwanie na konto, punkty i inne
Google vs Microsoft-jak pies ogrodnika?
Atak na phpBB
Reply to topic    Frihost Forum Index -> Language Forums -> Polish

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.