![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 325 Pomógł: 33 Dołączył: 31.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
Cześć.
W jaki sposób mogę przekopiować zawartość tabeli wraz z jej relacjami do nowej bazy z taką samą strukturą tabel? Na poniższym schemacie umieściłem przykład tabel wraz z relacjami. (IMG:http://vpx.pl/i/2014/02/12/Diagram1.png) |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 29 Pomógł: 6 Dołączył: 5.04.2013 Skąd: W Ostrzeżenie: (0%) ![]() ![]() |
mysqldump -h [server] -u [user] -p[password] db1 | mysql -h [server] -u [user] -p[password] db2
db2 is the target database, where the source database db1 will be copied. http://dev.mysql.com/doc/refman/5.7/en/copying-databases.html Ten post edytował abjk 12.02.2014, 14:50:44 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 06:42 |