jarekjr
19.11.2008, 17:05:58
Korzystam z WAMPSerwer5 i tworze w konsoli serwera mysql baze danych i potem tabele (mają rozszerzenie *.frm). Wszystko jest OK ale jak kopiuje te bazy danych razem z tabelami na inny komputer i chce sie z nimi połaczyć wyskakuje ze taka tabela nie istnieje. Kopiuje do tego samego folderu, wamp jest tak samo skonfigurowany. Czy ktos wie o co chodzi? Nie chce mi sie za kazdym razem tworzyc odnowa tabel, kiedy chce odpalic stronke na innym komputerze.
erix
19.11.2008, 17:10:23
Nie musisz tworzyć tabel od nowa, wyeksportuj bazę przez mysqldump i odpowiednio importuj na kompie docelowym.
jarekjr
19.11.2008, 18:53:23
a nie da się tego normalnie skopiować z jednego kompa na drugi?
erix
19.11.2008, 19:03:02
http://dev.mysql.com/doc/refman/5.0/en/upg...ng-to-arch.htmlCytat
You can copy the .frm, .MYI, and .MYD files for MyISAM tables between different architectures that support the same floating-point format. (MySQL takes care of any byte-swapping issues.) See Section 13.1, “The MyISAM Storage Engine”.
In cases where you need to transfer databases between different architectures, you can use mysqldump to create a file containing SQL statements. You can then transfer the file to the other machine and feed it as input to the mysql client.
jarekjr
19.11.2008, 19:47:43
jeszcze jakbyś mi to przetłumaczył....