14.1.4 Testing and Benchmarking with InnoDB
作者:互联网
- If InnoDB is not your default storage engine, you can determine if your database server or applications work correctly with InnoDB by restarting the server with --default-storage-engine=InnoDB defined on the command line or with default-storage-engine=innodb defined in the [mysqld] section of the my.cnf configuration file.
- 如果InnoDB不是您的默认存储引擎,您可以通过在命令行中定义 --default-storage-engine=InnoDB 或在my.cnf配置文件的[mysqld]部分中定义的default-storage-engine=innodb 来重新启动服务器确定您的数据库服务器或应用程序是否与InnoDB正确地工作。
- Since changing the default storage engine only affects new tables as they are created, run all your application installation and setup steps to confirm that everything installs properly. Then exercise all the application features to make sure all the data loading, editing, and querying features work. If a table relies on some MyISAM-specific feature, you'll receive an error; add the ENGINE=MyISAM clause to the CREATE TABLE statement to avoid the error,
- 因为更改默认存储引擎仅在创建新表时影响它们,请运行所有应用程序安装和安装步骤,以确认一切安装正确,然后,运行所有应用程序特性,确保所有数据加载、编辑和查询功能正常工作。如果某个表依赖了一些myisam的特性,你会收到一个错误,在CREATE TABLE后面添加ENGINE=MyISAM来避免错误
- If you did not make a deliberate decision about the storage engine, and you just want to preview how certain tables work when they're created under InnoDB, issue the command ALTER TABLE table_name ENGINE=InnoDB; for each table. Or, to run test queries and other statements without disturbing the original table, make a copy like so:
- 如果您没有对存储引擎做出慎重的决定,而你只是想要预览某些表在InnoDB下创建时是如何工作的,,发出 ALTER TABLE table_name ENGINE=InnoDB命令可以修改每一张表或者想在不干扰原始表的情况下运行测试查询和其他语句,像这样复制一份
- To get a true idea of the performance with a full application under a realistic workload, install the latest MySQL server and run benchmarks.
- *要在实际工作负载下以完整的应用程序获取性能的真实情况, 请安装最新的MySQL服务器并运行基准测试。
- Test the full application lifecycle, from installation, through heavy usage, and server restart. Kill the server process while the database is busy to simulate a power failure, and verify that the data is recovered successfully when you restart the server.
- 测试整个应用程序生命周期,从安装,通过大量使用,再重新启动服务器。当数据库忙着模拟电源故障时,杀死服务器进程,并在重新启动服务器时验证数据是否成功恢复
- Test any replication configurations, especially if you use different MySQL versions and options on the master and the slaves.
- 测试任何复制配置, 尤其是在master和slave使用不同的 MySQL 版本和选项时。。
标签:engine,14.1,default,Testing,storage,server,InnoDB,table 来源: http://blog.51cto.com/itzhoujun/2351789