![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. |
#3
| |||
| |||
|
|
remigio: I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. Please, compare the INSERT statements in both files. I assume, that their styles are different (e.g. with or without field name list). In phpMyAdmin, you can switch several styles on or off. -- Erick |
#4
| |||
| |||
|
|
On 24 Giu, 09:53, "Erick T. Barkhuis" <erick.use-... (AT) ardane (DOT) c.o.m wrote: remigio: I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. Please, compare the INSERT statements in both files. I assume, that their styles are different (e.g. with or without field name list). In phpMyAdmin, you can switch several styles on or off. It means that it's the same thing using one of the two methods? |
#5
| |||
| |||
|
|
Hi, I've a doubt about the backup method to dump a mysql database. I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. |
|
My question is: are there some lost data using mysqldump instead of export on Phpmyadmin? Are there some other options to include in mysqldump for a complete dump? Thank you so much. |
#6
| |||
| |||
|
|
"remigio" <linoreale (AT) gmail (DOT) com> wrote in message news:864c780c-b062-492a-984d-3aa85ad2a95a (AT) e5g2000yqn (DOT) googlegroups.com. .. ... and the resulting file size is 1.031 KB. Your Phpmyadmin sql export dump, should that be 1.031MB rather than KB? (If it were KB then 1.031KB vs 900KB would indicate a serious problem with the sql export in phpmyadmin.) |
|
Why not test it and restore both to different and new databases and you can then run some sql to check that the data in both is the same. |
#7
| |||
| |||
|
|
"remigio" <linoreale (AT) gmail (DOT) com> wrote in message news:864c780c-b062-492a-984d-3aa85ad2a95a (AT) e5g2000yqn (DOT) googlegroups.com. .. ... and the resulting file size is 1.031 KB. Your Phpmyadmin sql export dump, should that be 1.031MB rather than KB? (If it were KB then 1.031KB vs 900KB would indicate a serious problem with the sql export in phpmyadmin.) |
|
Why not test it and restore both to different and new databases and you can then run some sql to check that the data in both is the same. |
#8
| |||
| |||
|
|
"remigio" <linore... (AT) gmail (DOT) com> wrote in message news:864c780c-b062-492a-984d-3aa85ad2a95a (AT) e5g2000yqn (DOT) googlegroups.com... Hi, I've a doubt about the backup method to dump a mysql database. I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. Your Phpmyadmin sql export dump, should that be 1.031MB rather than KB? (If it were KB then 1.031KB vs 900KB would indicate a serious problem with the sql export in phpmyadmin.) My question is: are there some lost data using mysqldump instead of export on Phpmyadmin? Are there some other options to include in mysqldump for a complete dump? Thank you so much. I don't use PHP so haven't used Phpmyadmin, but I fully trust mysqldump and would expect the sql export from phpmyadmin to be as good. Why not test it and restore both to different and new databases and you can then run some sql to check that the data in both is the same. But (like Erick has indicated) I think you'll just be chasing the fact that they both structure the backup file slightly differently and that that is what accounts for the difference in size. -- Brian Cryerhttp://www.cryer.co.uk/brian |
#9
| |||
| |||
|
|
remigio: On 24 Giu, 09:53, "Erick T. Barkhuis" <erick.use-... (AT) ardane (DOT) c.o.m wrote: remigio: I've tried to dump a database using "Sql export" on Phpmyadmin interface and the resulting file size is 1.031 KB. I've also tried a dump with: mysqldump -u root -ppassword --databases dbname > destination and the resulting file size is about 900 Kb. Please, compare the INSERT statements in both files. I assume, that their styles are different (e.g. with or without field name list). In phpMyAdmin, you can switch several styles on or off. It means that it's the same thing using one of the two methods? Both backups will contain all data. The generated INSERTs are differently written. So yes, you can use both files and, upon restore, the table contents will be as backed up. Technically, it's not "the same thing", but both methods will lead to the same result. -- Erick |
#10
| |||
| |||
|
|
Brian Cryer: "remigio" <linoreale (AT) gmail (DOT) com> wrote in message news:864c780c-b062-492a-984d-3aa85ad2a95a (AT) e5g2000yqn (DOT) googlegroups.com. .. ... and the resulting file size is 1.031 KB. Your Phpmyadmin sql export dump, should that be 1.031MB rather than KB? (If it were KB then 1.031KB vs 900KB would indicate a serious problem with the sql export in phpmyadmin.) The dot is most likely not a decimal point. It's a thousands separator, for which some still use a silly comma. (But I'm pretty sure you were aware of this) |
![]() |
| Thread Tools | |
| Display Modes | |
| |