QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

Does MySQL 5.1 have Sequences?

Appendix A. Frequently Asked Questions About MySQL 5.1
No. However, MySQL has an AUTO_INCREMENT system, which in MySQL 5.1 can also handle inserts in a multi-master replication setup. With the --auto-increment-increment and --auto-increment-offset startup options, you can set each server to generate auto-increment values that don't conflict with other servers. The --auto-increment-increment value should be greater than the number of servers, and each server should have a unique offset.

Does MySQL 5.1 have native support for SSL?

Appendix A. Frequently Asked Questions About MySQL 5.1
Most 5.1 binaries have support for SSL connections between the client and server. We can't currently build with the new YaSSL library everywhere, as it's still quite new and does not compile on all platforms yet. See Section 5.9.7, "Using Secure Connections". You can also tunnel a connection via SSH, if (for instance) if the client application doesn't support SSL connections. For an example, see Section 5.9.7.5, "Connecting to MySQL Remotely from Windows with SSH".

Does MySQL 5.1 have a NOW() function with fractions of seconds?

Appendix A. Frequently Asked Questions About MySQL 5.1
No. This is on the MySQL roadmap as a "rolling feature". This means that it is not a flagship feature, but will be implemented, development time permitting. Specific customer demand may change this scheduling. However, MySQL does parse time strings with a fractional component. See Section 11.3.2, "The TIME Type". Yes. MySQL is fully multi-threaded, and will make use of multiple CPUs, provided that the operating system supports them.

Does MySQL 5.1 have statement-level or row-level triggers?

Appendix A. Frequently Asked Questions About MySQL 5.1
In MySQL 5.1, all triggers are FOR EACH ROW - that is, the trigger is activated for each row that is inserted, updated, or deleted. MySQL 5.1 does not support triggers using FOR EACH STATEMENT.

Does MySQL 5.1 have built-in authentication against LDAP directories?

Appendix A. Frequently Asked Questions About MySQL 5.1
No. Support for external authentication methods is on the MySQL roadmap as a "rolling feature", which means that we plan to implement it in the future, but we have not yet determined when this will be done. No. Support for roles is on the MySQL roadmap as a "rolling feature", which means that we plan to implement it in the future, but we have not yet determined when this will be done.

Does MySQL 5.1 have a Query Cache? Does it work on Server, Instance or Database?

Appendix A. Frequently Asked Questions About MySQL 5.1
Yes. The Query Cache operates on the server level, caching complete result sets matched with the original query string. If an exactly identical query is made (which often happens, particularly in web applications), no parsing or execution is necessary; the result is sent directly from the cache. Various tuning options are available. See Section 5.14, "The MySQL Query Cache".

Where can I find information on how to migrate from MySQL 5.0 to MySQL 5.1?

Appendix A. Frequently Asked Questions About MySQL 5.1
For detailed upgrade information, see Section 2.11, "Upgrading MySQL". We recommend that you do not skip a major version when upgrading, but rather complete the process in steps, upgrading from one major version to the next in each step. This may seem more complicated, but it will you save time and trouble - if you encounter problems during the upgrade, their origin will be easier to identify, either by you or - if you have a MySQL Network subscription - by MySQL support.

When did MySQL 5.1 become production-ready (GA)?

Appendix A. Frequently Asked Questions About MySQL 5.1
MySQL 5.0.15 was released for production use on 19 October 2005. We are now working on MySQL 5.1, which is currently in beta.

Can MySQL 5.1 perform ACID transactions?

Appendix A. Frequently Asked Questions About MySQL 5.1
Yes. All current MySQL versions support transactions. The InnoDB storage engine offers full ACID transactions with row-level locking, multi-versioning, non-locking repeatable reads, and all four SQL standard isolation levels.

Are there any new storage engines in MySQL 5.1?

Appendix A. Frequently Asked Questions About MySQL 5.1
Falcon support is not available in the standard MySQL 5.1 release. Falcon is available only in a specially forked release of MySQL 5.1. Information is provided here for evaluation purposes only. There have also been significant improvements in existing storage engines, in particular for the NDB storage engine that forms the basis for MySQL Cluster.

Have any storage engines been removed in MySQL 5.1?

Appendix A. Frequently Asked Questions About MySQL 5.1
Yes. MySQL 5.1 no longer supports the BDB storage engine. Any existing BDB tables should be converted to another storage engine before upgrading to MySQL 5.1.

Can MySQL 5.1 peform multi-table inserts, updates, and deletes?

Appendix A. Frequently Asked Questions About MySQL 5.1
Yes. For the syntax required to perform multi-table updates, see Section 13.2.10, "UPDATE Syntax"; for that required to perform multi-table deletes, see Section 13.2.1, "DELETE Syntax". A multi-table insert can be accomplished using a trigger whose FOR EACH ROW clause contains multiple INSERT statements within a BEGIN ... END block. See Section 19.3, "Using Triggers".

Do the new features in MySQL 5.1 apply to all storage engines?

Appendix A. Frequently Asked Questions About MySQL 5.1
See Chapter 14, Storage Engines and Table Types. That chapter contains information about all MySQL storage engines except for the NDB storage engine used for MySQL Cluster; NDB is covered in Chapter 15, MySQL Cluster.

Can MySQL 5.1 stored routines return result sets?

Appendix A. Frequently Asked Questions About MySQL 5.1
Stored procedures can, but stored functions cannot. If you perform an ordinary SELECT inside a stored procedure, the result set is returned directly to the client. You need to use the MySQL 4.1 (or above) client-server protocol for this to work. This means that - for instance - in PHP, you need to use the mysqli extension rather than the old mysql extension.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact