Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

import .sql fajla da li overwrituje sve tabele i podatke

[es] :: MySQL :: import .sql fajla da li overwrituje sve tabele i podatke

Strane: 1 2

[ Pregleda: 10640 | Odgovora: 24 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

nkrgovic
Nikola Krgović
Beograd

Član broj: 3534
Poruke: 2807

ICQ: 49345867
Sajt: https://www.twinstarsyste..


+655 Profil

icon Re: import .sql fajla da li overwrituje sve tabele i podatke04.11.2016. u 09:43 - pre 90 meseci
Pogledaj ovde:

http://dev.mysql.com/doc/refman/5.7/en/mysqldump.html

Evo, da imas:

Code:
--disable-keys, -K

For each table, surround the INSERT statements with /*!40000 ALTER TABLE tbl_name DISABLE KEYS */; and /*!40000 ALTER TABLE tbl_name ENABLE KEYS */; statements. This makes loading the dump file faster because the indexes are created after all rows are inserted. This option is effective only for nonunique indexes of MyISAM tables.


Alternativno, probaj :

--opt

(imas na istom manualu)


Please do not feed the Trolls!

Blasphemy? How can I blaspheme? I'm a god!'
 
Odgovor na temu

anon70939

Član broj: 70939
Poruke: 2823



+6883 Profil

icon Re: import .sql fajla da li overwrituje sve tabele i podatke04.11.2016. u 10:35 - pre 90 meseci
Hvala,

dumpovao sam sa i bez --disable-keys i u oba slucaja dobijam isti rezultat, i vec mi se oko INSERT INTO nalazi "DISABLE KEYS".

Evo ovo levo je bez -K, a desno sa -K



Prikačeni fajlovi
 
Odgovor na temu

nkrgovic
Nikola Krgović
Beograd

Član broj: 3534
Poruke: 2807

ICQ: 49345867
Sajt: https://www.twinstarsyste..


+655 Profil

icon Re: import .sql fajla da li overwrituje sve tabele i podatke04.11.2016. u 11:35 - pre 90 meseci
Pa pise ti u manualu - to je default.
Please do not feed the Trolls!

Blasphemy? How can I blaspheme? I'm a god!'
 
Odgovor na temu

anon70939

Član broj: 70939
Poruke: 2823



+6883 Profil

icon Re: import .sql fajla da li overwrituje sve tabele i podatke04.11.2016. u 11:49 - pre 90 meseci
Dakle, na taj nacin ipak ne mogu da ubrzam import sql fajla :), jer je vec "ubrzan"
 
Odgovor na temu

bogdan.kecman
Bogdan Kecman
"specialist"
Oracle
srbistan

Član broj: 201406
Poruke: 15887
*.com
Via: [es] mailing liste

Sajt: mysql.rs


+2377 Profil

icon Re: import .sql fajla da li overwrituje sve tabele i podatke04.11.2016. u 17:11 - pre 90 meseci
ako ne koristis skip-opt (sto ja svakako savetujem, skip-opt pa onda
namestis tacno sta hoces, "opt" je neka "preporuceni default" varijanta)
 
Odgovor na temu

[es] :: MySQL :: import .sql fajla da li overwrituje sve tabele i podatke

Strane: 1 2

[ Pregleda: 10640 | Odgovora: 24 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.