简体   繁体   English

Phpmyadmin导入-数据库大小和记录数是否更改?

[英]Phpmyadmin import - change in database size and number of records?

I imported a database using a sql file on 1and1.com... The end message from the host is 我使用1and1.com上的sql文件导入了数据库...来自主机的结束消息是

'Your SQL query has been executed successfully: The content of your file has been inserted.' “您的SQL查询已成功执行:文件内容已插入。”

However, the size of the database is lesser as well as the number of records are less in comparison to the old database when viewed through phpmyadmin. 但是,与通过phpmyadmin查看的旧数据库相比,数据库的大小较小,并且记录数较少。

Why? 为什么?

When you do lots of inserting and deleting, the database gets to be bigger than it should be. 当您进行大量插入和删除操作时,数据库将变得比其应有的更大。 If you backup and then restore it, you are compacting the space used. 如果先备份然后还原,则表示正在压缩使用的空间。

About the row numbers, if your tables are innodb , then the number of records is approximate. 关于行号,如果您的表是innodb ,那么记录数是近似值。

How much of a difference are we talking about? 我们在谈论有什么不同? Can you post specific numbers? 您可以张贴特定号码吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM