Manuel MySQL
Table des matières
- C.1. Changements de la version 5.0.0 (Développement)
-
- C.1.1. Changements de la version 5.0.6 (pas encore publiée)
- C.1.2. Changements de la version 5.0.5 (Bientôt publiée)
- C.1.3. Changements de la version 5.0.4 (16 avril 2005)
- C.1.4. Changements de la version 5.0.3 (23 mars 2005 : Beta)
- C.1.5. Changements de la version 5.0.2 (1er Décembre 2004)
- C.1.6. Changements de la version 5.0.1 (pas encore publiée)
- C.1.7. Changements de la version 5.0.0 (22 décembre 2003 : Alpha)
- C.2. Changements de la version 4.1.x (Alpha)
-
- C.2.1. Changements de la version 4.1.12 (Pas encore publiée)
- C.2.2. Changements de la version 4.1.11 (1 avril 2005)
- C.2.3. Changements de la version 4.1.10 (12 février 2005)
- C.2.4. Changements de la version 4.1.9 (11 Janvier 2005)
- C.2.5. Changements de la version 4.1.8 (14 Décembre 2004)
- C.2.6. Changements de la version 4.1.7 (bientôt publiée)
- C.2.7. Changements de la version 4.1.6 (10 Octobre 2004)
- C.2.8. Changements de la version 4.1.4 (16 Septembre 2004)
- C.2.9. Changements de la version 4.1.4 (26 Août 2004)
- C.2.10. Changements de la version 4.1.3 (pas encore publiée)
- C.2.11. Changements de la version 4.1.2
- C.2.12. Changements de la version 4.1.1 (01 décembre 2003)
- C.2.13. Changements de la version 4.1.0 (03 Avril 2003 : alpha)
- C.3. Changements de la version 4.0.x (Production)
-
- C.3.1. Changements de la version 4.0.25 (pas encore publié)
- C.3.2. Changements de la version 4.0.24 (04 Mars 2005)
- C.3.3. Changements de la version 4.0.23 (18 Décembre 2004)
- C.3.4. Changements de la version 4.0.22 (27 Octobre 2004)
- C.3.5. Changements de la version 4.0.21
- C.3.6. Changements de la version 4.0.20
- C.3.7. Changements de la version 4.0.19 (04 mai 2004)
- C.3.8. Changements de la version 4.0.18 (pas encore publiée)
- C.3.9. Changements de la version 4.0.17 (14 décembre 2003)
- C.3.10. Changements de la version 4.0.16 (17 octobre 2003)
- C.3.11. Changements de la version 4.0.15 (03 septembre 2003)
- C.3.12. Changements de la version 4.0.14 (18 juillet 2003)
- C.3.13. Changements de la version 4.0.13 (16 Mai 2003)
- C.3.14. Changements de la version 4.0.12 (15 Mars 2003 : Production)
- C.3.15. Changements de la version 4.0.11 (20 Février 2003)
- C.3.16. Changements de la version 4.0.10 (29 janvier 2003)
- C.3.17. Changements de la version 4.0.9 (09 janvier 2003)
- C.3.18. Changements de la version 4.0.8 (07 janvier 2003)
- C.3.19. Changements de la version 4.0.7 (20 Décembre 2002)
- C.3.20. Changements de la version 4.0.6 (14 Décembre 2002 : Gamma)
- C.3.21. Changements de la version 4.0.5 (13 novembre 2002)
- C.3.22. Changements de la version 4.0.4 (29 septembre 2002)
- C.3.23. Changements de la version 4.0.3 (26 Août 2002 : Beta)
- C.3.24. Changements de la version 4.0.2 (01 Juillet 2002)
- C.3.25. Changements de la version 4.0.1 (23 décembre 2001)
- C.3.26. Changements de la version 4.0.0 (Octobre 2001 : alpha)
- C.4. Changements de la version 3.23.x (Recent; still supported)
-
- C.4.1. Changements de la version 3.23.59 (not released yet)
- C.4.2. Changements de la version 3.23.58 (11 septembre 2003)
- C.4.3. Changements de la version 3.23.57 (06 juin 2003)
- C.4.4. Changements de la version 3.23.56 (13 mars 2003)
- C.4.5. Changements de la version 3.23.55 (23 janvier 2003)
- C.4.6. Changements de la version 3.23.54 (05 décembre 2002)
- C.4.7. Changements de la version 3.23.53 (09 octobre 2002)
- C.4.8. Changements de la version 3.23.52 (14 août 2002)
- C.4.9. Changements de la version 3.23.51 (31 mai 2002)
- C.4.10. Changements de la version 3.23.50 (21 avril 2002)
- C.4.11. Changements de la version 3.23.49
- C.4.12. Changements de la version 3.23.48 (07 février 2002)
- C.4.13. Changements de la version 3.23.47 (27 décembre 2001)
- C.4.14. Changements de la version 3.23.46 (29 novembre 2001)
- C.4.15. Changements de la version 3.23.45 (22 novembre 2001)
- C.4.16. Changements de la version 3.23.44 (31 octobre 2001)
- C.4.17. Changements de la version 3.23.43 (04 octobre 2001)
- C.4.18. Changements de la version 3.23.42 (08 septembre 2001)
- C.4.19. Changements de la version 3.23.41 (11 août 2001)
- C.4.20. Changements de la version 3.23.40
- C.4.21. Changements de la version 3.23.39 (12 juin 2001)
- C.4.22. Changements de la version 3.23.38 (09 mai 2001)
- C.4.23. Changements de la version 3.23.37 (17 avril 2001)
- C.4.24. Changements de la version 3.23.36 (27 mars 2001)
- C.4.25. Changements de la version 3.23.35 (15 mars 2001)
- C.4.26. Changements de la version 3.23.34a
- C.4.27. Changements de la version 3.23.34 (10 mars 2001)
- C.4.28. Changements de la version 3.23.33 (09 février 2001)
- C.4.29. Changements de la version 3.23.32 (22 Jan 2001: Production)
- C.4.30. Changements de la version 3.23.31 (17 janvier 2001)
- C.4.31. Changements de la version 3.23.30 (04 janvier 2001)
- C.4.32. Changements de la version 3.23.29 (16 décembre 2000)
- C.4.33. Changements de la version 3.23.28 (22 Nov 2000: Gamma)
- C.4.34. Changements de la version 3.23.27 (24 octobre 2000)
- C.4.35. Changements de la version 3.23.26 (18 octobre 2000)
- C.4.36. Changements de la version 3.23.25 (29 septembre 2000)
- C.4.37. Changements de la version 3.23.24 (08 septembre 2000)
- C.4.38. Changements de la version 3.23.23 (01 septembre 2000)
- C.4.39. Changements de la version 3.23.22 (31 juillet 2000)
- C.4.40. Changements de la version 3.23.21
- C.4.41. Changements de la version 3.23.20
- C.4.42. Changements de la version 3.23.19
- C.4.43. Changements de la version 3.23.18
- C.4.44. Changements de la version 3.23.17
- C.4.45. Changements de la version 3.23.16
- C.4.46. Changements de la version 3.23.15 (May 2000: Beta)
- C.4.47. Changements de la version 3.23.14
- C.4.48. Changements de la version 3.23.13
- C.4.49. Changements de la version 3.23.12 (07 mars 2000)
- C.4.50. Changements de la version 3.23.11
- C.4.51. Changements de la version 3.23.10
- C.4.52. Changements de la version 3.23.9
- C.4.53. Changements de la version 3.23.8 (02 janvier 2000)
- C.4.54. Changements de la version 3.23.7 (10 décembre 1999)
- C.4.55. Changements de la version 3.23.6
- C.4.56. Changements de la version 3.23.5 (20 octobre 1999)
- C.4.57. Changements de la version 3.23.4 (28 septembre 1999)
- C.4.58. Changements de la version 3.23.3
- C.4.59. Changements de la version 3.23.2 (09 août 1999)
- C.4.60. Changements de la version 3.23.1
- C.4.61. Changements de la version 3.23.0 (05 Aug 1999: Alpha)
- C.5. Changements de la version 3.22.x (Old; discontinued)
-
- C.5.1. Changements de la version 3.22.35
- C.5.2. Changements de la version 3.22.34
- C.5.3. Changements de la version 3.22.33
- C.5.4. Changements de la version 3.22.32 (14 février 2000)
- C.5.5. Changements de la version 3.22.31
- C.5.6. Changements de la version 3.22.30
- C.5.7. Changements de la version 3.22.29 (02 janvier 2000)
- C.5.8. Changements de la version 3.22.28 (20 octobre 1999)
- C.5.9. Changements de la version 3.22.27
- C.5.10. Changements de la version 3.22.26 (16 septembre 1999)
- C.5.11. Changements de la version 3.22.25
- C.5.12. Changements de la version 3.22.24 (05 juillet 1999)
- C.5.13. Changements de la version 3.22.23 (08 juin 1999)
- C.5.14. Changements de la version 3.22.22 (30 avril 1999)
- C.5.15. Changements de la version 3.22.21
- C.5.16. Changements de la version 3.22.20 (18 mars 1999)
- C.5.17. Changements de la version 3.22.19 (Mar 1999: Production)
- C.5.18. Changements de la version 3.22.18
- C.5.19. Changements de la version 3.22.17
- C.5.20. Changements de la version 3.22.16 (Feb 1999: Gamma)
- C.5.21. Changements de la version 3.22.15
- C.5.22. Changements de la version 3.22.14
- C.5.23. Changements de la version 3.22.13
- C.5.24. Changements de la version 3.22.12
- C.5.25. Changements de la version 3.22.11
- C.5.26. Changements de la version 3.22.10
- C.5.27. Changements de la version 3.22.9
- C.5.28. Changements de la version 3.22.8
- C.5.29. Changements de la version 3.22.7 (Sep 1998: Beta)
- C.5.30. Changements de la version 3.22.6
- C.5.31. Changements de la version 3.22.5
- C.5.32. Changements de la version 3.22.4
- C.5.33. Changements de la version 3.22.3
- C.5.34. Changements de la version 3.22.2
- C.5.35. Changements de la version 3.22.1 (Jun 1998: Alpha)
- C.5.36. Changements de la version 3.22.0
- C.6. Changements de la version 3.21.x
-
- C.6.1. Changements de la version 3.21.33
- C.6.2. Changements de la version 3.21.32
- C.6.3. Changements de la version 3.21.31
- C.6.4. Changements de la version 3.21.30
- C.6.5. Changements de la version 3.21.29
- C.6.6. Changements de la version 3.21.28
- C.6.7. Changements de la version 3.21.27
- C.6.8. Changements de la version 3.21.26
- C.6.9. Changements de la version 3.21.25
- C.6.10. Changements de la version 3.21.24
- C.6.11. Changements de la version 3.21.23
- C.6.12. Changements de la version 3.21.22
- C.6.13. Changements de la version 3.21.21a
- C.6.14. Changements de la version 3.21.21
- C.6.15. Changements de la version 3.21.20
- C.6.16. Changements de la version 3.21.19
- C.6.17. Changements de la version 3.21.18
- C.6.18. Changements de la version 3.21.17
- C.6.19. Changements de la version 3.21.16
- C.6.20. Changements de la version 3.21.15
- C.6.21. Changements de la version 3.21.14b
- C.6.22. Changements de la version 3.21.14a
- C.6.23. Changements de la version 3.21.13
- C.6.24. Changements de la version 3.21.12
- C.6.25. Changements de la version 3.21.11
- C.6.26. Changements de la version 3.21.10
- C.6.27. Changements de la version 3.21.9
- C.6.28. Changements de la version 3.21.8
- C.6.29. Changements de la version 3.21.7
- C.6.30. Changements de la version 3.21.6
- C.6.31. Changements de la version 3.21.5
- C.6.32. Changements de la version 3.21.4
- C.6.33. Changements de la version 3.21.3
- C.6.34. Changements de la version 3.21.2
- C.6.35. Changements de la version 3.21.0
- C.7. Changements de la version 3.20.x
-
- C.7.1. Changements de la version 3.20.18
- C.7.2. Changements de la version 3.20.17
- C.7.3. Changements de la version 3.20.16
- C.7.4. Changements de la version 3.20.15
- C.7.5. Changements de la version 3.20.14
- C.7.6. Changements de la version 3.20.13
- C.7.7. Changements de la version 3.20.11
- C.7.8. Changements de la version 3.20.10
- C.7.9. Changements de la version 3.20.9
- C.7.10. Changements de la version 3.20.8
- C.7.11. Changements de la version 3.20.7
- C.7.12. Changements de la version 3.20.6
- C.7.13. Changements de la version 3.20.3
- C.7.14. Changements de la version 3.20.0
- C.8. Changements de la version 3.19.x
- C.9. Evolutions de InnoDB
-
- C.9.1. MySQL/InnoDB-4.0.21, pas publiée
- C.9.2. MySQL/InnoDB-4.1.4, 31 Août 2004
- C.9.3. MySQL/InnoDB-4.1.3, 28 Juin 2004
- C.9.4. MySQL/InnoDB-4.1.2, pas publiée
- C.9.5. MySQL/InnoDB-4.0.20, 18 mai 2004
- C.9.6. MySQL/InnoDB-4.0.19, 4 mai 2004
- C.9.7. MySQL/InnoDB-4.0.18, 13 février 2004
- C.9.8. MySQL/InnoDB-5.0.0, 24 décembre 2003
- C.9.9. MySQL/InnoDB-4.0.17, 17 décembre 2003
- C.9.10. MySQL/InnoDB-4.1.1, 4 décembre 2003
- C.9.11. MySQL/InnoDB-4.0.16, 22 octobre 2003
- C.9.12. MySQL/InnoDB-3.23.58, 15 septembre 2003
- C.9.13. MySQL/InnoDB-4.0.15, 10 septembre 2003
- C.9.14. MySQL/InnoDB-4.0.14, 22 juillet 2003
- C.9.15. MySQL/InnoDB-3.23.57, 20 juin 2003
- C.9.16. MySQL/InnoDB-4.0.13, 20 mai 2003
- C.9.17. MySQL/InnoDB-4.1.0, 3 avril 2003
- C.9.18. MySQL/InnoDB-3.23.56, 17 mars 2003
- C.9.19. MySQL/InnoDB-4.0.12, 18 mars 2003
- C.9.20. MySQL/InnoDB-4.0.11, 25 février 2003
- C.9.21. MySQL/InnoDB-4.0.10, 4 février 2003
- C.9.22. MySQL/InnoDB-3.23.55, 24 janvier 2003
- C.9.23. MySQL/InnoDB-4.0.9, 14 janvier 2003
- C.9.24. MySQL/InnoDB-4.0.8, 7 janvier 2003
- C.9.25. MySQL/InnoDB-4.0.7, 26 décembre 2002
- C.9.26. MySQL/InnoDB-4.0.6, 19 décembre 2002
- C.9.27. MySQL/InnoDB-3.23.54, 12 dcembre 2003
- C.9.28. MySQL/InnoDB-4.0.5, 18 novembre 2002
- C.9.29. MySQL/InnoDB-3.23.53, 9 octobre 2002
- C.9.30. MySQL/InnoDB-4.0.4, 2 octobre 2002
- C.9.31. MySQL/InnoDB-4.0.3, 28 août 2002
- C.9.32. MySQL/InnoDB-3.23.52, 16 août 2002
- C.9.33. MySQL/InnoDB-4.0.2, 10 juillet 2002
- C.9.34. MySQL/InnoDB-3.23.51, 12 juin 2002
- C.9.35. MySQL/InnoDB-3.23.50, 23 avril 2002
- C.9.36. MySQL/InnoDB-3.23.49, 17 février 2002
- C.9.37. MySQL/InnoDB-3.23.48, 9 février 2002
- C.9.38. MySQL/InnoDB-3.23.47, 28 décembre 2001
- C.9.39. MySQL/InnoDB-4.0.1, 3 décembre 2001
- C.9.40. MySQL/InnoDB-3.23.46, 30 novembre 2001
- C.9.41. MySQL/InnoDB-3.23.45, 23 novembre 2001
- C.9.42. MySQL/InnoDB-3.23.44, 2 novembre 2001
- C.9.43. MySQL/InnoDB-3.23.43, 4 octobre 2001
- C.9.44. MySQL/InnoDB-3.23.42, 9 septembre 2001
- C.9.45. MySQL/InnoDB-3.23.41, 13 août 2001
- C.9.46. MySQL/InnoDB-3.23.40, 16 juillet 2001
- C.9.47. MySQL/InnoDB-3.23.39, 13 juin 2001
- C.9.48. MySQL/InnoDB-3.23.38, 12 mai 2001
- C.10. Historique de
MySQL Cluster -
- C.10.1. MySQL Cluster-4.1.11 (01 Apr 2005)
- C.10.2. MySQL Cluster-4.1.10 (12 Feb 2005)
- C.10.3. MySQL Cluster-4.1.9 (13 Jan 2005)
- C.10.4. MySQL Cluster-4.1.8 (14 Dec 2004)
- C.10.5. MySQL Cluster-4.1.7, (23 Octobre 2004)
- C.10.6. MySQL Cluster-4.1.6, 10 octobre 2004
- C.10.7. MySQL Cluster-4.1.5, 16 septembre 2004
- C.10.8. MySQL Cluster-4.1.4, 31 août 2004
- C.10.9. MySQL Cluster-5.0.1, 27 juillet 2004
- C.10.10. MySQL Cluster-4.1.3, 28 juin 2004
- C.11. Historique de
MyODBC
Cet appendice liste les changements de version à version dans le code source de MySQL.
Nous travaillons maintenant activement sur MySQL 4.1 et 5.0 et ne fournirons que les correctifs pour les bogues critiques de MySQL 3.23 et 4.0. Nous mettons à jour cette section lorsque nous ajoutons de nouvelles fonctionnalités pour que tout le monde puisse suivre le cours du développement.
Notre section TODO contient ce que nous planifions pour les versions 4.x. See Section B.8, « Les évolutions de MySQL (la liste des tâches) ».
Notez que nous essayons de mettre à jour le manuel en même temps que nous apportons des changements à MySQL. Si vous trouvez une version mentionnée ici que vous ne pouvez retrouver dans la page des téléchargements MySQL (http://www.mysql.com/downloads/), cela signifie que la version n'a pas encore été publiée !
La date mentionnée avec la version est la date de dernière modification dans le serveur BitKeeper, sur laquelle la version a été bâtie. Les exécutables sont généralement disponibles après quelques jours, car il faut du temps pour compiler et tester tous les paquets.
- C.1.1. Changements de la version 5.0.6 (pas encore publiée)
- C.1.2. Changements de la version 5.0.5 (Bientôt publiée)
- C.1.3. Changements de la version 5.0.4 (16 avril 2005)
- C.1.4. Changements de la version 5.0.3 (23 mars 2005 : Beta)
- C.1.5. Changements de la version 5.0.2 (1er Décembre 2004)
- C.1.6. Changements de la version 5.0.1 (pas encore publiée)
- C.1.7. Changements de la version 5.0.0 (22 décembre 2003 : Alpha)
The following changelog shows what has already been done in the 5.0 tree:
-
Basic support for stored procedures (SQL:2003 style). See Chapitre 19, Procédures stockées et fonctions.
-
Added
SELECT INTO list_of_vars, which can be of mixed, that is, global and local type. See Section 19.2.9.3, « Syntaxe deSELECT ... INTO». -
Removed the update log. It is fully replaced by the binary log. If the MySQL server is started with
--log-update, it will be translated to--log-bin(or ignored if the server is explicitly started with--log-bin), and a warning message will be written to the error log. SettingSQL_LOG_UPDATEwill silently setSQL_LOG_BINinstead (or do nothing if the server is explicitly started with--log-bin). -
User variable names are now case insensitive: if you do
SET @a=10;thenSELECT @A;will now return10. Case sensitivity of a variable's value depends on the collation of the value.
For a full list of changes, please refer to the changelog sections for each individual 5.0.x release.
Fonctionnalités ajoutées ou modifiées :
-
Updated version of
libeditto 2.9. (Bug#2596)
Bogues corrigés :
-
MAX()for anINT UNSIGNED(unsigned 4-byte integer) column could return negative values if the column contained values larger than 2^31. (Bug#9298) -
SHOW CREATE VIEWgot confused and could not find the view if there was a temporary table with the same name as the view. (Bug#8921) -
Fixed a deadlock resulting from use of
FLUSH TABLES WITH READ LOCKwhile anINSERT DELAYEDstatement is in progress. (Bug#7823) -
The optimizer was choosing suboptimal execution plans for certain outer joins where the right table of a left join (or left table of a right join) had both
ONandWHEREconditions. (Bug#10162) -
RENAME TABLEfor anARCHIVEtable failed if the.arnfile was not present. (Bug#9911) -
Invoking a stored function that executed a
SHOWstatement resulted in a server crash. (Bug#8408) -
Fixed problems with static variables and do not link with
libsupc++to allow building on FreeBSD 5.3. (Bug#9714) -
Fixed some awk script portability problems in cmd-line-utils/libedit/makelist.sh. (Bug#9954)
-
Fixed a problem with mishandling of
NULLkey parts in hash indexes onVARCHARcolumns, resulting in incorrect query results. (Bug#9489, Bug#10176)
Fonctionnalités ajoutées ou modifiées :
-
Added support for the
BITdata type to theMEMORY,InnoDB, andBDBstorage engines. -
SHOW VARIABLESno longer displays the deprecatedlog_updatesystem variable. (Bug#9738) -
--innodb-fast-shutdownis now also settable on the fly (global variableinnodb_fast_shutdown). It now accepts values 0, 1 and 2 (except on Netware where 2 is disabled); if set to 2, then when the MySQL server shuts down, InnoDB will just flush its logs and then shut down brutally (and quickly) as if it was a MySQL crash; no committed transaction will be lost, but a crash recovery will be done at next startup.
Bogues corrigés :
-
Security fix : If mysqld was started with
--user=, it would run using the privileges of the account it was invoked from, even if that wasnon_existent_userroot. (Bug#9833) -
Multiple-table updates could produce spurious data-truncation warnings if they used a join across columns that are indexed using a column prefix. (Bug#9103)
-
Fixed a string-length comparison problem that caused mysql to fail loading dump files containing certain ‘
\’-sequences. (Bug#9756) -
Fixed a failure to resolve a column reference properly when an outer join involving a view contained a subquery and the column was used in the subquery and the outer query. (Bug#6106, Bug#6107)
-
Use of a subquery that used
WITH ROLLUPin theFROMclause of the main query sometimes resulted in aColumn cannot be nullerror. (Bug#9681) -
Fixed a memory leak that occurred when selecting from a view that contained a subquery. (Bug#10107)
-
Fixed an optimizer bug in computing the union of two ranges for the
ORoperator. (Bug#9348) -
Fixed a segmentation fault in mysqlcheck that occurred when the last table checked in
--auto-repairmode returned an error (such as the table being aMERGEtable). (Bug#9492) -
Incorrect results were returned for queries of the form
SELECT ... LEFT JOIN ... WHERE EXISTS (, where the subquery selected rows based on ansubquery)IS NULLcondition. (Bug#9516) -
Executing
LOCK TABLESand then calling a stored procedure caused an error and resulting in the server thinking that no stored procedures exist. (Bug#9566) -
Selecting from a view containing a subquery caused the server to hang. (Bug#8490)
-
Attempting to execute a multiple-table
UPDATEwithin a stored procedure failed with aTable 'error. (Bug#9486)tbl_name' was locked with a READ lock and can't be updated -
Starting mysqld with the
--skip-innodband--default-storage-engine=innodb(or--default-table-type=innodbcaused a server crash. (Bug#9815) -
Queries containing
CURRENT_USER()incorrectly were registered in the query cache. (Bug#9796) -
Setting the
storage_enginesystem variable toMEMORYsucceeded, but retrieving the variable resulted in a value ofHEAP(the old name for theMEMORYstorage engine) rather thanMEMORY. (Bug#10039) -
mysqlshow displayed an incorrect row count for tables. (Bug#9391)
-
The server died with signal 11 if a non-existent location was specified for the location of the binary log. Now the server exits after printing an appropriate error messsage. (Bug#9542)
-
Fixed a problem in the client/server protocol where the server closed the connection before sending the final error message. The problem could show up as a
Lost connection to MySQL server during querywhen attempting to connect to access a non-existent database. (Bug#6387, Bug#9455) -
Fixed a
readline-related crash in mysql when the user pressed Control-R. (Bug#9568) -
For stored functions that should return a
YEARvalue, corrected a failure of the value to be inYEARformat. (Bug#8861) -
Fixed a server crash resulting from invocation of a stored function that returned a value having an
ENUMorSETdata type. (Bug#9775) -
Fixed a server crash resulting from invocation of a stored function that returned a value having a
BLOBdata type. (Bug#9102) -
Fixed a server crash resulting from invocation of a stored function that returned a value having a
BITdata type. (Bug#7648) -
TIMEDIFF()with a negative time first argument and postive time second argument produced incorrect results. (Bug#8068) -
Fixed a problem with
OPTIMIZE TABLEforInnoDBtables being written twice to the binary log. (Bug#9149) -
InnoDB: PreventALTER TABLEfrom changing the storage engine if there are foreign key constraints on the table. (Bug#5574, Bug#5670) -
InnoDB: Fixed a bug where next-key locking doesn't allow the insert which does not produce a phantom. (Bug#9354) If the range is of type'a' <= uniquecolumn,InnoDBlock only the RECORD, if the record with the column value'a'exists in a CLUSTERED index. This allows inserts before a range. -
InnoDB: WhenFOREIGN_KEY_CHECKS=0,ALTER TABLEandRENAME TABLEwill ignore any type incompatibilities between referencing and referenced columns. Thus, it will be possible to convert the character sets of columns that participate in a foreign key. Be sure to convert all tables before modifying any data! (Bug#9802) -
Provide more informative error messages in clustered setting when a query is issued against a table that has been modified by another
mysqldserver. (Bug#6762)
Fonctionnalités ajoutées ou modifiées :
-
Added
ENGINE=MyISAMtable option when creatingmysql.proctable in mysql_create_system_tables script to make sure the table is created as aMyISAMtable even if the default storage engine has been changed. (Bug#9496) -
SHOW CREATE TABLEfor anINFORMATION_SCHEMAtable no longer prints aMAX_ROWSvalue because the value has no meaning. (Bug#8941) -
Invalid
DEFAULTvalues forCREATE TABLEnow generate errors. (Bug#5902) -
Added
--show-table-typeoption to mysqlshow, to display a column indicating the table type, as inSHOW FULL TABLES. (Bug#5036) -
The way the time zone information is stored into the binary log was changed, so that it's now possible to have a replication master and slave running with different global time zones. A drawback is that replication from 5.0.4 masters to pre-5.0.4 slaves is impossible.
-
Added
--with-big-tablescompilation option to configure. (Previously it was necessary to pass-DBIG_TABLESto the compiler manually in order to enable large table support.) See Section 2.4.2, « Options habituelles deconfigure» for details. -
New configuration directives
!includeand!includedirimplemented for including option files and searching directories for option files. See Section 4.3.2, « Fichier d'optionsmy.cnf» for usage.
Bogues corrigés :
-
The use of
XORtogether withNOT ISNULL()erroneously resulted in some outer joins being converted to inner joins by the optimizer. (Bug#9017) -
Fixed an optimizer problem where extraneous comparisons between
NULLvalues in indexed columns were being done for operators such as=that are never true forNULL. (Bug#8877) -
Fixed the client/server protocol for prepared statements so that reconnection works properly when the connection is killed while reconnect is enabled. (Bug#8866)
-
A server installed as a Windows service and started with
--shared-memorycould not be stopped. (Bug#9665) -
Fixed a server crash resulting from multiple executions of a prepared statement involving a join of an
INFORMATION_SCHEMAtable with another table. (Bug#9383) -
Fixed
utf8_spanish2_cianducs2_spanish2_cicollations to not consider ‘r’ equal to ‘rr’. If you upgrade to this version from an earlier version, you should rebuild the indexes of affected tables. (Bug#9269) -
mysqldump dumped core when invoked with
--tmpand--single-transactionoptions and a non-existent table name. (Bug#9175) -
Allow extra HKSCS and cp950 characters (
big5extension characters) to be accepted inbig5columns. (Bug#9357) -
mysql.server no longer uses non-portable alias command or LSB functions. (Bug#9852)
-
Fixed a server crash resulting from
GROUP BYon a decimal expression. (Bug#9210) -
In prepared statements, subqueries containing parameters were erroneously treated as
consttables during preparation, resulting in a server crash. (Bug#8807) -
InnoDB :
ENUMandSETcolumns were treated incorrectly as character strings. This bug did not manifest itself withlatin1collations if there were less than about 100 elements in anENUM, but it caused malfunction withUTF-8. Old tables will continue to work. In new tables,ENUMandSETwill be internally stored as unsigned integers. (Bug#9526) -
InnoDB : Avoid test suite failures caused by a locking conflict between two server instances at server shutdown/startup. This conflict on advisory locks appears to be the result of a bug in the operating system; these locks should be released when the files are closed, but somehow that does not always happen immediately in Linux. (Bug#9381)
-
InnoDB : True
VARCHAR: InnoDB stored the 'position' of a row wrong in a column prefix primary key index; this could cause MySQL to complainERROR 1032: Can't find record …in an update of the primary key, and also someORDER BYorDISTINCTqueries. (Bug#9314) -
InnoDB : Fix bug in MySQL/InnoDB 5.0.3 : SQL statements were not rolled back on error. (Bug#8650)
-
Fixed a
Commands out of syncerror when two prepared statements for single-row result sets were open simultaneously. (Bug#8880) -
Fixed a server crash after a call to
mysql_stmt_close()for single-row result set. (Bug#9159) -
Fixed server crashes for
CREATE TABLE ... SELECTorINSERT INTO ... SELECTwhen selecting from multiple-table view. (Bug#8703, Bug#9398) -
TRADITIONALSQL mode should prevent inserts where a column with no default value is omitted or set to a value ofDEFAULT. Fixed cases where this restriction was not enforced. (Bug#5986) -
Fixed a server crash when creating a
PRIMARY KEYfor a table, if the table contained aBITcolumn. (Bug#9571) -
Warning message from
GROUP_CONCAT()did not always indicate correct number of lines. (Bug#8681) -
The commit count cache for
NDBwas not properly invalidated when deleting a record using a cursor. (Bug#8585) -
Fixed option-parsing code for the embedded server to understand
K,M, andGsuffixes for thenet_buffer_lengthandmax_allowed_packetoptions. (Bug#9472) -
Selecting a
BITcolumn failed if the binary client/server protocol was used. (Bug#9608) -
Fixed a permissions problem whereby information in
INFORMATION_SCHEMAcould be exposed to a user with insufficient privileges. (Bug#7214) -
An error now occurs if you try to insert an invalid value via a stored procedure in
STRICTmode. (Bug#5907) -
Link with
libsupc++on Fedora Core 3 to get language support functions. (Bug#6554) -
The value of the
CHARACTER_MAXIMUM_LENGTHandCHARACTER_OCTET_LENGTHcolumns of theINFORMATION_SCHEMA.COLUMNStable must beNULLfor numeric columns, but were not. (Bug#9344) -
DROP TABLEdid not drop triggers that were defined for the table.DROP DATABASEdid not drop triggers in the database. (Bug#5859, Bug#6559) -
CREATE OR REPLACE VIEWandALTER VIEWnow require theCREATE VIEWandDROPprivileges, notCREATE VIEWandDELETE. (DELETEis a row-level privilege, not a table-level privilege.) (Bug#9260) -
Some user variables were not being handled with ``implicit'' coercibility. (Bug#9425)
-
Setting the
max_error_countsystem variable to 0 resulted in a setting of 1. (Bug#9072) -
Fixed a collation coercibility problem that caused a union between binary and non-binary columns to fail. (Bug#6519)
-
Fixed a bug in division of floating point numbers. It could cause nine zeroes (
000000000) to be inserted in the middle of the quotient. (Bug#9501) -
INFORMATION_SCHEMAtables had an implicit upper limit for the number of rows. As a result, not all data could be returned for some queries. (Bug#9317) -
Fixed a problem with the
teecommand in mysql that resulted in mysql crashing. (Bug#8499) -
CAST()now produces warnings when casting a wrongINTEGERandCHARvalues. This also applies to implicitestringtonumbercasts. (Bug#5912) -
ALTER TABLEnow fails inSTRICTmode if generates warnings. -
Using
CONVERT('0000-00-00',date)orCAST('0000-00-00' as date)inTRADITIONALmode now produces a warning. (Bug#6145) -
Inserting a zero date in a
DATE,DATETIMEorTIMESTAMPcolumn duringTRADITIONALmode now produces an error. (Bug#5933) -
Inserting a zero date into a
DATETIMEcolumn inTRADITIONALmode now produces an error. -
STR_TO_DATE()now produces errors in strict mode (and warnings otherwise) when given an illegal argument. (Bug#5902) -
Fixed a problem with
ORDER BYthat sometimes caused incorrect sorting ofutf8data. (Bug#9309) -
Fixed server crash resulting from queries that combined
SELECT DISTINCT,SUM(), andROLLUP. (Bug#8615) -
Incorrect results were returned from queries that combined
SELECT DISTINCT,GROUP BY, andROLLUP. (Bug#8616) -
Too many rows were returned from queries that combined
ROLLUPandLIMITifSQL_CALC_FOUND_ROWSwas given. (Bug#8617) -
If on replication master a
LOAD DATA INFILEis interrupted in the middle (integrity constraint violation, killed connection...), the slave used to skip thisLOAD DATA INFILEentirely, thus missing some changes if this command permanently inserted/updated some table records before being interrupted. This is now fixed. (Bug#3247)
Note : This Beta release, as any other pre-production release, should not be installed on ``production'' level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has done its best to ensure a high level of quality, protect your data by making a backup as you would for any software beta release.
Fonctionnalités ajoutées ou modifiées :
-
New privilege
CREATE USERwas added. -
Security improvement : The server creates
.frm,.MYD,.MYI,.MRG,.ISD, and.ISMtable files only if a file with the same name does not already exist. Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0711) -
Security improvement : User-defined functions should have at least one symbol defined in addition to the
xxxsymbol that corresponds to the mainxxx()function. These auxiliary symbols correspond to thexxx_init(),xxx_deinit(),xxx_reset(),xxx_clear(), andxxx_add()functions. mysqld by default no longer loads UDFs unless they have at least one auxiliary symbol defined in addition to the main symbol. The--allow-suspicious-udfsoption controls whether UDFs that have only anxxxsymbol can be loaded. By default, the option is off.mysqldalso checks UDF filenames when it reads them from themysql.functable and rejects those that contain directory pathname separator characters. (It already checked names as given inCREATE FUNCTIONstatements.) See Section 27.2.3.1, « Fonctions utilisateur : appeler des fonctions simples », Section 27.2.3.2, « Appeler des fonctions utilisateurs pour les groupements », and Section 27.2.3.6, « Précautions à prendre avec les fonctions utilisateur ». Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0709, CVE-2005-0710) -
Support for the
ISAMstorage engine has been removed. If you haveISAMtables, you should convert them before upgrading. See Section 2.6.1, « Passer en de version 4.1 en version 5.0 ». -
Support for
RAIDoptions inMyISAMtables has been removed. If you have tables that use these options, you should convert them before upgrading. See Section 2.6.1, « Passer en de version 4.1 en version 5.0 ». -
Added support for
AVG(DISTINCT). -
ONLY_FULL_GROUP_BYno longer is included in theANSIcomposite SQL mode. (Bug#8510) -
mysqld_safe will create the directory where the UNIX socket file is to be located if the directory does not exist. This applies only to the last component of the directory pathname. (Bug#8513)
-
The coercibility for the return value of functions such as
USER()orVERSION()now is ``system constant'' rather than ``implicit.'' This makes these functions more coercible than column values so that comparisons of the two do not result inIllegal mix of collationserrors.COERCIBILITY()was modified to accommodate this new coercibility value. See Section 12.8.3, « Fonctions d'informations ». -
User variable coercibility has been changed from ``coercible'' to ``implicit.'' That is, user variables have the same coercibility as column values.
-
Boolean full-text phrase searching now requires only that matches contain exactly the same words as the phrase and in the same order. Non-word characters no longer need match exactly.
-
CHECKSUM TABLEreturns a warning for non-existing tables. The checksum value remainsNULLas before. (Bug#8256) -
The server now includes a timestamp in the
Ready for connectionsmessage that is written to the error log at startup. (Bug#8444) -
Added
SQL_NOTESsession variable to causeNote-level warnings not to be recorded. (Bug#6662) -
Allowed the service-installation command for Windows servers to specify a single option other than
--defaults-filefollowing the service name. This is for compatibility with MySQL 4.1. (Bug#7856) -
InnoDB : Upgrading from 4.1 : The sorting order for end-space in
TEXTcolumns for InnoDB tables has changed. Starting from 5.0.3, InnoDB comparesTEXTcolumns as space-padded at the end. If you have a non-unique index on aTEXTcolumn, you should runCHECK TABLEon it, and runOPTIMIZE TABLEif the check reports errors. If you have aUNIQUE INDEXon aTEXTcolumn, you should rebuild the table withOPTIMIZE TABLE. -
InnoDB: Commit after every 10,000 copied rows when executingALTER TABLE,CREATE INDEX,DROP INDEXorOPTIMIZE TABLE. This makes it much faster to recover from an aborted operation. -
Added
VAR_POP()andSTDDEV_POP()as standard SQL aliases for theVARIANCE()andSTDDEV()functions that compute population variance and standard deviation. Added newVAR_SAMP()andSTDDEV_SAMP()functions to compute sample variance and standard deviation. (Bug#3190) -
Fixed a problem with out-of-order packets being sent (
ERRORafterOKorEOF) following aKILL QUERYstatement. (Bug#6804) -
Retrieving from a view defined as a
SELECTthat mixedUNION ALLandUNION DISTINCTresulted in a different result than retrieving from the originalSELECT. (Bug#6565) -
Fixed a problem with non-optimal
index_mergequery execution plans being chosen on IRIX. (Bug#8578) -
BITin column definitions now is a distinct data type; it no longer is treated as a synonym forTINYINT(1). -
Bit-field values can be written using
b'notation.value'valueis a binary value written using 0s and 1s. -
From the Windows distribution, predefined accounts without passwords for remote users ("root@%", "@%") were removed (other distributions never had them).
-
Added
mysql_library_init()andmysql_library_end()as synonyms for themysql_server_init()andmysql_server_end()C API functions.mysql_library_init()andmysql_library_end()are#definesymbols, but the names more clearly indicate that they should be called when beginning and ending use of a MySQL C API library no matter whether the application useslibmysqlclientorlibmysqld. (Bug#6149) -
SHOW COLUMNSnow displaysNOrather than blank in theNulloutput column if the corresponding table column cannot beNULL. -
Changed XML format for mysql from
<tocol_name>col_value</col_name><field name="to allow for proper encoding of column names that are not legal as element names. (Bug#7811)col_name">col_value</field> -
Added
--innodb-checksumsand--innodb-doublewriteoptions for mysqld. -
Added
--large-pagesoption for mysqld. -
Added
multi_read_rangesystem variable. -
SHOW DATABASES,SHOW TABLES,SHOW COLUMNS, and so forth display information about theINFORMATION_SCHEMAdatabase. Also, severalSHOWstatements now accept aWHEREclause specifying which output rows to display. See Chapitre 22, La base de données d'informationsINFORMATION_SCHEMA. -
Added the
CREATE ROUTINEandALTER ROUTINEprivileges, and made theEXECUTEprivilege operational. -
InnoDB : Corrected a bug in the crash recovery of
ROW_FORMAT=COMPACTtables that caused corruption. (Bug#7973) There may still be bugs in the crash recovery, especially inCOMPACTtables. -
When the
MyISAMstorage engine detects corruption of aMyISAMtable, a message describing the problem now is written to the error log. -
InnoDB : When MySQL/InnoDB is compiled on Mac OS X 10.2 or earlier, detect the operating system version at run time and use the
fcntl()file flush method on Mac OS X versions 10.3 and later. Apple had disabledfsync()in Mac OS X for internal disk drives, which caused corruption at power outages. -
InnoDB : Implemented fast
TRUNCATE TABLE. The old approach (deleting rows one by one) may be used if the table is being referenced by foreign keys. (Bug#7150) -
Added
cp932(SJIS for Windows Japanese) andeucjpms(UJIS for Windows Japanese) character sets. -
Added several
InnoDBstatus variables. See Section 5.2.4, « Variables de statut du serveur ». -
Added the
FEDERATEDstorage engine. See Section 14.6, « Le moteur de tableFEDERATED». -
SHOW CREATE TABLEnow usesUSINGrather thanindex_typeTYPEto specify an index type. (Bug#7233)index_type -
InnoDB now supports a fast
TRUNCATE TABLE. One visible change from this is that auto-increment values for this table are reset onTRUNCATE. -
Added an
errormember to theMYSQL_BINDdata structure that is used in the C API for prepared statements. This member is used for reporting data truncation errors. Truncation reporting is enabled via the newMYSQL_REPORT_DATA_TRUNCATIONoption for themysql_options()C API function. -
API change : the
reconnectflag in theMYSQLstructure is now set to 0 bymysql_real_connect(). Only those client programs which didn't explicitly set this flag to 0 or 1 aftermysql_real_connect()experience a change. Having automatic reconnection enabled by default was considered too dangerous (after reconnection, table locks, temporary tables, user and session variables are lost). -
FLUSH TABLES WITH READ LOCKis now killable while it's waiting for runningCOMMITstatements to finish. -
MEMORY(HEAP) can haveVARCHAR()fields. -
VARCHARcolumns now remember end space. AVARCHAR()column can now contain up to 65535 bytes. For more details, see Section C.1, « Changements de la version 5.0.0 (Développement) ». If the table handler doesn't support the newVARCHARtype, then it's converted to aCHARcolumn. Currently this happens forNDBtables. -
InnoDB : Introduced a compact record format that does not store the number of columns or the lengths of fixed-size columns. The old format can be requested by specifying
ROW_FORMAT=REDUNDANT. The new format (ROW_FORMAT=COMPACT) is the default. The new format typically saves 20 % of disk space and memory. -
InnoDB : Setting the initial
AUTO_INCREMENTvalue for anInnoDBtable usingCREATE TABLE ... AUTO_INCREMENT =now works, andnALTER TABLE ... AUTO_INCREMENT =resets the current value.n -
Seconds_Behind_MasterisNULL(which means ``unknown'') if the slave SQL thread is not running, or if the slave I/O thread is not running or not connected to master. It is zero if the SQL thread has caught up to the I/O thread. It no longer grows indefinitely if the master is idle. -
The MySQL server aborts immediately instead of simply issuing a warning if it is started with the
--log-binoption but cannot initialize the binary log at startup (that is, an error occurs when writing to the binary log file or binary log index file). -
The binary log file and binary log index file now are handled the same way as
MyISAMtables when there is a ``disk full'' or ``quota exceeded'' error. See Section A.4.3, « Comment MySQL gère un disque plein ». -
The MySQL server now aborts when started with option
--log-bin-indexand without--log-bin, and when started with--log-slave-updatesand without--log-bin. -
If the MySQL server is started without an argument to
--log-binand without--log-bin-index, thus not providing a name for the binary log index file, a warning is issued because MySQL falls back to using the hostname for that name, and this is prone to replication issues if the server's hostname's gets changed later. See Section 1.5.7.4, « Bugs connus / limitations de MySQL ». -
Added account-specific
MAX_USER_CONNECTIONSlimit, which allows you to specify the maximum number of concurrent connections for the account. Also, all limited resources now are counted per account (instead of being counted per user + host pair as it was before). Use the--old-style-user-limitsoption to get the old behavior. -
InnoDB : A shared record lock (
LOCK_REC_NOT_GAP) is now taken for a matching record in the foreign key check because inserts can be allowed into gaps. -
InnoDB : Relaxed locking in INSERT...SELECT, single table UPDATE...SELECT and single table DELETE...SELECT clauses when innobase_locks_unsafe_for_binlog is used and isolation level of the transaction is not serializable.
InnoDBuses consistent read in these cases for a selected table. -
Added a new global system variable
slave_transaction_retries: if the replication slave SQL thread fails to execute a transaction because of anInnoDBdeadlock or exceeded InnoDB'sinnodb_lock_wait_timeoutor NDBCluster'sTransactionDeadlockDetectionTimeoutorTransactionInactiveTimeout, it automatically retriesslave_transaction_retriestimes before stopping with an error. The default is 10. (Bug#8325) -
When a client releases a user-level lock,
DO RELEASE_LOCK()will not be written to the binary log anymore (this makes the binary log smaller); as a counterpart, the slave does not actually take the lock when it executesGET_LOCK(). This is mainly an optimization and should not affect existing setups. (Bug#7998) -
The way the character set information is stored into the binary log was changed, so that it's now possible to have a replication master and slave running with different global character sets. A drawback is that replication from 5.0.3 masters to pre-5.0.3 slaves is impossible.
-
The
LOAD DATAstatement was extended to support user variables in the target column list, and an optionalSETclause. Now one can perform some transformations on data after they have been read and before they are inserted into the table. For example :LOAD DATA INFILE 'file.txt' INTO TABLE t1 (column1, @var1) SET column2 = @var1/100;
Also, replication of
LOAD DATAwas changed, so you can't replicate such statements from a 5.0.3 master to pre-5.0.3 slaves.
Bogues corrigés :
-
If a
MyISAMtable on Windows hadINDEX DIRECTORYorDATA DIRECTORYtable options, mysqldump dumped the directory pathnames with single-backslash pathname separators. This would cause syntax errors when importing the dump file. mysqldump now changes ‘\’ to ‘/’ in the pathnames on Windows. (Bug#6660) -
mysql_fix_privilege_tablesnow fixes that themysqlprivilege tables can be used in MySQL 4.1. This allows one to easily downgrade to 4.1 or run MySQL 5.0 and 4.1 with the same privilege files for testing purposes. -
Fixed bug creating user with GRANT fails with password but works without, (Bug#7905)
-
mysqldump misinterpreted ‘
_’ and ‘%’ characters in the names of tables to be dumped as wildcard characters. (Bug#9123) -
The definition of the enumeration-valued
sql_modecolumn of themysql.proctable was missing some of the current allowable SQL modes, so stored routines would not necessarily execute with the SQL mode in effect at the time of routine definition. (Bug#8902) -
REPAIR TABLEdid not invalidate query results in the query cache that were generated from the table. (Bug#8480) -
In strict or traditional SQL mode, too-long string values assigned to string columns (
CHAR,VARCHAR,BINARY,VARBINARY,TEXT, orBLOB) were correctly truncated, but the server returned an SQLSTATE value of01000(should be22001). (Bug#6999, Bug#9029) -
Stored functions that used cursors could return incorrect results. (Bug#8386)
-
AES_DECRYPT(could fail to returncol_name,key)NULLfor invalid values incol_name, ifcol_namewas declared asNOT NULL. (Bug#8669) -
Ordering by unsigned expression (more complex than a column reference) was treating the value as signed, producing incorrectly sorted results. (Bug#7425)
-
HAVINGwas treating unsigned columns as signed. (Bug#7425) -
Fixed a problem with boolean full-text searches on
utf8columns where a double quote in the search string caused a server crash. (Bug#8351) -
For a query with both
GROUP BYandCOUNT(DISTINCT)clauses and aFROMclause with a subquery,NULLwas returned for anyVARCHARcolumn selected by the subquery. (Bug#8218) -
Fixed a bug in
TRUNCATE, which did not work within stored procedures. A workaround has been made so that within stored procedures,TRUNCATEis executed likeDELETE. This was necessary becauseTRUNCATEis implicitly locking tables. (Bug#8850) -
Fixed an optimizer bug that caused incorrectly ordered result from a query that used a
FULLTEXTindex to retrieve rows and there was another index that was usable forORDER BY. For such a query,EXPLAINshowedfulltextjoin type, but regular (notFULLTEXT) index in theKeycolumn. (Bug#6635) -
If
SELECT DISTINCTnamed an index column multiple times in the select list, the server tried to access different key fields for each instance of the column, which could result in a crash. (Bug#8532) -
For a stored function that refers to a given table, invoking the function while selecting from the same table resulted in a server crash. (Bug#8405)
-
Comparison of a
DECIMALcolumn containingNULLto a subquery that producedDECIMALvalues resulted in a server crash. (Bug#8397) -
The
--set-character-setoption for myisamchk was changed to--set-collation. The value needed for specifying how to sort indexes is a collation name, not a character set name. (Bug#8349) -
Hostname matching didn't work if a netmask was specified for table-specific privileges. (Bug#3309)
-
Corruption of
MyISAMtable indexes could occur withTRUNCATE TABLEif the table had already been opened. For example, this was possible if the table had been opened implicitly by selecting from aMERGEtable that mapped to theMyISAMtable. The server now issues an error message forTRUNCATE TABLEunder these conditions. (Bug#8306) -
Setting the connection collation to a value different from the server collation followed by a
CREATE TABLEstatement that included a quoted default value resulted in a server crash. (Bug#8235) -
Fixed handling of table-name matching in mysqlhotcopy to accommodate
DBD::mysql2.9003 and up (which implement identifier quoting). (Bug#8136) -
Selecting from a view defined as a join caused a server crash if the query cache was enabled. (Bug#8054)
-
Results in the query cache generated from a view were not properly invalidated after
ALTER VIEWorDROP VIEWon that view. (Bug#8050) -
FOUND_ROWS()returned an incorrect value after aSELECT SQL_CALC_FOUND_ROWS DISTINCTstatement that selected constants and includedGROUP BYandLIMITclauses. (Bug#7945) -
Selecting from an
INFORMATION_SCHEMAtable combined with a subselect on anINFORMATION_SCHEMAtable caused an error with the messageTable. (Bug#8164)tbl_nameis corrupted -
Fixed a problem with equality propagation optimization for prepared statements and stored procedures that caused a server crash upon re-execution of the prepared statement or stored procedure. (Bug#8115, Bug#8849)
-
LEFT OUTER JOINbetween an empty base table and a view on an empty base table caused a server crash. (Bug#7433) -
Use of
GROUP_CONCAT()in the select list when selecting from a view caused a server crash. (Bug#7116) -
Use of a view in a correlated subquery that contains
HAVINGbut noGROUP BYcaused a server crash. (Bug#6894) -
Handling by
mysql_list_fields()of references to stored functions within views was incorrect and could result in a server crash. (Bug#6814) -
mysqldump now avoids writing
SET NAMESto the dump output if the server is older than version 4.1 and would not understand that statement. (Bug#7997) -
Fixed problems when selecting from a view that had an
EXISTSorNOT EXISTSsubquery. Selecting columns by name caused a server crash. WithSELECT *, a crash did not occur, but columns in outer query were not resolved properly. (Bug#6394) -
DDL statements for views were not being written to the binary log (and thus not subject to replication). (Bug#4838)
-
The
CHAR()function was not ignoringNULLarguments, contrary to the documentation. (Bug#6317) -
Creating a table using a name containing a character that is illegal in
character_set_clientresulted in the character being stripped from the name and no error. The character now is considered an error. (Bug#8041) -
Fixed a problem with the Cyrillic letters I and SHORT I being treated the same by the
utf8_general_cicollation. (Bug#8385) -
Some
INFORMATION_SCHEMAcolumns that contained catalog identifiers were of typeLONGTEXT. These were changed toVARCHAR(, whereNNis the appropriate maximum identifier length. (Bug#7215) -
Some
INFORMATION_SCHEMAcolumns that contained timestamp values were of typeVARBINARY. These were changed toTIMESTAMP. (Bug#7217) -
An expression that tested a case-insensitive character column against string constants that differed in lettercase could fail because the constants were treated as having a binary collation. (For example,
WHERE city='London' AND city='london'could fail.) (Bug#7098, Bug#8690) -
The output of the
STATUS(\s) command in mysql had the values for the server and client character sets reversed. (Bug#7571) -
If the slave was running with
--replicate-*-tableoptions which excluded one temporary table and included another, and the two tables were used in a singleDROP TEMPORARY TABLE IF EXISTSstatement, as the ones the master automatically writes to its binary log upon client's disconnection when client has not explicitly dropped these, the slave could forget to delete the included replicated temporary table. Only the slave needs to be upgraded. (Bug#8055) -
When setting integer system variables to a negative value with
SET VARIABLES, the value was treated as a positive value modulo 2^32. (Bug#6958) -
Corrected a problem with references to
DUALwhere statements such asSELECT 1 AS a FROM DUALwould succeed but statements such asSELECT 1 AS a FROM DUAL LIMIT 1would fail. (Bug#8023) -
Fixed a server crash caused by
DELETE FROMwhen thetbl_name... WHERE ... ORDER BYtbl_name.col_nameORDER BYcolumn was qualified with the table name. (Bug#8392) -
Fixed a bug in
MATCH ... AGAINSTin natural language mode that could cause a server crash if theFULLTEXTindex was not used in a join (EXPLAINdid not showfulltextjoin mode) and the search query matched no rows in the table (Bug#8522). -
InnoDB: Honor the--tmpdirstartup option when creating temporary files. Previously,InnoDBtemporary files were always created in the temporary directory of the operating system. On Netware,InnoDBwill continue to ignore--tmpdir. (Bug#5822) -
Platform and architecture information in version information produced for
--versionoption on Windows was alwaysWin95/Win98 (i32). More accurately determine platform asWin32orWin64for 32-bit or 64-bit Windows, and architecture asia32for x86,ia64for Itanium, andaxpfor Alpha. (Bug#4445) -
If multiple semicolon-separated statements were received in a single packet, they were written to the binary log as a single event rather than as separate per-statement events. For a server serving as a replication master, this caused replication to fail when the event was sent to slave servers. (Bug#8436)
-
Fixed
LOAD INDEXstatement to actually load index in memory. (Bug#8452) -
Fixed a failure of multiple-table updates to replicate properly on slave servers when
--replicate-*-tableoptions had been specified. (Bug#7011) -
Fixed failure of
CREATE TABLE ... LIKEWindows when the source or destination table was located in a symlinked database directory. (Bug#6607) -
With
lower_case_table_namesset to 1, mysqldump on Windows could write the same table name in different lettercase for different SQL statements. Fixed so that consistent lettercase is used. (Bug#5185) -
mysqld_safe now understands the
--helpoption. Previously, it ignored the option and attempted to start the server anyway. (Bug#7931) -
Fixed problem in
NO_BACKSLASH_ESCAPESSQL mode for strings that contained both the string quoting character and backslash. (Bug#6368) -
Fixed some portability issues with overflow in floating point values.
-
Prepared statements now gives warnings on prepare.
-
Fixed bug in prepared statements with
SUM(DISTINCT...). -
Fixed bug in prepared statements with
OUTER JOIN. -
Fixed a bug in
CONV()function returning unsignedBIGINTnumber (third argument is positive, and return value does not fit in 32 bits). (Bug#7751) -
Fixed a failure of the
IN()operator to return correct result if all values in the list were constants and some of them were using substring functions, for example,LEFT(),RIGHT(), orMID(). (Bug#7716) -
Fixed a crash in
CONVERT_TZ()function when its second or third argument was from aconsttable (see Section 7.2.1, « Syntaxe deEXPLAIN(Obtenir des informations sur lesSELECT) »). (Bug#7705) -
Fixed a problem with calculation of number of columns in row comparison against subquery. (Bug#8020)
-
Fixed erroneous output resulting from
SELECT DISTINCTcombined with a subquery andGROUP BY. (Bug#7946) -
Fixed server crash in comparing a nested row expression (for example
row(1,(2,3))) with a subquery. (Bug#8022) -
Fixed server crash resulting from certain correlated subqueries with forward references (references to an alias defined later in the outer query). (Bug#8025)
-
Fixed server crash resulting from re-execution of prepared statements containing subqueries. (Bug#8125)
-
Fixed a bug where
ALTER TABLEimproperly would accept an index on aTIMESTAMPcolumn thatCREATE TABLEwould reject. (Bug#7884) -
SHOW CREATE TABLEnow reportsENGINE=MEMORYrather thanENGINE=HEAPfor aMEMORYtable (unless theMYSQL323SQL mode is enabled). (Bug#6659) -
Fixed a bug where the use of
GROUP_CONCAT()withHAVINGcaused a server crash. (Bug#7769) -
Fixed a bug where comparing the result of a subquery to a non-existent column caused a server crash on Windows. (Bug#7885)
-
Fixed a bug in a combination of
-notandtrunc*operators of full-text search. Using more than one truncated negative search term, was causing empty result set. -
InnoDB : Corrected the handling of trailing spaces in the
ucs2character set. (Bug#7350, Bug#8771) -
InnoDB : Use native
tmpfile()function on Netware. All InnoDB temporary files are created undersys:\tmp. Previously, InnoDB temporary files were never deleted on Netware. -
Fixed a bug in
max_heap_table_sizehandling, that resulted inTable is fullerror when the table was still smaller than the limit. (Bug#7791). -
Fixed a symlink vulnerability in the mysqlaccess script. Reported by Javier Fernandez-Sanguino Pena and Debian Security Audit Team. (CVE-2005-0004)
-
Fixed a bug that caused server crash if some error occured during filling of temporary table created for derived table or view handling. (Bug#7413)
-
Fixed a bug which caused server crash if query containing
CONVERT_TZ()function with constant arguments was prepared. (Bug#6849) -
Prevent adding
CREATE TABLE .. SELECTquery to the binary log when the insertion of new records partially failed. (Bug#6682) -
Fixed a bug which caused a crash when only the slave I/O thread was stopped and started. (Bug#6148)
-
Giving mysqld a
SIGHUPcaused it to crash. -
Changed semantics of
CREATE/ALTER/DROP DATABASEstatements so that replication ofCREATE DATABASEis possible when using--binlog-do-dband--binlog-ignore-db. (Bug#6391) -
A sequence of
BEGIN(orSET AUTOCOMMIT=0),FLUSH TABLES WITH READ LOCK, transactional update,COMMIT,FLUSH TABLES WITH READ LOCKcould hang the connection forever and possibly the MySQL server itself. This happened for example when running theinnobackupscript several times. (Bug#6732) -
mysqlbinlog did not print
SET PSEUDO_THREAD_IDstatements in front ofLOAD DATA INFILEstatements inserting into temporary tables, thus causing potential problems when rolling forward these statements after restoring a backup. (Bug#6671) -
InnoDB : Fixed a bug no error message for ALTER with InnoDB and AUTO_INCREMENT (Bug#7061).
InnoDBnow supportsALTER TABLE...AUTO_INCREMENT = xquery to set auto increment value for a table. -
Made the MySQL server accept executing
SHOW CREATE DATABASEeven if the connection has an open transaction or locked tables; refusing it made mysqldump --single-transaction sometimes fail to print a completeCREATE DATABASEstatement for some dumped databases. (Bug#7358) -
Fixed that, when encountering a ``disk full'' or ``quota exceeded'' write error,
MyISAMsometimes didn't sleep and retry the write, thus resulting in a corrupted table. (Bug#7714) -
Fixed that
--expire-log-dayswas not honored if using only transactions. (Bug#7236) -
Fixed that a slave could crash after replicating many
ANALYZE TABLE,OPTIMIZE TABLE, orREPAIR TABLEstatements from the master. (Bug#6461, Bug#7658) -
mysqlbinlog forgot to add backquotes around the collation of user variables (causing later parsing problems as
BINARYis a reserved word). (Bug#7793) -
Ensured that mysqldump --single-transaction sets its transaction isolation level to
REPEATABLE READbefore proceeding (otherwise if the MySQL server was configured to run with a default isolation level lower thanREPEATABLE READit could give an inconsistent dump). (Bug#7850) -
Fixed that when using the
RPAD()function (or any function adding spaces to the right) in a query that had to be resolved by using a temporary table, all resulting strings had rightmost spaces removed (i.e.RPAD()did not work) (Bug#4048) -
Fixed that a 5.0.3 slave can connect to a master < 3.23.50 without hanging (the reason for the hang is a bug in these quite old masters --
SELECT @@unknown_varhangs them -- which was fixed in MySQL 3.23.50). (Bug#7965) -
InnoDB : Fixed a deadlock without any locking, simple select and update (Bug#7975).
InnoDBnow takes an exclusive lock whenINSERT ON DUPLICATE KEY UPDATEis checking duplicate keys. -
Fixed a bug where MySQL was allowing concurrent updates (inserts, deletes) to a table if binary logging is enabled. Changed to ensure that all updates are executed in a serialized fashion, because they are executed serialized when binlog is replayed. (Bug#7879)
-
Fixed a rare race condition which could lead to
FLUSH TABLES WITH READ LOCKhanging. (Bug#8682) -
Fixed a bug that caused the slave to stop on statements that produced an error on the master. (Bug#8412)
Fonctionnalités ajoutées ou modifiées :
-
The
SCHEMAandSCHEMASkeywords now are accepted as synonyms forDATABASEandDATABASES. -
Added initial support for rudimentary triggers.
-
Added basic support for read-only server side cursors.
-
Added
--start-datetime,--stop-datetime,--start-position,--stop-positionoptions to mysqlbinlog (makes point-in-time recovery easier). -
Made the MySQL server not react to signals
SIGHUPandSIGQUITon Mac OS X 10.3. This is needed because under this OS, the MySQL server receives lots of these signals (reported as Bug#2030). -
New
--auto-increment-incrementand--auto-increment-offsetstartup options. These allow you to set up a server to generate auto-increment values that don't conflict with another server. -
MySQL now by default will check dates and only allow fully correct dates. If you want to MySQL to behave as default, you should enable the new
ALLOW_INVALID_DATESSQL mode. -
Added
STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO, andTRADITIONALSQL modes. TheTRADITIONALmode is shorthand for all the preceding modes. When using modeTRADITIONAL, MySQL generates an error if you try to insert a wrong value in a column. It does not adjust the value to the closest possible legal value. -
MySQL now remembers which columns were declared to have default values. In
STRICT_TRANS_TABLES/STRICT_ALL_TABLESmode, you now get an error if you do anINSERTwithout specifying all columns that don't have a default value. A side effect of this is that when you doSHOW CREATEfor a new table, you will no longer see aDEFAULTvalue for a column for which you didn't specify a default value. -
The compilation flag
DONT_USE_DEFAULT_FIELDSwas removed because you can get the same behavior by setting thesql_modesystem variable toSTRICT_TRANS_TABLES. -
We now detect too-large floating point numbers during statement parsing and generate an error messages for them.
-
Renamed the
sql_updatable_view_keysystem variable toupdatable_views_with_limit. This variable now can have only two values:-
1orYES: Don't issue an error message (warning only) if a VIEW without presence of a key in the underlying table is used in queries with aLIMITclause for updating. (This is the default value.) -
0orNO: Prohibit update of a VIEW, which does not contain a key in the underlying table and the query uses aLIMITclause (usually get from GUI tools).
-
-
Reverted output format of
SHOW TABLESto old pre-5.0.1 format that did not include a table type column. To get the additional column that lists the table type, useSHOW FULL TABLESnow. -
The mysql_fix_privilege_tables script now initializes the global
CREATE VIEWandSHOW VIEWprivileges in theusertable to the value of theCREATEprivilege in that table. -
If the server finds that the
usertable has not been upgraded to include the view-related privilege columns, it treats each account as having view privileges that are the same as itsCREATEprivilege.
Bogues corrigés :
-
Fixed that mysqlbinlog --read-from-remote-server sometimes couldn't accept two binary logfiles on the command line. (Bug#4507)
-
Fixed that mysqlbinlog --position --read-from-remote-server had incorrect
# atlines. (Bug#4506) -
Fixed that
CREATE TABLE ... TYPE=HEAP ... AS SELECT...caused replication slave to stop. (Bug#4971) -
Fixed that
mysql_options(...,MYSQL_OPT_LOCAL_INFILE,...)failed to disableLOAD DATA LOCAL INFILE. (Bug#5038) -
Fixed that
disable-local-infileoption had no effect if client read it from a configuration file usingmysql_options(...,MYSQL_READ_DEFAULT,...). (Bug#5073) -
Fixed that
SET GLOBAL SYNC_BINLOGdid not work on some platforms (Mac OS X). (Bug#5064) -
Fixed that mysql-test-run failed on the
rpl_trunc_binlogtest if running test from the installed (the target of 'make install') directory. (Bug#5050) -
Fixed that mysql-test-run failed on the
grant_cachetest when run as Unix user 'root'. (Bug#4678) -
Fixed an unlikely deadlock which could happen when using
KILL. (Bug#4810) -
Fixed a crash when one connection got
KILLed while it was doingSTART SLAVE. (Bug#4827) -
Made
FLUSH TABLES WITH READ LOCKblockCOMMITif server is running with binary logging; this ensures that the binary log position can be trusted when doing a full backup of tables and the binary log. (Bug#4953) -
Fixed that the counter of an
auto_incrementcolumn was not reset byTRUNCATE TABLEis the table was a temporary one. (Bug#5033) -
Fixed slave SQL thread so that the
SET COLLATION_SERVER...statements it replicates don't advance its position (so that if it gets interrupted before the actual update query, it will later redo theSET). (Bug#5705) -
Fixed that if the slave SQL thread found a syntax error in a query (which should be rare, as the master parsed it successfully), it stops. (Bug#5711)
-
Fixed that if a write to a MyISAM table fails because of a full disk or an exceeded disk quota, it prints a message to the error log every 10 minutes, and waits until disk becomes free. (Bug#3248)
-
Fixed problem introduced in 4.0.21 where a connection starting a transaction, doing updates, then
FLUSH TABLES WITH READ LOCK, thenCOMMIT, would cause replication slaves to stop complaing about error 1223. Bug surfaced when using the InnoDBinnobackupscript. (Bug#5949)
Fonctionnalité ajoutée ou modifiée :
-
For replication of
MEMORY(HEAP) tables: Made the master automatically write aDELETE FROMstatement to its binary log when aMEMORYtable is opened for the first time since master's startup. This is for the case where the slave has replicated a non-emptyMEMORYtable, then the master is shut down and restarted: the table is now empty on master; theDELETE FROMempties it on slave too. Note that even with this fix, between the master's restart and the first use of the table on master, the slave still has out-of-date data in the table. But if you use the--init-fileoption to populate theMEMORYtable on the master at startup, it ensures that the failing time interval is zero. (Bug#2477) -
When a session having open temporary tables terminates, the statement automatically written to the binary log is now
DROP TEMPORARY TABLE IF EXISTSinstead ofDROP TEMPORARY TABLE, for more robustness. -
The MySQL server now returns an error if
SET SQL_LOG_BINis issued by a user without theSUPERprivilege (in previous versions it just silently ignored the statement in this case). -
Changed that when the MySQL server has binary logging disabled (that is, no
log-binoption was used) then no transaction binlog cache is allocated for connections (this should savebinlog_cache_sizebytes of memory (32 kilobytes by default) for every connection). -
Added option
--replicate-same-server-id.
Bogues corrigés :
-
Strange results with index (x, y) ... WHERE x=val_1 AND y>=val_2 ORDER BY pk; (Bug#3155)
-
Subquery and order by (Bug#3118)
-
ALTER DATABASEcaused the client to hang if the database did not exist. (Bug#2333) -
SLAVE START(which is a deprecated syntax,START SLAVEshould be used instead) could crash the slave. (Bug#2516) -
Multiple-table
DELETEstatements were never replicated by the slave if there were anyreplicate-*-tableoptions. (Bug#2527) -
The MySQL server did not report any error if the query (submitted through
mysql_real_query()ormysql_prepare()) was terminated by garbage characters (which can happen if you pass a wronglengthparameter tomysql_real_query()ormysql_prepare()); the result was that the garbage characters were written into the binary log. (Bug#2703) -
Replication: If a client connects to a slave server and issues an administrative statement for a table (for example,
OPTIMIZE TABLEorREPAIR TABLE), this could sometimes stop the slave SQL thread. This does not lead to any corruption, but you must useSTART SLAVEto get replication going again. (Bug#1858) -
Made clearer the error message which one gets when an update is refused because of the
read-onlyoption. (Bug#2757) -
Fixed that
replicate-wild-*-tablerules apply toALTER DATABASEwhen the table pattern is '%', like it is already the case forCREATE DATABASEandDROP DATABASE. (Bug#3000) -
Fixed that when a
Rotateevent is found by the slave SQL thread in the middle of a transaction, the value ofRelay_Log_PosinSHOW SLAVE STATUSremains correct. (Bug#3017) -
Corrected the master's binary log position that
InnoDBreports when it is doing a crash recovery on a slave server. (Bug#3015) -
Changed the column
Seconds_Behind_MasterinSHOW SLAVE STATUSto never show a value of -1. (Bug#2826) -
Changed that when a
DROP TEMPORARY TABLEstatement is automatically written to the binlog when a session ends, the statement is recorded with an error code of value zero (this ensures that killing aSELECTon the master does not result in a superfluous error on the slave). (Bug#3063) -
Changed that when a thread handling
INSERT DELAYED(also known as adelayed_insertthread) is killed, its statements are recorded with an error code of value zero (killing such a thread does not endanger replication, so we thus avoid a superfluous error on the slave). (Bug#3081) -
Fixed deadlock when two
START SLAVEcommands were run at the same time. (Bug#2921) -
Fixed that a statement never triggers a superfluous error on the slave, if it must be excluded given the
replicate-*options. The bug was that if the statement had been killed on the master, the slave would stop. (Bug#2983) -
The
--local-loadoption ofmysqlbinlognow requires an argument. -
Fixed a segmentation fault when running
LOAD DATA FROM MASTERafterRESET SLAVE. (Bug#2922) -
mysqlbinlog --read-from-remote-serverread all binary logs following the one that was requested. It now stops at the end of the requested file, the same was it does when reading a local binary log. (Bug#3204) -
Fixed
mysqlbinlog --read-from-remote-serverto print the exact positions of events in the "at #" lines. (Bug#3214) -
Fixed a rare error condition that caused the slave SQL thread spuriously to print the message
Binlog has bad magic numberand stop when it was not necessary to do so. (Bug#3401) -
Fixed
mysqlbinlognot to forget to print aUSEstatement under rare circumstances where the binary log contained aLOAD DATA INFILEstatement. (Bug#3415) -
Fixed a memory corruption when replicating a
LOAD DATA INFILEwhen the master had version 3.23. (Bug#3422) -
Multiple-table
DELETEstatements were always replicated by the slave if there were somereplicate-*-ignore-tableoptions and noreplicate-*-do-tableoptions. (Bug#3461) -
Fixed a crash of the MySQL slave server when it was built with
--with-debugand replicating itself. (Bug#3568) -
Fixed that in some replication error messages, a very long query caused the rest of the message to be invisible (truncated), by putting the query last in the message. (Bug#3357)
Fonctionnalité ajoutée ou modifiée :
-
The
KILLstatement now takesCONNECTIONandQUERYmodifiers. The first is the same asKILLwith no modifier (it kills a given connection thread). The second kills only the statement currently being executed by the connection. -
Added
TIMESTAMPADD()andTIMESTAMPDIFF()functions. -
Added
WEEKandQUARTERvalues asINTERVALarguments for theDATE_ADD()andDATE_SUB()functions. -
New binary log format that enables replication of these session variables:
sql_mode,SQL_AUTO_IS_NULL,FOREIGN_KEY_CHECKS(which was already replicated since 4.0.14, but here it's done more efficiently and takes less space in the binary logs),UNIQUE_CHECKS. Other variables (like character sets,SQL_SELECT_LIMIT, ...) will be replicated in upcoming 5.0.x releases. -
Implemented Index Merge optimization for
ORclauses. See Section 7.2.6, « Optimisation de combinaison d'index ». -
Basic support for stored procedures (SQL:2003 style). See Chapitre 19, Procédures stockées et fonctions.
-
Added
SELECT INTO, which can be of mixed (that is, global and local) types. See Section 19.2.9.3, « Syntaxe delist_of_varsSELECT ... INTO». -
Easier replication upgrade (5.0.0 masters can read older binary logs and 5.0.0 slaves can read older relay logs). See Section 6.5, « Compatibilité de la réplication entre les versions de MySQL » for more details). The format of the binary log and relay log is changed compared to that of MySQL 4.1 and older.
-
Important note: If you upgrade to MySQL 4.1.1 or higher, it is difficult to downgrade back to 4.0 or 4.1.0! That is because, for earlier versions,
InnoDBis not aware of multiple tablespaces.
Bogues corrigés :
- C.2.1. Changements de la version 4.1.12 (Pas encore publiée)
- C.2.2. Changements de la version 4.1.11 (1 avril 2005)
- C.2.3. Changements de la version 4.1.10 (12 février 2005)
- C.2.4. Changements de la version 4.1.9 (11 Janvier 2005)
- C.2.5. Changements de la version 4.1.8 (14 Décembre 2004)
- C.2.6. Changements de la version 4.1.7 (bientôt publiée)
- C.2.7. Changements de la version 4.1.6 (10 Octobre 2004)
- C.2.8. Changements de la version 4.1.4 (16 Septembre 2004)
- C.2.9. Changements de la version 4.1.4 (26 Août 2004)
- C.2.10. Changements de la version 4.1.3 (pas encore publiée)
- C.2.11. Changements de la version 4.1.2
- C.2.12. Changements de la version 4.1.1 (01 décembre 2003)
- C.2.13. Changements de la version 4.1.0 (03 Avril 2003 : alpha)
Version 4.1 of the MySQL server includes many enhancements and new features. Binaries for this version are available for download at http://www.mysql.com/downloads/mysql-4.1.html.
-
Subqueries and derived tables (unnamed views). See Section 13.1.8, « Sous-sélections (
SubSELECT) ». -
INSERT ... ON DUPLICATE KEY UPDATE ...syntax. This allows you toUPDATEan existing row if the insert would cause a duplicate value in aPRIMARYorUNIQUEkey. (REPLACEallows you to overwrite an existing row, which is something entirely different.) See Section 13.1.4, « Syntaxe deINSERT». -
A newly designed
GROUP_CONCAT()aggregate function. See Section 12.9, « Fonctions et options à utiliser dans les clausesGROUP BY». -
Extensive Unicode (UTF8) support.
-
Character sets can be defined per column, table, and database.
-
New key cache for
MyISAMtables with many tunable parameters. You can have multiple key caches, preload index into caches for batches... -
BTREEindex onHEAPtables. -
Support for OpenGIS spatial types (geographical data). See Chapitre 18, Données spatiales avec MySQL.
-
SHOW WARNINGSshows warnings for the last command. See Section 13.5.3.19, «SHOW WARNINGS | ERRORS». -
Faster binary protocol with prepared statements and parameter binding. See Section 24.2.4, « Fonctions C de commandes préparées ».
-
You can now issue multiple statements with a single C API call and then read the results in one go. See Section 24.2.9, « Gestion des commandes multiples avec l'interface C ».
-
Create Table:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table2 LIKE table1. -
Server based
HELPcommand that can be used in themysqlcommand line client (and other clients) to get help for SQL statements.
For a full list of changes, please refer to the changelog sections for each individual 4.1.x release.
Fonctionnalités ajoutées ou modifiées :
-
Updated version of
libeditto 2.9. (Bug#2596) -
InnoDB: WhenFOREIGN_KEY_CHECKS=0,ALTER TABLEandRENAME TABLEwill ignore any type incompatibilities between referencing and referenced columns. Thus, it will be possible to convert the character sets of columns that participate in a foreign key. Be sure to convert all tables before modifying any data! (Bug#9802) -
Previously in MySQL 4.1, an
Illegal mix of collationserror occurred when mixing strings from same character set when one had a non-binary collation and the other a binary collation. Now the binary collation takes precedence, so that both strings are treated as having the binary collation. This restores compatibility with MySQL 4.0 behavior.
Bogues corrigés :
-
Security fix: If mysqld was started with
--user=, it would run using the privileges of the account it was invoked from, even if that wasnon_existent_userroot. (Bug#9833) -
MAX()for anINT UNSIGNED(unsigned 4-byte integer) column could return negative values if the column contained values larger than 2^31. (Bug#9298) -
Fixed a deadlock resulting from use of
FLUSH TABLES WITH READ LOCKwhile anINSERT DELAYEDstatement is in progress. (Bug#7823) -
Multiple-table updates could produce spurious data-truncation warnings if they used a join across columns that are indexed using a column prefix. (Bug#9103)
-
Use of a subquery that used
WITH ROLLUPin theFROMclause of the main query sometimes resulted in aColumn cannot be nullerror. (Bug#9681) -
RENAME TABLEfor anARCHIVEtable failed if the.arnfile was not present. (Bug#9911) -
Fixed an optimizer problem where extraneous comparisons between
NULLvalues in indexed columns were being done for operators such as=that are never true forNULL. (Bug#8877) -
SELECT ROUND(produced a different result thanexpr)CREATE TABLE ... SELECT ROUND(. (Bug#9837)expr) -
Fixed some awk script portability problems in cmd-line-utils/libedit/makelist.sh. (Bug#9954)
-
Changed metadata for result of
SHOW KEYS: Data type forSub_partcolumn now isSMALLINTrather thanTINYINTbecause key part length can be longer than 255. (Bug#9439) -
Fixed some problems with myisampack on 64-bit systems that resulted in segmentation violations. (Bug#9487)
-
Fixed an optimizer bug in computing the union of two ranges for the
ORoperator. (Bug#9348) -
Fixed an index corruption problem for
MyISAMtables that resulted from the 4.1 behavior of padding values with blanks for comparison: Dumping a table with mysqldump, reloading it, and then re-running the binary log against it crashed the index and necessitated a repair. (Bug#9188) -
Fixed a segmentation fault in mysqlcheck that occurred when the last table checked in
--auto-repairmode returned an error (such as the table being aMERGEtable). (Bug#9492) -
Fixed the client/server protocol for prepared statements so that reconnection works properly when the connection is killed while reconnect is enabled. (Bug#8866)
-
INSERT ... ON DUPLICATE KEY UPDATEincorrectly updated aTIMESTAMPcolumn to the current timestamp, even if the update list includedfor that column to prevent the update. (Bug#7806)col_name=col_name -
Starting mysqld with the
--skip-innodband--default-storage-engine=innodb(or--default-table-type=innodbcaused a server crash. (Bug#9815) -
Queries containing
CURRENT_USER()incorrectly were registered in the query cache. (Bug#9796) -
A server installed as a Windows service and started with
--shared-memorycould not be stopped. (Bug#9665) -
mysqldump dumped core when invoked with
--tmpand--single-transactionoptions and a non-existent table name. (Bug#9175) -
Additional fix for
mysql_server_init()andmysql_server_end()C API functions so that stopping and restarting the embedded server will not cause a crash. (Bug#7344) -
mysql.server no longer uses non-portable alias command or LSB functions. (Bug#9852)
-
Fixed a
readline-related crash in mysql when the user pressed Control-R. (Bug#9568) -
TIMEDIFF()with a negative time first argument and postive time second argument produced incorrect results. (Bug#8068) -
Fixed a bug that caused concurrent inserts to be allowed into the tables in the
SELECT ... UNION ...part ofINSERT ... SELECT ... UNION .... This could result in the incorrect order of queries in the binary log. (Bug#9922) -
Warning message from
GROUP_CONCAT()did not always indicate correct number of lines. (Bug#8681) -
InnoDB:
ENUMandSETcolumns were treated incorrectly as character strings. This bug did not manifest itself withlatin1collations, but it caused malfunction withutf8. Old tables will continue to work. In new tables,ENUMandSETwill be internally stored as unsigned integers. (Bug#9526) -
InnoDB: Avoid test suite failures caused by a locking conflict between two server instances at server shutdown/startup. This conflict on advisory locks appears to be the result of a bug in the operating system; these locks should be released when the files are closed, but somehow that does not always happen immediately in Linux. (Bug#9381)
-
InnoDB: PreventALTER TABLEfrom changing the storage engine if there are foreign key constraints on the table. (Bug#5574, Bug#5670) -
InnoDB: Fixed a deadlock without any locking, simple select and update. (Bug#7975)InnoDBnow takes an exclusive lock whenINSERT ON DUPLICATE KEY UPDATEis checking duplicate keys.
Fonctionnalités ajoutées ou modifiées :
-
ONLY_FULL_GROUP_BYno longer is included in theANSIcomposite SQL mode. (Bug#8510) -
mysqld_safe will create the directory where the UNIX socket file is to be located if the directory does not exist. This applies only to the last component of the directory pathname. (Bug#8513)
-
The coercibility for the return value of functions such as
USER()orVERSION()now is ``system constant'' rather than ``implicit.'' This makes these functions more coercible than column values so that comparisons of the two do not result inIllegal mix of collationserrors.COERCIBILITY()was modified to accommodate this new coercibility value. See Section 12.8.3, « Fonctions d'informations ». -
User variable coercibility has been changed from ``coercible'' to ``implicit.'' That is, user variables have the same coercibility as column values.
-
NULLnow is considered more coercible than string constants. This resolves someIllegal mix of collationsconflicts. -
Modified the parser to allow
SELECTstatements following theUNIONkeyword to be subqueries in parentheses. (Bug#2435) -
For slave replication servers started with
--replicate-*options, statements that should not be replicated according those options no longer are written to the slave's general query log. (Bug#8297) -
Added
SQL_NOTESsession variable to causeNote-level warnings not to be recorded. (Bug#6662) -
InnoDB: Commit after every 10,000 copied rows when executingCREATE INDEX,DROP INDEXorOPTIMIZE TABLE, which are internally implemented asALTER TABLE. This makes it much faster to recover from an aborted operation. -
Added a new global system variable
slave_transaction_retries: If the replication slave SQL thread fails to execute a transaction because of anInnoDBdeadlock or exceeded InnoDB'sinnodb_lock_wait_timeoutor NDBCluster'sTransactionDeadlockDetectionTimeoutorTransactionInactiveTimeout, it automatically retriesslave_transaction_retriestimes before stopping with an error. The default in MySQL 4.1 is 0. You must explicitly set the value greater than 0 to enable the ``retry'' behavior. (In MySQL 5.0.3 or newer, the default is 10.) (Bug#8325) -
Added
--with-big-tablescompilation option to configure. (Previously it was necessary to pass-DBIG_TABLESto the compiler manually in order to enable large table support.) See Section 2.4.2, « Options habituelles deconfigure» for details. -
Added configuration directives
!includeand!includedirfor including option files and searching directories for option files. See Section 4.3.2, « Fichier d'optionsmy.cnf» for usage.
Bogues corrigés :
-
The use of
XORtogether withNOT ISNULL()erroneously resulted in some outer joins being converted to inner joins by the optimizer. (Bug#9017) -
Fixed
utf8_spanish2_cianducs2_spanish2_cicollations to not consider ‘r’ equal to ‘rr’. If you upgrade to this version from an earlier version, you should rebuild the indexes of affected tables. (Bug#9269) -
Allow extra HKSCS and cp950 characters (
big5extension characters) to be accepted inbig5columns. (Bug#9357) -
BLOB(andM)TEXT(columns, withM)Mless than 256, were being created asBLOBandTEXTcolumns rather thanTINYBLOBorTINYTEXTcolumns. (Bug#9303) -
Fixed a problem with
INSERT ... SELECT ... ON DUPLICATE KEY UPDATEwhere a column named in the insert list and in theON DUPLICATE KEY UPDATEclause was erroneously declared to be ambiguous. (Bug#8147) -
In prepared statements, subqueries containing parameters were erroneously treated as
consttables during preparation, resulting in a server crash. (Bug#8807) -
Fixed a problem with
OPTIMIZE TABLEforInnoDBtables being written twice to the binary log. (Bug#9149) -
Provide more informative error messages in clustered setting when a query is issued against a table that has been modified by another
mysqldserver. (Bug#6762) -
For
MyISAMtables,REPAIR TABLEno longer discard rows that have incorrect checksum. (Bug#9824) -
Depending on index statistics,
GROUP BYcould return incorrect results if the first table processed for a join had several indexes that cover the grouped columns. (Bug#9213)col1,col2, ... -
Fixed incorrect evaluation of
ALL/ANYsubqueries that contain aHAVINGclause. (Bug#9350) -
Fixed server crash when left expression of
IN/ALL/ANYcomparision was a subquery. (Bug#8888) -
Fixed option-parsing code for the embedded server to understand
K,M, andGsuffixes for thenet_buffer_lengthandmax_allowed_packetoptions. (Bug#9472) -
Fixed a crash when using
TIMESTAMPcolumns with no minute or second parts inGROUP BYwith thenewsystem variable set to 1. (Bug#9401) -
If a
MyISAMtable on Windows hadINDEX DIRECTORYorDATA DIRECTORYtable options, mysqldump dumped the directory pathnames with single-backslash pathname separators. This would cause syntax errors when importing the dump file. mysqldump now changes ‘\’ to ‘/’ in the pathnames on Windows. (Bug#6660) -
Fixed a server crash caused by use of
NOW()is a subquery. (Bug#8824) -
Fixed problems with static variables to allow building on Fedora Core 3. (Bug#6554)
-
Some user variables were not being handled with ``implicit'' coercibility. (Bug#9425)
-
Setting the
max_error_countsystem variable to 0 resulted in a setting of 1. (Bug#9072) -
Fixed a collation coercibility problem that caused a union between binary and non-binary columns to fail. (Bug#6519)
-
Fixed a problem with the
teecommand in mysql that resulted in mysql crashing. (Bug#8499) -
On Windows, create shared memory objects with the proper access rights to make them usable when the client and server are running under different accounts. (Bug#8226)
-
Bundled
zlibin the source distribution was upgraded to 1.2.2. (Bug#9118) -
Fixed server crash resulting from queries that combined
SELECT DISTINCT,SUM(), andROLLUP. (Bug#8615) -
Incorrect results were returned from queries that combined
SELECT DISTINCT,GROUP BY, andROLLUP. (Bug#8616) -
Fixed a bug that under certain circumstances could allow a privilege escalation via database wildcards in
GRANT. (CVE-2004-0957) -
Too many rows were returned from queries that combined
ROLLUPandLIMITifSQL_CALC_FOUND_ROWSwas given. (Bug#8617) -
mysqldump misinterpreted ‘
_’ and ‘%’ characters in the names of tables to be dumped as wildcard characters. (Bug#9123) -
Made the
relay_log_space_limitsystem variable show up in the output ofSHOW VARIABLES. (Bug#7100) -
Use of
GROUP_CONCAT(in a subquery, wherex)xwas an alias to a column in the outer query, resulted in a server crash. (Bug#8656) -
The
CHARSET(),COLLATION(), andCOERCIBILITY()functions sometimes returnedNULL.CHARSET()andCOLLATION()returnedNULLwhen given any of these arguments that evaluated toNULL: A system function such asDATABASE(); a column value; and a user variable. NowCHARSET()andCOLLATION()return the system character set and collation; the column character set and collation; andbinary.COERCIBILITY(NULL)now returns ``ignorable'' coercibility rather thanNULL. (Bug#9129) -
Expressions involving nested
CONCAT()calls and character set conversion of string constants could return an incorrect result. (Bug#8785) -
The
MEMORYstorage engine did not properly increment anAUTO_INCREMENTcolumn if there was a second composite index that included the column. (Bug#8489) -
Fixed a bug in the filesort routine such that killing a filesort could cause an assertion failure. (Bug#8799)
-
REPAIR TABLEdid not invalidate query results in the query cache that were generated from the table. (Bug#8480) -
If
max_join_sizewas set, a query containing a subquery that exceeded the examined-rows limit could hang. (Bug#8726) -
Mixed-case database and table names in the grant tables were ignored for authentication if the
lower_case_table_namessystem variable was set.GRANTwill not create such privileges whenlower_case_table_namesis set, but it is possible to create them by direct manipulation of the grant tables, or that old grant records were present before setting the variable. (Bug#7989) -
AES_DECRYPT(could fail to returncol_name,key)NULLfor invalid values incol_name, ifcol_namewas declared asNOT NULL. (Bug#8669) -
Ordering by unsigned expression (more complex than a column reference) was treating the value as signed, producing incorrectly sorted results. (Bug#7425)
-
HAVINGwas treating unsigned columns as signed. (Bug#7425) -
Fixed a problem with boolean full-text searches on
utf8columns where a double quote in the search string caused a server crash. (Bug#8351) -
MIN(andcol_name)MAX(could fail to produce the correct result ifcol_name)col_namewas contained in multiple indexes and the optimizer did not choose the first index that contained the column. (Bug#8893) -
Table creation for a
MyISAMtable failed ifDATA DIRECTORYorINDEX DIRECTORYoptions were given that specified the pathname to the database directory where the table files would be created by default. (Bug#8707) -
Fixed a problem with
LIKEpattern-matching for strings with thecp1251_binbinary collation. (Bug#8560) -
A join on two tables failed when each contained a
BIGINT UNSIGNEDcolumn that were compared when their values exceeded 2^63 − 1. The match failed and the join returned no rows. (Bug#8562) -
For a query with both
GROUP BYandCOUNT(DISTINCT)clauses and aFROMclause with a subquery,NULLwas returned for anyVARCHARcolumn selected by the subquery. (Bug#8218) -
Fixed an optimizer bug that caused incorrectly ordered result from a query that used a
FULLTEXTindex to retrieve rows and there was another index that was usable forORDER BY. For such a query,EXPLAINshowedfulltextjoin type, but regular (notFULLTEXT) index in theKeycolumn. (Bug#6635) -
For a statement string that contained multiple slow queries, only the last one would be written to the slow query log. (Bug#8475)
-
When the server was started with
--skip-name-resolve, specifying hostname values that included netmasks inGRANTstatements did not work. (Bug#8471) -
The
--set-character-setoption for myisamchk was changed to--set-collation. The value needed for specifying how to sort indexes is a collation name, not a character set name. (Bug#8349) -
Hostname matching didn't work if a netmask was specified for table-specific privileges. (Bug#3309)
-
Binary data stored in
BLOBorBINARYcolumns would be erroneously dumped if mysqldump was invoked with--hex-bloband--skip-extended-insertarguments. This happened if data contained characters larger then 0x7F (Bug#8830). -
Corruption of
MyISAMtable indexes could occur withTRUNCATE TABLEif the table had already been opened. For example, this was possible if the table had been opened implicitly by selecting from aMERGEtable that mapped to theMyISAMtable. The server now issues an error message forTRUNCATE TABLEunder these conditions. (Bug#8306) -
Fixed handling of table-name matching in mysqlhotcopy to accommodate
DBD::mysql2.9003 and up (which implement identifier quoting). (Bug#8136) -
In the
mysql_real_escape_string()C API function, when a multi-byte character is encountered that is illegal in the current character set, escape only the first byte, not each byte. This avoids creating a valid character from an invalid one. (Bug#8378) -
Fixed a problem with the
cp1250_czech_cscollation that caused empty literal strings not to compare equal to empty character columns. (Bug#8840) -
Fixed a problem in index cost calculation that caused a
USE INDEXorFORCE INDEXhint not to be used properly for aLEFT JOINacross indexedBLOBcolumns. (Bug#7520) -
The column type for
MAX(was returned asdatetime_col)VARCHARrather thanDATETIMEif the query included aGROUP BYclause. (Bug#5615) -
FOUND_ROWS()returned an incorrect value for precedingSELECTstatements that used no table or view. (Bug#6089) -
In string literals with an escape character (‘
\’) followed by a multi-byte character that has a second byte of ‘\’, the literal was not interpreted correctly. The next character now is escaped, not just the next byte. (Bug#8303) -
InnoDB: Work around a problem in AIX 5.1 patched with ML7 security patch: InnoDB would refuse to open its
ibdatafiles, complaining about an operating system error 0. -
InnoDB: Fixed a memory corruption bug if one created a table with a primary key that contained at least two column prefixes. An example:
CREATE TABLE t(a char(100), b tinyblob, PRIMARY KEY(a(5), b(10))). -
InnoDB: Do not try to space-padBLOBcolumns containingucs2characters. This avoids an assertion failure that was introduced when fixing Bug#7350. (Bug#8771) -
InnoDB: Fixed a bug : MySQL-4.1.8 - 4.1.10 could complain that an InnoDB table created with MySQL-3.23.49 or earlier was in the new compact InnoDB table format of 5.0.3 or later, and InnoDB would refuse to use that table. There is nothing wrong with the table, it is mysqld that is in error. Workaround: wait that 4.1.11 is released before doing an upgrade, or dump the table and recreate it with any MySQL version >= 3.23.50 before upgrading.
-
InnoDB: Honor the--tmpdirstartup option when creating temporary files. Previously,InnoDBtemporary files were always created in the temporary directory of the operating system. On Netware,InnoDBwill continue to ignore--tmpdir. (Bug#5822) -
InnoDB: If MySQL wrote to its binlog, but for some reasontrx->update_undoandtrx->insert_undowere NULL in InnoDB, thentrx->commit_lsnwas garbage, and InnoDB could assert in the log flush oftrx_commit_complete_for_mysql(). (Bug#9277) -
InnoDB: If InnoDB cannot allocate memory, keep retrying for 60 seconds before we intentionally crashmysqld; maybe the memory shortage is just temporary. -
InnoDB: If one usedLOCK TABLES, created an InnoDB temp table, and did a multi-table update where a MyISAM table was the update table and the temp table was a read table, then InnoDB asserted inrow0sel.cbecausen_mysql_tables_in_usewas 0. Also, we remove the assertion altogether and just print an error to the.errlog if this important consistency check fails. (Bug#8677) -
mysqldump now avoids writing
SET NAMESto the dump output if the server is older than version 4.1 and would not understand that statement. (Bug#7997) -
Fixed a bug in my_print_defaults that made it ignore the
--defaults-extra-fileand--defaults-fileoptions. -
Retrieving from a view defined as a
SELECTthat mixedUNION ALLandUNION DISTINCTresulted in a different result than retrieving from the originalSELECT. (Bug#6565) -
Worked around a bug in support for NSS support in
glibcwhen static linking is used and LDAP is one of the NSS sources. The workaround is to detect when the bug causes a segfault and issue a diagnostic message with information about the problem. (Bug#3037, Bug#4872) -
If the mysql prompt was configured to display the default database name, and that database was dropped, mysql did not update the prompt. (Bug#4802)
-
perror was printing a spurious extra line of output ("Error code ###: Unknown error ###" printed directly before the correct line with the error message). (Bug#8517)
-
The
CHAR()function was not ignoringNULLarguments, contrary to the documentation. (Bug#6317) -
Neither
SHOW ERRORSnorSHOW WARNINGSwere displaying Error-level messages. (Bug#6572) -
Creating a table using a name containing a character that is illegal in
character_set_clientresulted in the character being stripped from the name and no error. The character now is considered an error. (Bug#8041) -
Fixed a problem with the Cyrillic letters I and SHORT I being treated the same by the
utf8_general_cicollation. (Bug#8385) -
The
MAX_CONNECTIONS_PER_HOURresource limit was not being reset hourly and thus imposed an absolute limit on number of connections per account until the server is restarted or the limits flushed. (Bug#8350) -
With a database was dropped with
lower_case_table_names=2, tables in the database also were dropped but not being flushed properly from the table cache. If the database was recreated, the tables also would appear to have been recreated. (Bug#8355) -
Changed
mysql_server_end()C API function to restore more variables to their initial state so that a subsequent call tomysql_server_init()would not cause a client program crash. (Bug#7344) -
Fixed a problem with accented letters improperly being treated as distinct with the
utf_general_cicollation. (Bug#7878) -
ENUMandSETcolumns in privilege tables incorrectly had a case-sensitive collation, resulting in failure of assignments of values that did not have the same lettercase as given in the column definitions. The collation was changed to be case insensitive. (Bug#7617) -
An expression that tested a case-insensitive character column against string constants that differed in lettercase could fail because the constants were treated as having a binary collation. (For example,
WHERE city='London' AND city='london'could fail.) (Bug#7098, Bug#8690) -
The output of the
STATUS(\s) command in mysql had the values for the server and client character sets reversed. (Bug#7571) -
If the slave was running with
--replicate-*-tableoptions which excluded one temporary table and included another, and the two tables were used in a singleDROP TEMPORARY TABLE IF EXISTSstatement, as the ones the master automatically writes to its binary log upon client's disconnection when client has not explicitly dropped these, the slave could forget to delete the included replicated temporary table. Only the slave needs to be upgraded. (Bug#8055) -
Treat user variables as having
IMPLICITderivation (coercibility) to avoid ``Illegal mix of collations'' errors when replicating user variables. (Bug#6676) -
When setting integer system variables to a negative value with
SET VARIABLES, the value was treated as a positive value modulo 2^32. (Bug#6958) -
Fixed a bug in bundled
readlinelibrary that caused segmentation fault in mysql when user entered Shift+Enter. (Bug#5672) -
Fix conversion of strings -> double to get higher accuracy for floating point values that are integers, like:
123.45E+02(Bug#7840). -
Fixed a bug in
MATCH ... AGAINSTin natural language mode that could cause a server crash if theFULLTEXTindex was not used in a join (EXPLAINdid not showfulltextjoin mode) and the search query matched no rows in the table (Bug#8522). -
Platform and architecture information in version information produced for
--versionoption on Windows was alwaysWin95/Win98 (i32). More accurately determine platform asWin32orWin64for 32-bit or 64-bit Windows, and architecture asia32for x86,ia64for Itanium, andaxpfor Alpha. (Bug#4445) -
Fixed a rare race condition which could lead to
FLUSH TABLES WITH READ LOCKhanging. (Bug#8682) -
Fixed a bug that caused the slave to stop on statements that produced an error on the master. (Bug#8412)
-
If multiple semicolon-separated statements were received in a single packet, they were written to the binary log as a single event rather than as separate per-statement events. For a server serving as a replication master, this caused replication to fail when the event was sent to slave servers. (Bug#8436)
Note: The security improvements related to creation of table files and to user-defined functions were made after MySQL 4.1.10 was released and are present in MySQL 4.1.10a. We would like to thank Stefano Di Paola <stefano.dipaola@wisec.it> for making us aware of these.
Fonctionnalités ajoutées ou modifiées :
-
Added back faster subquery execution from 4.1.8. This adds also back a bug from 4.1.8 in comparing
NULLto the value of a subquery. See Section 1.5.7.4, « Bugs connus / limitations de MySQL ». -
Security improvement: The server creates
.frm,.MYD,.MYI,.MRG,.ISD, and.ISMtable files only if a file with the same name does not already exist. Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0711) -
Security improvement: User-defined functions should have at least one symbol defined in addition to the
xxxsymbol that corresponds to the mainxxx()function. These auxiliary symbols correspond to thexxx_init(),xxx_deinit(),xxx_reset(),xxx_clear(), andxxx_add()functions. mysqld by default no longer loads UDFs unless they have at least one auxiliary symbol defined in addition to the main symbol. The--allow-suspicious-udfsoption controls whether UDFs that have only anxxxsymbol can be loaded. By default, the option is off.mysqldalso checks UDF filenames when it reads them from themysql.functable and rejects those that contain directory pathname separator characters. (It already checked names as given inCREATE FUNCTIONstatements.) See Section 27.2.3.1, « Fonctions utilisateur : appeler des fonctions simples », Section 27.2.3.2, « Appeler des fonctions utilisateurs pour les groupements », and Section 27.2.3.6, « Précautions à prendre avec les fonctions utilisateur ». Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0709, CVE-2005-0710) -
Setting the connection collation to a value different from the server collation followed by a
CREATE TABLEstatement that included a quoted default value resulted in a server crash. (Bug#8235) -
Thread stack size was increased from 192KB to 256KB on Linux/IA-64 (too small stack size was causing server crashes on some queries). (Bug#8391)
-
From the Windows distribution, predefined accounts without passwords for remote users ("root@%", "@%") were removed (other distributions never had them).
-
Added
mysql_library_init()andmysql_library_end()as synonyms for themysql_server_init()andmysql_server_end()C API functions.mysql_library_init()andmysql_library_end()are#definesymbols, but the names more clearly indicate that they should be called when beginning and ending use of a MySQL C API library no matter whether the application useslibmysqlclientorlibmysqld. (Bug#6149) -
The server now issues a warning when
lower_case_table_names=2and the data directory is on a case-sensitive filesystem, just as whenlower_case_table_names=0on a case-insensitive filesystem. (Bug#7887) -
The server now issues a warning to the error log when it encounters older tables that contain character columns that might be interpreted by newer servers to have a different column length. (Bug#6913) See Section 2.6.2, « Passer de la version 4.0 à la version 4.1 » for a discussion of this problem and what to do about it.
-
InnoDB: When MySQL/InnoDB is compiled on Mac OS X 10.2 or earlier, detect the operating system version at run time and use the
fcntl()file flush method on Mac OS X versions 10.3 and later. Apple had disabledfsync()in Mac OS X for internal disk drives, which caused corruption at power outages. -
InnoDB: A shared record lock (
LOCK_REC_NOT_GAP) is now taken for a matching record in the foreign key check because inserts can be allowed into gaps. -
InnoDB: Relaxed locking in INSERT...SELECT, single table UPDATE...SELECT and single table DELETE...SELECT clauses when innobase_locks_unsafe_for_binlog is used and isolation level of the transaction is not serializable.
InnoDBuses consistent read in these cases for a selected table.
Bogues corrigés :
-
FOUND_ROWS()returned an incorrect value after aSELECT SQL_CALC_FOUND_ROWS DISTINCTstatement that selected constants and includedGROUP BYandLIMITclauses. (Bug#7945) -
Fixed a bug in cardinality estimations for
HASHindexes ofTEMPORARYtables created usingMEMORYstorage engine. As a result queries that were using this index (as shown byEXPLAIN) could have returned incorrect results. (Bug#8371) -
Corrected a problem with references to
DUALwhere statements such asSELECT 1 AS a FROM DUALwould succeed but statements such asSELECT 1 AS a FROM DUAL LIMIT 1would fail. (Bug#8023) -
Fixed a server crash caused by
DELETE FROMwhen thetbl_name... WHERE ... ORDER BYtbl_name.col_nameORDER BYcolumn was qualified with the table name. (Bug#8392) -
mysqld had problems finding its language files if the
basedirvalue was specified as a very long pathname. (Bug#8015) -
Updates were being written to the binary log when there were
binlog-do-dborbinlog-ignore-dboptions even when there was no current database, contrary to Section 5.9.4, « Le log binaire ». (Bug#6749) -
Fixed conversion of floating-point values to character fields when the absolute value of the float was less than 1, and also fixed calculation of length for negative values. (Bug#7774)
-
Column headers in query results retrieved from the query cache could be corrupted when a non-4.1 client was served a result originally generated for a 4.1 client. The query cache was not keeping track of which client/server protocol was being used. (Bug#6511)
-
Fixed
LOAD INDEXstatement to actually load index in memory. (Bug#8452) -
If multiple prepared statements were executed without retrieving their results, executing one of them again would cause the client program to crash. (Bug#8330)
-
Non-numeric values inserted into a
YEARcolumn were being stored as2000rather than as0000. (Bug#6067) -
Fixed a failure of multiple-table updates to replicate properly on slave servers when
--replicate-*-tableoptions had been specified. (Bug#7011) -
mysql_stmt_close()C API function was not clearing an error indicator when a previous prepare call failed, causing subsequent invocations of error-retrieving calls to indicate spurious error values. (Bug#7990) -
Fixed failure of
CREATE TABLE ... LIKEWindows when the source or destination table was located in a symlinked database directory. (Bug#6607) -
With
lower_case_table_namesset to 1, mysqldump on Windows could write the same table name in different lettercase for different SQL statements. Fixed so that consistent lettercase is used. (Bug#5185)HAVINGthat referred toRAND()or a user-defined function in theSELECTpart through an alias could cause a crash or wrong value. (Bug#8216) -
If one used
CONVERT_TZ()function inSELECT, which in its turn was used inCREATE TABLEstatements, then system time zone tables were added to list of tables joined in SELECT and thus erroneous result was produced. (Bug#7899) -
Fixed a bug in
CONV()function returning unsignedBIGINTnumber (third argument is positive, and return value does not fit in 32 bits). (Bug#7751) -
Fixed a failure of the
IN()operator to return correct result if all values in the list were constants and some of them were using substring functions, for example,LEFT(),RIGHT(), orMID(). -
Fixed problem with
SHOW INDEXreportingSub_partvalues in bytes rather than characters for columns with a multi-byte character set. (Bug#7943) -
Fixed a crash in
CONVERT_TZ()function when its second or third argument was from aconsttable (see Section 7.2.1, « Syntaxe deEXPLAIN(Obtenir des informations sur lesSELECT) »). (Bug#7705) -
Correct a problem with mysql_config, which was failing to produce proper
zliboption for linking under some circumstances. (Bug#6273) -
Fixed a problem with calculation of number of columns in row comparison against a subquery. (Bug#8020)
-
Fixed erroneous output resulting from
SELECT DISTINCTcombined with a subquery andGROUP BY. (Bug#7946) -
Fixed server crash in comparing a nested row expression (for example
row(1,(2,3))) with a subquery. (Bug#8022) -
Fixed server crash resulting from certain correlated subqueries with forward references (referring to an alias defined later in the outer query). (Bug#8025)
-
Fixed server crash resulting from re-execution of prepared statements containing subqueries. (Bug#8125)
-
Removed a dependence of boolean full-text search on
--default-character-setoption. (Bug#8159) -
Fixed a crash in a boolean full-text search in certain joins. (Bug#8234)
-
Fixed erroneous comparison where strings that began with
CHAR(31)were considered equal to the empty string. (Bug#8134) -
Add description of
debugcommand to mysqladmin help output. (Bug#8207) -
perror.exe was always returning ``Unknown error'' on Windows. See Section 8.12, «
perror, expliquer les codes d'erreurs ». (Bug#7390) -
Modify
SETstatements produced by mysqldump to write quoted strings using single quotes rather than double quotes. This avoids problems if the dump file is reloaded while theANSI_QUOTESSQL mode is in effect. (Bug#8148) -
Fixed a bug where
ALTER TABLEimproperly would accept an index on aTIMESTAMPcolumn thatCREATE TABLEwould reject. (Bug#7884) -
Fixed a bug in multiple-table
UPDATEstatements that could cause spuriousTable '#sql_....' is fullerrors if the number of rows to update is big enough. (Bug#7788) -
Fixed a problem where
SHOW INDEXon aMERGEtable could crash a debugging version of the server. (Bug#7377) -
Fixed a problem where adding an
ORDER BYclause for an indexed column would cause aSELECTto return an empty result. (Bug#7331) -
Fixed a problem where
ALTER TABLEon aTEMPORARYtable with a mixed-lettercase name could cause the table to disappear whenlower_case_table_nameswas set to 2. (Bug#7261) -
Fixed a problem with key cache statistics being reported incorrectly by the server after receipt of a
SIGHUPsignal. (Bug#4285) -
Fixed a problem that caused
mysql_stmt_prepare()to be very slow when used in client programs on Windows. (Bug#5787) -
For indexes,
SHOW CREATE TABLEnow displays the index type even if it is the default, for storage engines that support multiple index types. (Bug#7235) -
Fixed a bug where the use of
GROUP_CONCAT()withHAVINGcaused a server crash. (Bug#7769) -
Fixed a bug where comparing the result of a subquery to a non-existent column caused a server crash on Windows. (Bug#7885)
-
Fixed a bug which caused
TIMEDIFF()function to return wrong results if one of its arguments had non-zero microsecond part (Bug#7586). -
Fixed a bug which caused
TIMESTAMPcolumns with display width specified to be not identical toDATETIMEcolumns when server was run inMAXDBmode (Bug#7418). -
Fixed a bug in
UNIONstatements that resulted in the wrong number of the examined rows reported in the slow query log. -
Fixed a bug in a combination of
-notandtrunc*operators of full-text search. Using more than one truncated negative search term, was causing empty result set. -
InnoDB: Fixed a bug introduced in 4.1.9 to the Windows version if you used
innodb_file_per_table. mysqld would stop and complain about Windows error number 87 in a file operation. (See the Bugs database or the 4.1.9 change notes about a workaround for that bug in 4.1.9). (Bug#8021) -
InnoDB: Corrected the handling of trailing spaces in the
ucs2character set. (Bug#7350) -
InnoDB: Use native
tmpfile()function on Netware. All InnoDB temporary files are created undersys:\tmp. Previously, InnoDB temporary files were never deleted on Netware. -
InnoDB: Fix a race condition that could cause the assertion
space->n_pending_flushes == 0to fail infil0fil.c, infil_space_free(), inDROP TABLEor inALTER TABLE. -
InnoDB:
ALTER TABLE ... ADD CONSTRAINT PRIMARY KEY ...complained about bad foreign key definition. (Bug#7831) -
InnoDB: Fix a theoretical hang over the adaptive hash latch in InnoDB if one runs
INSERT ... SELECT ...(binlog not enabled), or a multi-tableUPDATEorDELETE, and only the read tables are InnoDB type, the rest are MyISAM. (Bug#7879) -
Fixed a bug in
max_heap_table_sizehandling, that resulted inTable is fullerror when the table was still smaller than the limit. (Bug#7791). -
Fixed a symlink vulnerability in the mysqlaccess script. Reported by Javier Fernandez-Sanguino Pena and Debian Security Audit Team. (CVE-2005-0004)
-
mysqlbinlog forgot to add backquotes around the collation of user variables (causing later parsing problems as
BINARYis a reserved word). (Bug#7793) -
Ensured that mysqldump --single-transaction sets its transaction isolation level to
REPEATABLE READbefore proceeding (otherwise if the MySQL server was configured to run with a default isolation level lower thanREPEATABLE READit could give an inconsistent dump). (Bug#7850) -
Changed mysql client so that including
\pas part of a prompt command uses the name of the shared memory connection when the connection is using shared memory. (Bug#7922) -
Fixed a problem in the server where executing a multi-statement query more than once with the query cache active could yield incorrect result sets. (Bug#7966)
-
Fixed that a 4.1.10 slave can connect to a master < 3.23.50 without hanging (the reason for the hang is a bug in these quite old masters --
SELECT @@unknown_varhangs them -- which was fixed in MySQL 3.23.50). (Bug#7965) -
Fixed a bug where MySQL was allowing concurrent updates (inserts, deletes) to a table if binary logging is enabled. Changed to ensure that all updates are executed in a serialized fashion, because they are executed serialized when binlog is replayed. (Bug#7879)
Fonctionnalités ajoutées ou modifiées :
-
mysqld_safe no longer tests for the presence of the data directory when using a relatively located server binary. It just assumes the directory is there, and fails to start up if it is not. This allows the data directory location to be specified on the command line, and avoids running a server binary that was not intended. (Bug#7249)
-
The naming scheme of the Windows installation packages has changed slightly:
-
The platform suffix was changed from
-winto-win32 -
The product descriptions
-noinstalland-essentialhave been moved in front of the version number
Examples:
mysql-essential-4.1.9-win32.msi,mysql-noinstall-4.1.9-win32.zipSee Section 2.2.1, « Installer MySQL sous Windows ». -
-
The Mac OS X 10.3 installation disk images now include a MySQL Preference Pane for the Mac OS X Control Panel that enables the user to start and stop the MySQL server via the GUI and activate and deactivate the automatic MySQL server startup on bootup.
-
The
MySQL-shared-compatLinux RPM now includes the 3.23 as well as the 4.0libysqlclient.soshared libraries. (Bug#6342) -
Seconds_Behind_MasterisNULL(which means ``unknown'') if the slave SQL thread is not running, or if the slave I/O thread is not running or not connected to master. It is zero if the SQL thread has caught up with the I/O thread. It no longer grows indefinitely if the master is idle. -
InnoDB: Do not acquire an internal
InnoDBtable lock inLOCK TABLESifAUTOCOMMIT=1. This helps in porting oldMyISAMapplications toInnoDB.InnoDBtable locks in that case caused deadlocks very easily. -
InnoDB: Print a more descriptive error and refuse to start
InnoDBif the size ofibdatafiles is smaller than what is stored in the tablespace header;innodb_force_recoveryoverrides this. -
The MySQL server aborts immediately instead of simply issuing a warning if it is started with the
--log-binoption but cannot initialize the binary log at startup (that is, an error occurs when writing to the binary log file or binary log index file). -
The binary log file and binary log index file now behave like
MyISAMwhen there is a "disk full" or "quota exceeded" error. See Section A.4.3, « Comment MySQL gère un disque plein ».
Bogues corrigés :
-
Fixed problem where running mysql_fix_privilege_tables could result in grant table columns with too-short lengths if the server character set had been set to a multi-byte character set first. (Bug#7539)
-
InnoDB: Fixed the critical bug if you enabled
innodb_file_per_tableinmy.cnf. If you shut down mysqld, records could disappear from the secondary indexes of a table. Unfortunately, on Windows a new Bug#8021 was introduced. Windows users ofinnodb_file_per_tableshould put a lineinnodb_flush_method=unbufferedto theirmy.cnformy.inito work around 8021. (Bug#7496) -
InnoDB: Fixed a bug : 32-bit mysqld binaries built on HP-UX-11 did not work with
InnoDBfiles greater than 2 GB in size. (Bug#6189) -
InnoDB: Return a sensible error code from
DISCARD TABLESPACEif it fails because the table is referenced by aFOREIGN KEY. -
InnoDB: Fixed a bug :
InnoDBfailed to drop a table in the background drop queue if the table was referenced by aFOREIGN KEYconstraint. -
InnoDB: Fixed a bug : if we dropped a table where an
INSERTwas waiting for a lock to check aFOREIGN KEYconstraint, then an assertion would fail inlock_reset_all_on_table(). -
InnoDB: Fix a little bug: we looked at the physical size of a stored SQL
NULLvalue from a wrong field in the index; this has probably caused no bugs visible to the user. It caused only some extra space to be used in some rare cases. -
InnoDB: Use the
fcntl()file flush method on Mac OS X versions 10.3 and up. Apple had disabledfsync()in Mac OS X for internal disk drives, which caused corruption at power outages. -
mysqladmin password now checks whether the server has
--old-passwordsturned on or predates 4.1 and uses the old-format password if so. (Bug#7451) -
Added a
--default-character-setoption to mysqladmin to avoid problems when the default character set is notlatin1. (Bug#7524) -
Fix a problem with truncation of
FLOATvalues. (Bug#7361) -
Fixed a bug in
PROCEDURE ANALYSE(), which did not quote someENUMvalues properly. (Bug#2813) -
Fixed a bug that caused incorrect results for complex datetime expressions containing casts of datetime values to
TIMEorDATEvalues. (Bug#6914) -
Include compression library flags in the output from mysql_config --lib_r. (Bug#7021)
-
Corrected a problem with mysql_config not producing all relevant flags from
CFLAGS. (Bug#6964) -
Corrected a problem with mysqld_safe not properly capturing output from ps. (Bug#5878)
-
Fixed a bug that caused a linking failure when linking both the MySQL client library and IMAP library. (Bug#7428)
-
Fixed table corruption bug when using
INSERT DELAYEDwith prepared statements. -
Fixed a bug that caused microseconds to be gobbled from the string result of the
STR_TO_DATEfunction, if there is some other specifier in the format string following%f. (Bug#7458) -
Made the MySQL server accept executing
SHOW CREATE DATABASEeven if the connection has an open transaction or locked tables. Refusing it made mysqldump --single-transaction sometimes fail to print a completeCREATE DATABASEstatement for some dumped databases. (Bug#7358) -
Fixed that, when encountering a ``disk full'' or ``quota exceeded'' write error,
MyISAMsometimes didn't sleep and retry the write, thus resulting in a corrupted table. (Bug#7714) -
Fixed that
--expire-log-dayswas not honored if using only transactions. (Bug#7236) -
Fixed that a slave could crash after replicating many
ANALYZE TABLE,OPTIMIZE TABLE, orREPAIR TABLEstatements from the master. (Bug#6461, Bug#7658)
Fonctionnalités ajoutées ou modifiées :
Bogues corrigés :
Fonctionnalité ajoutée ou modifiée :
-
InnoDB: Made
LOCK TABLESbehave by default like it did before MySQL 4.0.20 or 4.1.2: noInnoDBlock will be taken. Added a startup option and settable system variableinnodb_table_locksfor makingLOCK TABLEacquire alsoInnoDBlocks. See Section 15.17, « Restrictions sur les tablesInnoDB». (Bug#3299, Bug#5998)
Bogues corrigés :
-
Fixed a bug with
FOUND_ROWS()used together withLIMITclause in prepared statements. (Bug#6088) -
Fixed a bug with
NATURAL JOINin prepared statements. (Bug#6046). -
Fixed a bug in join of tables from different databases having columns with identical names (prepared statements). (Bug#6050)
-
Now implicit access to system time zone description tables (which happens when you set
time_zonevariable or useCONVERT_TZ()function) does not require any privileges. (Bug#6116) -
Fixed a bug which caused server crash when deprecated
libmysqlclientfunctilonmysql_create_db()was called. (Bug#6081) -
Fixed
REVOKE ALL PRIVILEGES, GRANT OPTION FROMso that all privileges are revoked correctly. (Bug#5831). This corrects a case that the fix in 4.1.6 could miss.user -
Fixed a bug that could cause MyISAM index corruption when key values start with character codes below
BLANK. This was caused by the new key sort order in 4.1. (Bug#6151) -
Fixed a bug in the prepared statements protocol when wrong metadata was sent for
SELECTstatements not returning a result set (such asSELECT ... INTO OUTFILE). (Bug#6059) -
Fixed bug which allowed to circumvent missing UPDATE privilege if one had INSERT and SELECT privileges for table with primary key. (Bug#6173)
-
Fixed a bug in
libmysqlclientwith wrong conversion of negative time values to strings. (Bug#6049). -
Fixed a bug in
libmysqlclientwith wrong conversion of zero date values (0000-00-00) to strings. (Bug#6058) -
Fixed a bug that caused the server to crash on attempt to prepare a statement with
RAND(?). (Bug#5985) -
Fixed a bug with handling of
DATE,TIME, andDATETIMEcolumns in the binary protocol. The problem is compiler-specific and could have been observed on HP-UX, AIX, Solaris9, when compiling with native compiler. (Bug#6025) -
Fixed a bug with handling of
TINYINTcolumns in the binary protocol. The problem is specific to platforms where the C compiler has thechardata type unsigned by default. (Bug#6024) -
Fixed problem introduced in MySQL 4.0.21 where a connection starting a transaction, doing updates, then
FLUSH TABLES WITH READ LOCK, thenCOMMIT, would cause replication slaves to stop complaing about error 1223. Bug surfaced when using the InnoDBinnobackupscript. (Bug#5949)
Fonctionnalité ajoutée ou modifiée :
-
Added option
--sigint-ignoreto themysqlcommand line client to make it ignoreSIGINTsignals (typically the result of the user pressing Control-C). -
InnoDB: Added the startup option and settable global variable
innodb_max_purge_lagfor delayingINSERT,UPDATEandDELETEoperations when the purge operations are lagging. The default value of this parameter is zero, meaning that there are no delays. See Section 15.13, « Implémentation du multi-versionnage ». -
InnoDB: The
innodb_autoextend_incrementstartup option that was introduced in release 4.1.5 was made a settable global variable. (Bug#5736) -
InnoDB: If
DROP TABLEis invoked on an InnoDB table for which the.ibdfile is missing, print to error log that the table was removed from theInnoDBdata dictionary, and allow MySQL to delete the.frmfile. MaybeDROP TABLEshould issue a warning in this case. -
TIMESTAMPcolumns now can storeNULLvalues. To create such a column, you must explicitly specify theNULLattribute in the column specification. (Unlike all other column types,TIMESTAMPcolumns areNOT NULLby default.) -
Now if
ALTER TABLEconverts oneAUTO_INCREMENTcolumn to anotherAUTO_INCREMENTcolumn it preserves zero values (this includes the case that we don't change such column at all). -
Now if
ALTER TABLEconverts some column toTIMESTAMP NOT NULLcolumn it convertsNULLvalues to current timestamp value (One can still get old behavior by setting systemTIMESTAMPvariable to zero). -
On Windows, the MySQL configuration files included in the package now use
.iniinstead of.cnfas the file name suffix.
Bogues corrigés :
-
Fixed a bug that caused the server to crash on attempt to execute a prepared statement with a subselect inside a boolean expression. (Bug#5987)
-
Fixed a bug that caused the server to sometimes choose non-optimal execution plan for a prepared statement executed with changed placeholder values. (Bug#6042)
-
InnoDB: Make the check for excessive semaphore waits tolerate glitches in the system clock (do not crash the server if the system time is adjusted while InnoDB is under load.). (Bug#5898)
-
InnoDB: Fixed a bug in the InnoDB
FOREIGN KEYparser that preventedALTER TABLEof tables containing ‘#’ in their names. (Bug#5856) -
InnoDB: Fixed a bug that prevented
ALTER TABLEfrom working. (Bug#5851)tDISCARD TABLESPACE -
InnoDB:
SHOW CREATE TABLEnow obeys theSET SQL_MODE=ANSIandSET SQL_QUOTE_SHOW_CREATE=0settings. (Bug#5292) -
InnoDB: Fixed a bug that caused
CREATE TEMPORARY TABLE ... ENGINE=InnoDBto terminate mysqld when running ininnodb_file_per_tablemode. Per-table tablespaces for temporary tables from now on are created in the temporary directory of mysqld. (Bug#5137) -
InnoDB: Fixed some (not all) UTF-8 bugs in column prefix indexes. (Bug#5975)
-
InnoDB: If one updated a column so that its size changed, or updated it to an externally stored (
TEXTorBLOB) value, then ANOTHER externally stored column would show up as 512 bytes of good data + 20 bytes of garbage in a consistent read that fetched the old version of the row. (Bug#5960) -
InnoDB: Change error code to
HA_ERR_ROW_IS_REFERENCEDif we cannotDROPa parent table referenced by aFOREIGN KEYconstraint; this error number is less misleading than the previous numberHA_ERR_CANNOT_ADD_FOREIGN, but misleading still. (Bug#6202) -
Fixed
REVOKE ALL PRIVILEGES, GRANT OPTION FROMso that all privileges are revoked correctly. (Bug#5831)user -
Fixed a bug that caused the server to crash when character set conversion was implicitly used in prepared mode; for example, as in
'abc' LIKE CONVERT('abc' as utf8). (Bug#5688) -
The
mysql_change_user()C API function now frees all prepared statements associated with the connection. (Bug#5315) -
Fixed a bug when inserting
NULLinto anAUTO_INCREMENTcolumn failed, when using prepared statements. (Bug#5510) -
Fixed slave SQL thread so that the
SET COLLATION_SERVER...statements it replicates don't advance its position (so that if it gets interrupted before the actual update query, it later redoes theSET). (Bug#5705) -
Fixed that if the slave SQL thread found a syntax error in a query (which should be rare, as the master parsed it successfully), it stops. (Bug#5711)
-
Fixed that if a write to a
MyISAMtable fails because of a full disk or an exceeded disk quota, it prints a message to the error log every 10 minutes, and waits until disk space becomes available. (Bug#3248) -
Now MySQL does not prefer columns, which are mentioned in select list but are renamed, over columns from other tables participating in
FROMclause when it resolvesGROUP BYclause (e.g.SELECT t1.a AS c FROM t1, t2 ORDER BY aproduces an error if botht1andt2tables containacolumn). (Bug#4302) -
Behavior of
ALTER TABLEconverting column containingNULLvalues toAUTO_INCREMENTcolumn is no longer affected byNO_AUTO_VALUE_ON_ZEROmode. (Bug#5915).
Fonctionnalité ajoutée ou modifiée :
-
InnoDB: Added configuration optioninnodb_autoextend_incrementfor setting the size in megabytes by whichInnoDBtablespaces are extended when they become full. The default value is 8, corresponding to the fixed increment of 8MB in previous versions of MySQL.
Bogues corrigés :
-
Fixed a bug which caused the server to crash on attempt to execute a prepared statement with
BETWEEN ? AND ?and a datetime column. (Bug#5748) -
Fixed name resolving of external fields of subqueries if subquery placed in select list of query with grouping. (Bug#5326)
-
Fixed detection of using same table for updating and selecting in multi-update queries. (Bug#5455)
-
The values of the
max_sort_length,sql_mode, andgroup_concat_max_lensystem variables now are stored in the query cache with other query information to avoid returning an incorrect result from the query cache. (Bug#5394) (Bug#5515) -
Fixed syntax analyzer with
sql_mode=IGNORE_SPACE. It happened to take phrases likedefault .07asidentifier.identifier. (Bug#5318) -
Fixed illegal internal field length of user variables of integer type. This showed up when creating a table as
SELECT @. (Bug#4788)var_name -
Fixed a buffer overflow in prepared statements API (libmysqlclient) when a statement containing thousands of placeholders was executed. (Bug#5194)
-
Fixed a bug in the server when after reaching a certain limit of prepared statements per connection (97), statement ids began to overlap, so occasionally wrong statements were chosen for execution. (Bug#5399)
-
Fixed a bug in prepared statements when
LIKEused with arguments in different character sets crashed server on first execute. (Bug#4368) -
Fixed a bug in prepared statements when providing '0000-00-00' date to a parameter lead to server crash. (Bug#4231, Bug#4562)
-
Fixed a bug in
OPTIMIZE TABLEthat could cause table corruption onFULLTEXTindexes. (Bug#5327) -
InnoDB: Fixed a bug that InnoDB only allowed a maximum of 1000 connections inside InnoDB at the same time. A higher number could cause an assertion failure in sync0arr.c, line 384. Now we allow 1000, 10000, or 50000, depending on the buffer pool size. (Bug#5414)
Note: To fix a compile problem on systems that do not have automake 1.7 installed, an updated 4.1.4a source tarball has been published. In addition to resolving this automake dependency (Bug#5319), it also fixes some reported libedit compile errors when using a non-gcc compiler (Bug#5353).
Fonctionnalité ajoutée ou modifiée :
-
Made internal representation of
TIMESTAMPvalues inInnoDBin 4.1 to be the same as in 4.0. This difference resulted in incorrect datetime values inTIMESTAMPcolumns inInnoDBtables after an upgrade from 4.0 to 4.1. (Bug#4492) Warning: extra steps during upgrade required! Unfortunately this means that if you are upgrading from 4.1.x, where x <= 3, to 4.1.4 you should use mysqldump for saving and then restoring yourInnoDBtables withTIMESTAMPcolumns. -
The mysqld-opt Windows server was renamed to mysqld. This completes the Windows server renaming begun in MySQL 4.1.2. See Section 2.2.8.1, « Choisir un serveur MySQL sur Windows ».
-
Added Latin language collations for the
ucs2andutf8Unicode character sets. These are calleducs2_roman_ciandutf8_roman_ci. -
Corrected the name of the Mac OS X StartupItem script (it must match the name of the subdirectory, which was renamed to
MySQLCOMin MySQL 4.1.2). Thanks to Bryan McCormack for reporting this. -
Added
--start-datetime,--stop-datetime,--start-position, and--stop-positionoptions tomysqlbinlog. These make point-in-time recovery easier. -
Killing a
CHECK TABLEstatement does not result in the table being marked as ``corrupted'' any more; the table remains as ifCHECK TABLEhad not even started. See Section 13.5.4.3, « Syntaxe deKILL». -
Made the MySQL server ignore
SIGHUPandSIGQUITon Mac OS X 10.3. This is needed because under this OS, the MySQL server receives lots of these signals (reported as Bug#2030).
Bogues corrigés :
-
Fixed a bug that caused libmysql to crash when attempting to fetch a value of
MEDIUMINTcolumn. (Bug#5126) -
Fixed a bug that caused the MySQL server to crash when attempting to execute a prepared statement with
SELECT ... INTO @varfor a second time. (Bug#5034) -
Fixed execution of optimized
INsubqueries that use compound indexes. (Bug#4435) -
Prohibited resolving of table fields in inner queries if fields do not take part in grouping for queries with grouping (inside aggregate function arguments, all table fields are still allowed). (Bug#4814)
-
Fixed a crash after
SLAVE STOPif the IO thread was in a special state. (Bug#4629) -
Fixed an old bug in concurrent accesses to
MERGEtables (even oneMERGEtable andMyISAMtables), that could have resulted in a crash or hang of the server. (Bug#2408) -
Fixed a bug that caused server crash on attempt to execute for a second time a prepared statement with
NOTinWHEREorONclauses. (Bug#4912) -
MATCH ... AGAINSTnow works in a subquery. (Bug#4769) -
Fixed a bug that omitted the
.errextension of the error log file (--log-error) when the hostname contained a domain name. The domain name is now replaced by the extension. (Bug#4997) -
Fixed a crash in myisamchk. (Bug#4901)
-
Fixed a bug which caused server crash if one used the
CONVERT_TZ()function with time zone described in database as parameter and this time zone was not used before. (Bug#4508) -
Support for
%T, %r, %V, %vand%X, %xformat specifiers was added toSTR_TO_DATE()function. (Bug#4756) -
Fixed a bug (hang) in
NATURAL JOINwhere joined table had no common column. (Bug#4807) -
Fixed a crash caused by
UNHEX(NULL). (Bug#4441) -
mysql_fix_privilege_tables didn't correctly handle the argument of its
--password=#option. (Bug#4240, Bug#4543) -
Fixed that mysqlbinlog --read-from-remote-server sometimes couldn't accept 2 binary logs on command line. (Bug#4507)
-
Fixed that mysqlbinlog --position --read-from-remote-server had wrong
# atlines. (Bug#4506) -
If
CREATE TEMPORARY TABLE t SELECTfailed while loading the data, the temporary table was not dropped. (Bug#4551) -
Fixed that when a multiple-table
DROP TABLEfailed to drop a table on the master server, the error code was not written to the binary log. (Bug#4553) -
When the slave SQL thread was replicating a
LOAD DATA INFILEstatement, it didn't show the statement in the output ofSHOW PROCESSLIST. (Bug#4326) -
Fixed an assertion failure when reading the grant tables (Bug#4407)
-
Fixed that
CREATE TABLE ... TYPE=HEAP ... AS SELECT...caused replication slave to stop. (Bug#4971) -
Fixed that
mysql_options(...,MYSQL_OPT_LOCAL_INFILE,...)failed to disableLOAD DATA LOCAL INFILE. (Bug#5038) -
Fixed that
disable-local-infileoption had no effect if client read it from a configuration file usingmysql_options(...,MYSQL_READ_DEFAULT,...). (Bug#5073) -
Fixed that
SET GLOBAL SYNC_BINLOGdid not work on some platforms (Mac OS X). (Bug#5064) -
Fixed that mysql-test-run failed on the
rpl_trunc_binlogtest if running test from the installed (the target of 'make install') directory. (Bug#5050) -
Fixed that mysql-test-run failed on the
grant_cachetest when run as Unix user 'root'. (Bug#4678) -
Fixed an unlikely deadlock which could happen when using
KILL. (Bug#4810) -
Fixed a crash when one connection got
KILLed while it was doingSTART SLAVE. (Bug#4827) -
Made
FLUSH TABLES WITH READ LOCKblockCOMMITif server is running with binary logging; this ensures that the binary log position is trustable when doing a full backup of tables and the binary log. (Bug#4953) -
Fixed that the counter of an
auto_incrementcolumn was not reset byTRUNCATE TABLEif the table was a temporary table. (Bug#5033) -
Fixed bug which caused error to be reported when column from
ORDER BYclause was present in two tables participating inSELECTeven if the second instance of column in select list was renamed. (Bug#4302)
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
Fixed a crash of
mysqldthat was started with binary logging disabled, but with non-zeroexpire_logs_daysvariable. (Bug#3807)
Fonctionnalité ajoutée ou modifiée :
-
Added explanation of hidden
SELECTofUNIONin output ofEXPLAIN SELECTstatement. -
mysqlcommand-line client now supports multiple-eoptions. (Bug#591) -
New
myisam_data_pointer_sizesystem variable. See Section 5.2.3, « Variables serveur système ». -
The
--log-warningsserver option now is enabled by default. Disable with--skip-log-warnings. -
The
--defaults-file=file_nameoption now requires that the filename must exist (safety fix). (Bug#3413) -
mysqld_multinow creates the log in datadir (from[mysqld]section inmy.cnfor compiled in), not in/tmp- vulnerability id CVE-2004-0388. Thanks to Christian Hammers from Debian Security Team for reporting this! -
Warning: Incompatible change! String comparison now works according to the SQL standard. Because we have that
'a' = 'a 'then from it must follow that'a' > 'a\t'. (The latter was not the case before 4.1.2.) To implement it, we had to change how storage engines compare strings internally. As a side effect, if you have a table where aCHARorVARCHARcolumn in some row has a value with the last character less thanASCII(32), you will have to repair this table.CHECK TABLESwill tell you if this problem exists. (Bug#3152) -
Added support for
DEFAULT CURRENT_TIMESTAMPand forON UPDATE CURRENT_TIMESTAMPspecifications forTIMESTAMPcolumns. Now you can explicitly say that aTIMESTAMPcolumn should be set automatically to the current timestamp forINSERTand/orUPDATEstatements, or even prevent the column from updating automatically. Only one column with such an auto-set feature per table is supported.TIMESTAMPcolumns created with earlier versions of MySQL behave as before. Behavior ofTIMESTAMPcolumns that were created without explicit specification of default/on as earlier depends on its position in table: If it is the firstTIMESTAMPcolumn, it will be treated as having been specified asTIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP. In other cases, it would be treated as aTIMESTAMP DEFAULT 0column.NOWis supported as an alias forCURRENT_TIMESTAMP. Warning: Incompatible change! Unlike in previous versions, explicit specification of default values forTIMESTAMPcolumn is never ignored and turns off the auto-set feature (unless you haveCURRENT_TIMESTAMPas the default). -
Warning: Incompatible change! Renamed prepared statements C API functions:
Old Name New Name mysql_bind_param()mysql_stmt_bind_param()mysql_bind_result()mysql_stmt_bind_result()mysql_prepare()mysql_stmt_prepare()mysql_execute()mysql_stmt_execute()mysql_fetch()mysql_stmt_fetch()mysql_fetch_column()mysql_stmt_fetch_column()mysql_param_count()mysql_stmt_param_count()mysql_param_result()mysql_stmt_param_metadata()mysql_get_metadata()mysql_stmt_result_metadata()mysql_send_long_data()mysql_stmt_send_long_data()Now all functions that operate with a
MYSQL_STMTstructure begin with the prefixmysql_stmt_. -
Warning: Incompatible change! The signature of the
mysql_stmt_prepare()function was changed toint mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, unsigned long length). To create aMYSQL_STMThandle, you should use themysql_stmt_init()function. -
SHOW GRANTSwith noFORclause or withFOR CURRENT_USER()shows the privileges for the current session. -
The improved character set support introduced in MySQL 4.1.0 for the
MyISAMandHEAPstorage engines is now available forInnoDBas well. -
A name of ``Primary'' no longer can be specified as an index name. (That name is reserved for the
PRIMARY KEYif the table has one.) (Bug#856) -
MySQL now issues a warning when a
SETorENUMcolumn with duplicate values in the list is created. (Bug#1427) -
Now
SQL_SELECT_LIMITvariable has no influence on subqueries. (Bug#2600) -
UNHEX()function implemented. See Section 12.3, « Fonctions de chaînes de caractères ». -
History in command line client does not store multiple copies of identical queries that are run consecutively.
-
Multi-line queries in the command line client now are stored as a single line.
-
UUID()function implemented. Note that it does not work with replication yet. See Section 12.8.4, « Fonctions diverses ». -
Prepared statements with all types of subqueries fixed.
-
MySQL now supports up to 64 keys per table.
-
MyISAMtables now support keys up to 1000 bytes long. -
MyISAMandInnoDBtables now support index prefix lengths up to 1000 bytes long. -
If you try to create a key with a key part that is too long, and it is safe to auto-truncate it to a smaller length, MySQL now does so. A warning is generated, rather than an error.
-
The
ft_boolean_syntaxvariable now can be changed while the server is running. See Section 5.2.3, « Variables serveur système ». -
REVOKE ALL PRIVILEGES, GRANT FROM user_listis changed to a more consistentREVOKE ALL PRIVILEGES, GRANT OPTION FROM user_list. (Bug#2642) -
Internal string-to-number conversion now supports only SQL:2003 compatible syntax for numbers. In particular,
'0x10'+0will not work anymore. (Actually, it worked only on some systems before, such as Linux. It did not work on others, such as FreeBSD or Solaris. Making these queries OS-independent was the goal of this change). UseCONV()to convert hexadecimal numbers to decimal. E.g.CONV(MID('0x10',3),16,10)+0. -
mysqlhotcopynow works on NetWare. -
ALTER TABLE DROP PRIMARY KEYno longer drops the firstUNIQUEindex if there is no primary index. (Bug#2361) -
Added
latin1_spanish_ci(Modern Spanish) collation for thelatin1character set. -
Added the
ENGINEtable option as a synonym for theTYPEoption forCREATE TABLEandALTER TABLE. -
Added the
--default-storage-engineserver option as a synonym for--default-table-type. -
Added the
storage_enginesystem variable as a synonym fortable_type. -
Added
init_connectandinit_slaveserver variables. The values should be SQL statements to be executed when each client connects or each time a slave's SQL thread starts, respectively. -
C API enhancement:
SERVER_QUERY_NO_INDEX_USEDandSERVER_QUERY_NO_GOOD_INDEX_USEDflags are now set in theserver_statusfield of theMYSQLstructure. It is these flags that make the query to be logged as slow ifmysqldwas started with--log-slow-queries --log-queries-not-using-indexes. -
For replication of
MEMORY(HEAP) tables: Made the master automatically write aDELETE FROMstatement to its binary log when aMEMORYtable is opened for the first time since master's startup. This is for the case where the slave has replicated a non-emptyMEMORYtable, then the master is shut down and restarted: the table is now empty on master; theDELETE FROMempties it on slave too. Note that even with this fix, between the master's restart and the first use of the table on master, the slave still has out-of-date data in the table. But if you use theinit-fileoption to populate theMEMORYtable on the master at startup, it ensures that the failing time interval is zero. (Bug#2477) -
When a session having open temporary tables terminates, the statement automatically written to the binary log is now
DROP TEMPORARY TABLE IF EXISTSinstead ofDROP TEMPORARY TABLE, for more robustness. -
The MySQL server now returns an error if
SET SQL_LOG_BINorSET SQL_LOG_UPDATEis issued by a user without theSUPERprivilege (in previous versions it just silently ignored the statement in this case). -
Changed that when the MySQL server has binary logging disabled (that is, no
log-binoption was used) then no transaction binlog cache is allocated for connections (this should savebinlog_cache_sizebytes of memory (32 kilobytes by default) for every connection). -
Added
Binlog_cache_useandBinlog_cache_disk_usestatus variables that count the number of transactions that used transaction binary log and that had to flush this temporary binary log to disk instead of using only buffer in memory. They can be used for tuning thebinlog_cache_sizesystem variable. -
Added option
--replicate-same-server-id. -
The Mac OS X Startup Item has been moved from the directory
/Library/StartupItems/MySQLto/Library/StartupItems/MySQLCOMto avoid a file name collision with the MySQL Startup Item installed with Mac OS X Server. See Section 2.8.2, « Notes relatives à Mac OS X ».
Bogues corrigés :
-
Fixed check of
EXPLAINofUNION. (Bug#3639) -
Fixed a bug in a query that used
DISTINCTandORDER BYby column's real name, while the column had an alias, specified inSELECTclause. (Bug#3681) -
Fixed crash of
group_concaton expression withORDER BYand externalORDER BYin a query. (Bug#3752) -
Fixed a bug in
ALL/SOMEsubqueries in case of optimisation (key field present in subquery). (Bug#3646) -
Fixed a bug in
SHOW GRANTSandEXPLAIN SELECTcharacter set conversion. (Bug#3403) -
Prepare statements parameter do not cause error message as fields used in select list but not included in
ORDER BYlist. -
UNIONstatements did not consultSQL_SELECT_LIMITvalue when set. This is now fixed properly, which means that this limit is applied to the top level query, unlessLIMITfor entireUNIONis used. -
Fixed a bug in multiple-table
UPDATEstatements that resulted in an error when one of the tables was not updated but was used in the nested query, contained therein. -
Fixed
mysql_stmt_send_long_data()behavior on second execution of prepared statement and in case when long data had zero length. (Bug#1664) -
Fixed crash on second execution of prepared statement with
UNION. (Bug#3577) -
Fixed incorrect results of aggregate functions in subquery with empty result set. (Bug#3505)
-
You can now call
mysql_stmt_attr_set(..., STMT_ATTR_UPDATE_MAX_LENGTH)to tell the client library to updateMYSQL_FIELD->max_lengthwhen doingmysql_stmt_store_result(). (Bug#1647). -
Added support for unsigned integer types to prepared statement API (Bug#3035).
-
Fixed crash in prepared statements when subquery in the
FROMclause with parameter used. (Bug#3020) -
Fixed unknown error when negative value bind to unsigned. (Bug#3223)
-
Fixed aggregate function in prepared statements. (Bug#3360)
-
Incorrect error message when wrong table used in multiple-table
DELETEstatement in prepared statements. (Bug#3411) -
Requiring
UPDATEprivilege for tables which will not be updated in multiple-tableUPDATEstatement in prepared statements. -
Fixed prepared statement support for
INSERT,REPLACE,CREATE,DELETE,SELECT,DO,SETandSHOW. All other commands are prohibited via prepared statement interface. (Bug#3398, Bug#3406, Bug#2811) -
Fixed a lot of bugs in
GROUP_CONCAT(). (Bug#2695, Bug#3381, Bug#3319) -
Added optimization that allows for prepared statements using a large number of tables or tables with a large number of columns to be re-executed significantly faster. (Bug#2050)
-
Fixed bug that caused execution of prepared statements to fail then table that this statement were using left table cache. This bug showed up as if this prepared statement used random garbage as column names or as server crashes. (Bug#3307)
-
Fixed a problem resulting from setting the
character_set_resultsvariable toNULL. (Bug#3296) -
Fixed query cache statistics.
-
Fixed bug in
ANALYZE TABLEon aBDBtable inside a transaction that hangs server thread. (Bug#2342) -
Fixed a symlink vulnerability in
mysqlbugscript. (Bug#3284) -
Fixed a bug in parallel repair (
myisamchk -p,myisam_repair_threads); sometimes the repair process failed to repair a table. (Bug#1334) -
A query that uses both
UNION [DISTINCT]andUNION ALLnow works correctly. (Bug#1428) -
Table default character set affects
LONGBLOBcolumns. (Bug#2821) -
CONCAT_WS()makes the server die in case of illegal mix of collations. (Bug#3087) -
UTF8 charset breaks joins with mixed column/string constant. (Bug#2959)
-
Fixed
DROP DATABASEto report number of tables deleted. -
Fixed memory leak in the client library when statement handle was freed on closed connection (call to
mysql_stmt_closeaftermysql_close). (Bug#3073) -
Fixed server segfaults when processing malformed prepared statements commands. (Bug#2795, Bug#2274)
-
Fixed using subqueries with
ORandANDfunctions. (Bug#2838) -
Fixed comparison of tables/database names with
--lower_case_table_namesoption. (Bug#2880) -
Removed try to check
NULLif index built on column whereNULLis impossible inINsubquery optimization. (Bug#2393) -
Fixed incorrect parsing of subqueries in the
FROMclause. (Bug#2421) -
Fixed processing of
RAND()in subqueries with static tables. (Bug#2645) -
Fixed bug with quoting of table names in
mysqldumpfor various values ofsql_modeof server. (Bug#2591) -
Fixed bug with storing values that are out of range for
DOUBLEandFLOATcolumns. (Bug#2082) -
Fixed bug with compiling
--with-pstackwith binutils 2.13.90. (Bug#1661) -
Fixed a bug in the
GRANTsystem. When a password was assigned to an account at the global level and then privileges were granted at the database level (without specifying any password), the existing password was replaced temporarily in memory until the nextFLUSH PRIVILEGESoperation or the server was restarted. (Bug#2953) -
Fixed a bug in full-text search on multi-byte character set (such as UTF8) that appeared when a search word was shorter than a matching word from the index (for example, searching for ``Uppsala'' when table data contain ``Uppsa*la''). (Bug#3011)
-
Fixed a bug that made
Max_used_connectionsto be less than the actual maximum number of connections in use simultaneously. -
Fixed calculation of
Index_lengthinHEAPtable status forBTREEindexes. (Bug#2719) -
Fixed
mysql_stmt_affected_rows()call to always return number of rows affected by given statement. (Bug#2247) -
Fixed crash in
MATCH ... AGAINST()on a phrase search operator with a missing closing double quote. (Bug#2708) -
Fixed output of
mysqldump --tab. (Bug#2705) -
Fix for a bug in
UNIONoperations that prevented proper handling ofNULLcolumns. This happened only if a column in the firstSELECTnode wasNOT NULL. (Bug#2508) -
Fix for a bug in
UNIONoperations withInnoDBstorage engine, when some columns from one table where used in oneSELECTstatement and some were used in anotherSELECTstatement. (Bug#2552) -
Fixed a few years old bug in the range optimizer that caused a segmentation fault on some very rare queries. (Bug#2698)
-
Fixed bug with
SHOW CREATE TABLE ...which didn't properly double quotes. (Bug#2593) -
Queries with subqueries in
FROMclause locks all tables at once for now. This also fixed bugs inEXPLAINof subqueries inFROMoutput. (Bug#2120) -
Fixed bug with
mysqldumpnot quoting ``tricky'' names correctly. (Bug#2592) -
Fix for a bug that prevented table / column privileges from being loaded on startup. (Bug#2546)
-
Fixed bug in replication with
CREATE TABLE ... LIKE ...that resulted in a statement not being written to the binary log. (Bug#2557) -
Fixed memory leak in
INSERT ... ON DUPLICATE KEY UPDATE .... (Bug#2438) -
Fixed bug in the parser, making the syntax
CONVERT(expr,type)legal again. -
Fixed parsing of short-form IP addresses in
INET_ATON(). (Bug#2310) -
Fixed a bug in
CREATE ... SELECTthat sometimes caused a string column with a multi-byte character set (such asutf8) to have insufficient length to hold the data. -
Fixed a rare table corruption on adding data (
INSERT,REPLACE,UPDATE, etc. but notDELETE) to aFULLTEXTindex. (Bug#2417) -
Compile the
MySQL-clientRPM package againstlibreadlineinstead oflibedit. (Bug#2289) -
Fix for a crashing bug that was caused by not setting
vio_timeout()virtual function for all protocols. This bug occurred on Windows. (Bug#2025) -
Fix for a bug that caused
mysqlclient program to erroneously cache the value of the current database. (Bug#2025) -
Fix for a bug that caused client/server communication to be broken when
mysql_set_server_option()ormysql_get_server_option()were invoked. (Bug#2207) -
Fix for a bug that caused wong results when
CAST()was applied onNULLto signed or unsigned integer column. (Bug#2219) -
Fix for a crashing bug that occurred in the
mysqlclient program when database name was longer then expected. (Bug#2221) -
Fixed a bug in
CHECK TABLEthat sometimes resulted in a spurious errorFound key at page ... that points to record outside datafilefor a table with aFULLTEXTindex. (Bug#2190) -
Fixed bug in
GRANTwith table-level privilege handling. (Bug#2178) -
Fixed bug in
ORDER BYon a small column. (Bug#2147) -
Fixed a bug with the
INTERVAL()function when 8 or more comparison arguments are provided. (Bug#1561) -
Packaging: Fixed a bug in the Mac OS PKG
postinstallscript (mysql_install_dbwas called with an obsolete argument). -
Packaging: Added missing file
mysql_create_system_tablesto the server RPM package. This bug was fixed for the 4.1.1 RPMs by updating the MySQL-server RPM fromMySQL-server-4.1.1-0toMySQL-server-4.1.1-1. The other RPMs were not affected by this change. -
Fixed a bug in
myisamchkandCHECK TABLEthat sometimes resulted in a spurious errorFound key at page ... that points to record outside datafilefor a table with aFULLTEXTindex. (Bug#1977) -
Fixed a hang in full-text indexing of strings in multi-byte (all besides
utf8) charsets. (Bug#2065) -
Fixed a crash in full-text indexing of UTF8 data. (Bug#2033)
-
Replication: a rare race condition in the slave SQL thread that could lead to an incorrect complaint that the relay log is corrupted. (Bug#2011)
-
Replication: If a client connects to a slave server and issues an administrative statement for a table (for example,
OPTIMIZE TABLEorREPAIR TABLE), this could sometimes stop the slave SQL thread. This does not lead to any corruption, but you must useSTART SLAVEto get replication going again. (Bug#1858) -
Replication: in the slave SQL thread, a multiple-table
UPDATEcould produce an incorrect complaint that some record was not found in one table, if theUPDATEwas preceded by aINSERT ... SELECT. (Bug#1701) -
Replication: sometimes the master gets a non-fatal error during the execution of a statement but finally the statements succeeds (for example, a write to a
MyISAMtable first receives "no space left on device" but is able to finally complete, see Section A.4.3, « Comment MySQL gère un disque plein »); the bug was that the master forgot to reset the error code to 0 after success, so the error code got into its binary log, thus making the slave giving false alarms like "did not get the same error as on master". (Bug#2083) -
Removed a misleading "check permissions on master.info" from a replication error message, because the cause of the problem could be different from permissions. (Bug#2121)
-
Fixed a crash when the replication slave was unable to create the first relay log. (Bug#2145)
-
ALTER DATABASEcaused the client to hang if the database did not exist. (Bug#2333) -
Multiple-table
DELETEstatements were never replicated by the slave if there were anyreplicate-*-tableoptions. (Bug#2527) -
Fixed bug in
ALTER TABLE RENAME, when rename to the table with the same name in another database silently dropped destination table if it existed. (Bug#2628) -
The MySQL server did not report any error if the query (submitted through
mysql_real_query()ormysql_prepare()) was terminated by garbage characters (which can happen if you pass a wronglengthparameter tomysql_real_query()ormysql_prepare()); the result was that the garbage characters were written into the binary log. (Bug#2703) -
Fixed bug in client library which caused
mysql_fetchandmysql_stmt_store_result()to hang if they were called without prior call ofmysql_execute(). Now they give an error instead. (Bug#2248) -
Made clearer the error message which one gets when an update is refused because of the
read-onlyoption. (Bug#2757) -
Fixed that
replicate-wild-*-tablerules apply toALTER DATABASEwhen the table pattern is '%', like it is already the case forCREATE DATABASEandDROP DATABASE. (Bug#3000) -
Fixed that when a
Rotateevent is found by the slave SQL thread in the middle of a transaction, the value ofRelay_Log_PosinSHOW SLAVE STATUSremains correct. (Bug#3017) -
Corrected the master's binary log position that
InnoDBreports when it is doing a crash recovery on a slave server. (Bug#3015) -
Changed the column
Seconds_Behind_MasterinSHOW SLAVE STATUSto never show a value of -1. (Bug#2826) -
Changed that when a
DROP TEMPORARY TABLEstatement is automatically written to the binary log when a session ends, the statement is recorded with an error code of value zero (this ensures that killing aSELECTon the master does not result in a superfluous error on the slave). (Bug#3063) -
Changed that when a thread handling
INSERT DELAYED(also known as adelayed_insertthread) is killed, its statements are recorded with an error code of value zero (killing such a thread does not endanger replication, so we thus avoid a superfluous error on the slave). (Bug#3081) -
Fixed deadlock when two
START SLAVEcommands were run at the same time. (Bug#2921) -
Fixed that a statement never triggers a superfluous error on the slave, if it must be excluded given the
replicate-*options. The bug was that if the statement had been killed on the master, the slave would stop. (Bug#2983) -
The
--local-loadoption ofmysqlbinlognow requires an argument. -
Fixed a segmentation fault when running
LOAD DATA FROM MASTERafterRESET SLAVE. (Bug#2922) -
mysqlbinlog --read-from-remote-serverread all binary logs following the one that was requested. It now stops at the end of the requested file, the same was it does when reading a local binary log. (Bug#3204) -
Fixed
mysqlbinlog --read-from-remote-serverto print the exact positions of events in the "at #" lines. (Bug#3214) -
Fixed a rare error condition that caused the slave SQL thread spuriously to print the message
Binlog has bad magic numberand stop when it was not necessary to do so. (Bug#3401) -
Fixed the
Exec_master_log_poscolumn and its disk image in therelay-log.infofile to be correct if the master had version 3.23. (The value was too big by six bytes.) This bug does not exist in MySQL 5.0. (Bug#3400) -
Fixed
mysqlbinlognot to forget to print aUSEstatement under rare circumstances where the binary log contained aLOAD DATA INFILEstatement. (Bug#3415) -
Fixed a memory corruption when replicating a
LOAD DATA INFILEwhen the master had version 3.23. Some smaller problems remain in this setup, See Section 6.7, « Fonctionnalités de la réplication et problèmes connus ». (Bug#3422) -
Multiple-table
DELETEstatements were always replicated by the slave if there were somereplicate-*-ignore-tableoptions and noreplicate-*-do-tableoptions. (Bug#3461) -
Fixed a crash of the MySQL slave server when it was built with
--with-debugand replicating itself. (Bug#3568) -
Fixed that in some replication error messages, a very long query caused the rest of the message to be invisible (truncated), by putting the query last in the message. (Bug#3357)
This release includes all fixes in MySQL 4.0.16 and most of the fixes in MySQL 4.0.17.
Fonctionnalité ajoutée ou modifiée :
-
New
CHECKSUM TABLEstatement for reporting table checksum values. -
Added
character_set_client,character_set_connection,character_set_database,character_set_results,character_set_server,character_set_system,collation_connection,collation_database, andcollation_serversystem variables to provide information about character sets and collations. -
It is now possible to create multiple key caches, assign table indexes to particular caches, and to preload indexes into caches. See Section 13.5.4.1, « Syntaxe de
CACHE INDEX». See Section 13.5.4.4, « Syntaxe deLOAD INDEX INTO CACHE». Structured system variables are introduced as a means of grouping related key cache parameters. See Section 9.4.1, « Variables système structurées ». -
New
COERCIBILITY()function to return the collation coercibility of a string. -
The
--quote-namesoption formysqldumpnow is enabled by default. -
mysqldumpnow includes a statement in the dump output to setFOREIGN_KEY_CHECKSto 0 to avoid problems with tables having to be reloaded in a particular order when the dump is reloaded. The existingFOREIGN_KEY_CHECKSvalue is saved and restored. -
Important note: If you upgrade to
InnoDB-4.1.1 or higher, you cannot downgrade to a version lower than 4.1.1 any more! That is because earlier versions ofInnoDBare not aware of multiple tablespaces. -
One can revoke all privileges from a user with
REVOKE ALL PRIVILEGES, GRANT FROM user_list. -
Added
IGNOREoption forDELETEstatement. -
The MySQL source distribution now also includes the MySQL Internals Manual
internals.texi. -
Added
mysql_set_server_option()C API client function to allow multiple statement handling in the server to be enabled or disabled. -
The
mysql_next_result()C API function now returns-1if there are no more result sets. -
Renamed
CLIENT_MULTI_QUERIESconnect option flag toCLIENT_MULTI_STATEMENTS. To allow for a transition period, the old option will continue to be recognized for a while. -
Require
DEFAULTbefore table and database default character set. This enables us to useALTER TABLE tbl_name ... CHARACTER SET=...to change the character set for allCHAR,VARCHAR, andTEXTcolumns in a table. -
Added
MATCH ... AGAINST( ... WITH QUERY EXPANSION)and theft_query_expansion_limitserver variable. -
Removed unused
ft_max_word_len_for_sortsystem variable. -
Removed unused
ft_max_word_len_for_sortvariable frommyisamchk. -
Full-text search now supports multi-byte character sets and the Unicode
utf8character set. (The Unicodeucs2character set is not yet supported.) -
Phrase search in
MATCH ... AGAINST ( ... IN BOOLEAN MODE)no longer matches partial words. -
Added aggregate function
BIT_XOR()for bitwise XOR operations. -
Replication over SSL now works.
-
The
START SLAVEstatement now supports anUNTILclause for specifying that the slave SQL thread should be started but run only until it reaches a given position in the master's binary logs or in the slave's relay logs. -
Produce warnings even for single-row
INSERTstatements, not just for multiple-rowINSERTstatements. Previously, it was necessary to setSQL_WARNINGS=1to generate warnings for single-row statements. -
Added
delimiter(\d) command to themysqlcommand-line client for changing the statement delimiter (terminator). The default delimiter is semicolon. -
CHAR,VARCHAR, andTEXTcolumns now have lengths measured in characters rather than in bytes. The character size depends on the column's character set. This means, for example, that aCHAR(n)column for a multi-byte character set will take more storage than before. Similarly, index values on such columns are measured in characters, not bytes. -
LIMITno longer accepts negative arguments (they used to be treated as very big positive numbers before). -
The
DATABASE()function now returnsNULLrather than the empty string if there is no database selected. -
Added
--sql-mode=NO_AUTO_VALUE_ON_ZEROoption to suppress the usual behavior of generating the next sequence number when zero is stored in anAUTO_INCREMENTcolumn. With this mode enabled, zero is stored as zero; only storingNULLgenerates a sequence number. -
Warning: Incompatible change! Client authentication now is based on 41-byte passwords in the
usertable, not 45-byte passwords as in 4.1.0. Any 45-byte passwords created for 4.1.0 must be reset after running themysql_fix_privilege_tablesscript. -
Added
secure_authglobal server system variable and--secure-authserver option that disallow authentication for accounts that have old (pre-4.1.1) passwords. -
Added
--secure-authoption tomysqlcommand-line client. If this option is set, the client refuses to send passwords in old (pre-4.1.1) format. -
Warning: Incompatible change! Renamed the C API
mysql_prepare_result()function tomysql_get_metadata()as the old name was confusing. -
Added
DROP USER 'user_name'@'host_name'statement to drop an account that has no privileges. -
The interface to aggregated
UDFfunctions has changed a bit. You must now declare axxx_clear()function for each aggregate functionXXX(). -
Added new
ADDTIME(),DATE(),DATEDIFF(),LAST_DAY(),MAKEDATE(),MAKETIME(),MICROSECOND(),SUBTIME(),TIME(),TIMEDIFF(),TIMESTAMP(),UTC_DATE(),UTC_TIME(),UTC_TIMESTAMP(), andWEEKOFYEAR()functions. -
Added new syntax for
ADDDATE()andSUBDATE(). The second argument now may be a number representing the number of days to be added to or subtracted from the first date argument. -
Added new
typevaluesDAY_MICROSECOND,HOUR_MICROSECOND,MINUTE_MICROSECOND,SECOND_MICROSECOND, andMICROSECONDforDATE_ADD(),DATE_SUB(), andEXTRACT(). -
Added new
%fmicroseconds format specifier forDATE_FORMAT()andTIME_FORMAT(). -
All queries in which at least one
SELECTdoes not use indexes properly now are written to the slow query log when long log format is used. -
It is now possible to create a
MERGEtable fromMyISAMtables in different databases. Formerly, all theMyISAMtables had to be in the same database, and theMERGEtable had to be created in that database as well. -
Added new
COMPRESS(),UNCOMPRESS(), andUNCOMPRESSED_LENGTH()functions. -
When using
SET sql_mode='mode'for a complex mode (likeANSI), we now update thesql_modevariable to include all the individual options implied by the complex mode. -
Added the OLAP (On-Line Analytical Processing) function
ROLLUP, which provides summary rows for eachGROUP BYlevel. -
Added
SQLSTATEcodes for all server errors. -
Added
mysql_sqlstate()andmysql_stmt_sqlstate()C API client functions that return theSQLSTATEerror code for the last error. -
TIMEcolumns with hour values greater than 24 were returned incorrectly to the client. -
ANALYZE TABLE,OPTIMIZE TABLE,REPAIR TABLE, andFLUSHstatements are now stored in the binary log and thus replicated to slaves. This logging does not occur if the optionalNO_WRITE_TO_BINLOGkeyword (or its aliasLOCAL) is given. Exceptions are thatFLUSH LOGS,FLUSH MASTER,FLUSH SLAVE, andFLUSH TABLES WITH READ LOCKare not logged in any case. For a syntax example, see Section 13.5.4.2, « Syntaxe deFLUSH». -
New global system variable
relay_log_purgeto enable or disable automatic relay log purging. -
LOAD DATAnow produces warnings that can be fetched withSHOW WARNINGS. -
Added support for syntax
CREATE TABLE table2 (LIKE table1)that creates an empty tabletable2with a definition that is exactly the same astable1, including any indexes. -
CREATE TABLE tbl_name (...) TYPE=storage_enginenow generates a warning if the named storage engine is not available. The table is still created as aMyISAMtable, as before. -
Most subqueries are now much faster than before.
-
Added
PURGE BINARY LOGSas an alias forPURGE MASTER LOGS. -
Disabled the
PURGE LOGSstatement that was added in version 4.1.0. The statement now should be issued asPURGE MASTER LOGSorPURGE BINARY LOGS. -
Added
SHOW BDB LOGSas an alias forSHOW LOGS. -
Added
SHOW MASTER LOGS(which had been deleted in version 4.1.0) as an alias forSHOW BINARY LOGS. -
Added
Slave_IO_StateandSeconds_Behind_Mastercolumns to the output ofSHOW SLAVE STATUS.Slave_IO_Stateindicates the state of the slave I/O thread, andSeconds_Behind_Masterindicates the number of seconds by which the slave is late compared to the master. -
The
--lower-case-table-names=1server option now also makes aliases case insensitive. (Bug#534) -
Changed that the relay log is flushed to disk by the slave I/O thread every time it reads a relay log event. This reduces the risk of losing some part of the relay log in case of brutal crash.
Bogues corrigés :
-
Fixed
mysqlparser not to erroneously interpret ‘;’ character within/* ... */comment as statement terminator. -
Fixed merging types and length of result set columns for
UNIONoperations. The types and lengths now are determined taking into account values for allSELECTstatements in theUNION, not just the firstSELECT. -
Fixed a bug in privilege handling that caused connections from certain IP addresses to be assigned incorrect database-level privileges. A connection could be assigned the database privileges of the previous successful authentication from one of those IP addresses, even if the IP address username and database name were different. (Bug#1636)
-
Error-handling functions were not called properly when an error resulted from
[CREATE | REPLACE| INSERT] ... SELECTstatements. -
HASH,BTREE,RTREE,ERRORS, andWARNINGSno longer are reserved words. (Bug#724) -
Fix for bug in
ROLLUPwhen all tables wereconsttables. (Bug#714) -
Fixed a bug in
UNIONthat prohibitedNULLvalues from being inserted into result set columns where the firstSELECTof theUNIONretrievedNOT NULLcolumns. The type and max_length of the result column is now defined based on allUNIONparts. -
Fixed name resolution of columns of reduced subqueries in unions. (Bug#745)
-
Fixed memory overrun in subqueries in select list with
WHEREclause bigger than outer queryWHEREclause. (Bug#726) -
Fixed a bug that caused
MyISAMtables withFULLTEXTindexes created in 4.0.x to be unreadable in 4.1.x. -
Fixed a data loss bug in
REPAIR TABLE ... USE_FRMwhen used with tables that containedTIMESTAMPcolumns and were created in 4.0.x. -
Fixed reduced subquery processing in
ORDER BY/GROUP BYclauses. (Bug#442) -
Fixed name resolution of outer columns of subquery in
INSERT/REPLACEstatements. (Bug#446) -
Fixed bug in marking columns of reduced subqueries. (Bug#679)
-
Fixed a bug that made
CREATE FULLTEXT INDEXsyntax illegal. -
Fixed a crash when a
SELECTthat required a temporary table (marked byUsing temporaryinEXPLAINoutput) was used as a derived table inEXPLAINcommand. (Bug#251) -
Fixed a rare table corruption bug in
DELETEfrom a big table with a new (created by MySQL-4.1) full-text index. -
LAST_INSERT_ID()now returns 0 if the lastINSERTstatement didn't insert any rows. -
Fixed missing last character in function output. (Bug#447)
-
Fixed a rare replication bug when a transaction spanned two or more relay logs, and the slave was stopped while executing the part of the transaction that was in the second or later relay log. Then replication would resume at the beginning of the second or later relay log, which was incorrect. (It should resume at
BEGIN, in the first relay log.) (Bug#53) -
CONNECTION_ID()now is properly replicated. (Bug#177) -
The new
PASSWORD()function in 4.1 is now properly replicated. (Bug#344) -
Fixed a bug with double freed memory.
-
Fixed a crashing bug in
UNIONoperations that involved temporary tables. -
Fixed a crashing bug in
DERIVED TABLESwhenEXPLAINis used on aDERIVED TABLESwith a join. -
Fixed a crashing bug in
DELETEwithORDER BYandLIMITcaused by an uninitialized array of reference pointers. -
Fixed a bug in the
USER()function caused by an error in the size of the allocated string. -
Fixed a crashing bug when attempting to create a table containing a spatial (GIS) column with a storage engine that does not support spatial types.
-
Fixed a crashing bug in
UNIONcaused by the empty select list and a non-existent column being used in some of the individualSELECTstatements. -
Fixed a replication bug with a 3.23 master and a 4.0 slave: The slave lost the replicated temporary tables if
FLUSH LOGSwas issued on the master. (Bug#254) -
Fixed a security bug: A server compiled without SSL support still allowed connections by users who had the
REQUIRE SSLoption specified for their accounts. -
When an undefined user variable was used in a updating query on the master (such as
INSERT INTO t VALUES(@a), where@ahad never been set by this connection before), the slave could replicate the query incorrectly if a previous transaction on the master used a user variable of the same name. (Bug#1331) -
Fixed bug with prepared statements: Using the
?prepared statement parameter as the argument to certain functions or statement clauses caused a server crash whenmysql_prepare()was invoked. (Bug#1500) -
Fixed bug with prepared statements: after call to mysql_prepare placeholders became allowed in all consequent statements, even if they are not prepared (Bug#1946)
-
SLAVE START(which is a deprecated syntax,START SLAVEshould be used instead) could crash the slave. (Bug#2516) -
Fixed bug in
ALTER TABLE RENAME, when rename to the table with the same name in another database silently dropped destination table if it existed. (Bug#2628)
Fonctionnalité ajoutée ou modifiée :
-
Added
--compatibleoption tomysqldumpfor producing output that is compatible with other database systems or with older MySQL servers. -
The
--optoption formysqldumpnow is enabled by default, as are all the options implied by--opt. -
New
CHARSET()andCOLLATION()functions to return the character set and collation of a string. -
Allow index type to be specified explicitly for some storage engines via
USING type_namesyntax in index definition. -
New function
IS_USED_LOCK()for determining the connection identifier of the client that holds a given advisory lock. -
New more secure client authentication based on 45-byte passwords in the
usertable. -
New
CRC32()function to compute cyclic redundancy check value. -
On Windows, we are now using shared memory to communicate between server and client when they are running on the same machine and you are connecting to
localhost. -
REPAIR TABLEofMyISAMtables now uses less temporary disk space when sorting char columns. -
DATE/DATETIMEchecking is now a bit stricter to support the ability to automatically distinguish between date, datetime, and time with microseconds. For example, dates of typeYYYYMMDD HHMMDDare no longer supported; you must either have separators between eachDATE/TIMEpart or not at all. -
Server side help for all MySQL functions. One can now type
help weekin themysqlclient and get help for theweek()function. -
Added new
mysql_get_server_version()C API client function. -
Fixed bug in
libmysqlclientthat fetched column defaults. -
Fixed bug in
mysqlcommand-line client in interpreting quotes within comments. (Bug#539) -
Added
record_in_range()method toMERGEtables to be able to choose the right index when there are many to choose from. -
Replication now works with
RAND()and user variables@var. -
Allow one to change mode for
ANSI_QUOTESon the fly. -
EXPLAIN SELECTnow can be killed. See Section 13.5.4.3, « Syntaxe deKILL». -
REPAIR TABLEnow can be killed. See Section 13.5.4.3, « Syntaxe deKILL». -
Allow empty index lists to be specified for
USE INDEX,IGNORE INDEX, andFORCE INDEX. -
DROP TEMPORARY TABLEnow drops only temporary tables and doesn't end transactions. -
Added support for
UNIONin derived tables. -
Warning: Incompatible change!
TIMESTAMPis now returned as a string of type'YYYY-MM-DD HH:MM:SS'and different timestamp lengths are not supported.This change was necessary for SQL standards compliance. In a future version, a further change will be made (backward compatible with this change), allowing the timestamp length to indicate the desired number of digits of fractions of a second.
-
New faster client/server protocol that supports prepared statements, bound parameters, and bound result columns, binary transfer of data, warnings.
-
Added database and real table name (in case of alias) to the
MYSQL_FIELDstructure. -
Multi-line queries: You can now issue several queries at once and then read the results in one go.
-
In
CREATE TABLE foo (a INT not null primary key)thePRIMARYword is now optional. -
In
CREATE TABLEthe attributeSERIALis now an alias forBIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE. -
SELECT ... FROM DUALis an alias forSELECT .... (To be compatible with some other databases). -
If one creates a too long
CHAR/VARCHARit's now automatically changed toTEXTorBLOB; One will get a warning in this case. -
One can specify the different
BLOB/TEXTtypes with the syntaxBLOB(length)andTEXT(length). MySQL will automatically change it to one of the internalBLOB/TEXTtypes. -
CHAR BYTEis an alias forCHAR BINARY. -
VARCHARACTERis an alias forVARCHAR. -
New operators
integer MOD integerandinteger DIV integer. -
SERIAL DEFAULT VALUEadded as an alias forAUTO_INCREMENT. -
TRUEandFALSEadded as alias for 1 and 0, respectively. -
Aliases are now forced in derived tables, as per standard SQL.
-
Fixed
SELECT .. LIMIT 0to return proper row count forSQL_CALC_FOUND_ROWS. -
One can specify many temporary directories to be used in a round-robin fashion with:
--tmpdir=dirname1:dirname2:dirname3. -
Subqueries:
SELECT * from t1 where t1.a=(SELECT t2.b FROM t2). -
Derived tables:
SELECT a.col1, b.col2 FROM (SELECT MAX(col1) AS col1 FROM root_table) a, other_table b WHERE a.col1=b.col1; -
Character sets to be defined per column, table and database.
-
Unicode (UTF8) support.
-
New
CONVERT(... USING ...)syntax for converting string values between character sets. -
BTREEindex onMEMORY(HEAP) tables. -
Faster embedded server (new internal communication protocol).
-
One can add a comment per column in
CREATE TABLE. -
SHOW FULL COLUMNS FROM tbl_nameshows column comments. -
ALTER DATABASE. -
Support for GIS (Geometrical data). See Chapitre 18, Données spatiales avec MySQL.
-
SHOW [COUNT(*)] WARNINGSshows warnings from the last command. -
One can specify a column type for a column in
CREATE TABLE ... SELECTby defining the column in theCREATEpart.CREATE TABLE foo (a TINYINT NOT NULL) SELECT b+1 AS a FROM bar;
-
expr SOUNDS LIKE exprsame asSOUNDEX(expr)=SOUNDEX(expr). -
Added new
VARIANCE(expr)function returns the variance ofexpr -
One can create a table from the existing table using
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table (LIKE table). The table can be either normal or temporary. -
New options
--reconnectand--skip-reconnectfor themysqlclient, to reconnect automatically or not if the connection is lost. -
START SLAVE(STOP SLAVE) no longer returns an error if the slave is already started (stopped); it returns a warning instead. -
SLAVE STARTandSLAVE STOPare no longer accepted by the query parser; useSTART SLAVEandSTOP SLAVEinstead.
- C.3.1. Changements de la version 4.0.25 (pas encore publié)
- C.3.2. Changements de la version 4.0.24 (04 Mars 2005)
- C.3.3. Changements de la version 4.0.23 (18 Décembre 2004)
- C.3.4. Changements de la version 4.0.22 (27 Octobre 2004)
- C.3.5. Changements de la version 4.0.21
- C.3.6. Changements de la version 4.0.20
- C.3.7. Changements de la version 4.0.19 (04 mai 2004)
- C.3.8. Changements de la version 4.0.18 (pas encore publiée)
- C.3.9. Changements de la version 4.0.17 (14 décembre 2003)
- C.3.10. Changements de la version 4.0.16 (17 octobre 2003)
- C.3.11. Changements de la version 4.0.15 (03 septembre 2003)
- C.3.12. Changements de la version 4.0.14 (18 juillet 2003)
- C.3.13. Changements de la version 4.0.13 (16 Mai 2003)
- C.3.14. Changements de la version 4.0.12 (15 Mars 2003 : Production)
- C.3.15. Changements de la version 4.0.11 (20 Février 2003)
- C.3.16. Changements de la version 4.0.10 (29 janvier 2003)
- C.3.17. Changements de la version 4.0.9 (09 janvier 2003)
- C.3.18. Changements de la version 4.0.8 (07 janvier 2003)
- C.3.19. Changements de la version 4.0.7 (20 Décembre 2002)
- C.3.20. Changements de la version 4.0.6 (14 Décembre 2002 : Gamma)
- C.3.21. Changements de la version 4.0.5 (13 novembre 2002)
- C.3.22. Changements de la version 4.0.4 (29 septembre 2002)
- C.3.23. Changements de la version 4.0.3 (26 Août 2002 : Beta)
- C.3.24. Changements de la version 4.0.2 (01 Juillet 2002)
- C.3.25. Changements de la version 4.0.1 (23 décembre 2001)
- C.3.26. Changements de la version 4.0.0 (Octobre 2001 : alpha)
Version 4.0 of the MySQL server includes many enhancements and new features:
-
The
InnoDBstorage engine is now included in the standard binaries, adding transactions, row-level locking, and foreign keys. See Chapitre 15, Le moteur de tablesInnoDB. -
A query cache, offering vastly increased performance for many applications. By caching complete result sets, later identical queries can return instantly. See Section 5.11, « Cache de requêtes MySQL ».
-
Improved full-text indexing with boolean mode, truncation, and phrase searching. See Section 12.6, « Recherche en texte intégral (
Full-text) dans MySQL ». -
Enhanced
MERGEtables, now supportingINSERTstatements andAUTO_INCREMENT. See Section 14.2, « Tables assembléesMERGE». -
UNIONsyntax inSELECT. See Section 13.1.7.2, « Syntaxe deUNION». -
Multiple-table
DELETEstatements. See Section 13.1.1, « Syntaxe deDELETE». -
libmysqld, the embedded server library. See Section 24.2.16, «libmysqld, la bibliothèque du serveur embarqué MySQL ». -
Additional
GRANTprivilege options for even tighter control and security. See Section 13.5.1.3, « Syntaxe deGRANTetREVOKE». -
Management of user resources in the
GRANTsystem, particularly useful for ISPs and other hosting providers. See Section 5.6.4, « Limiter les ressources utilisateurs ». -
Dynamic server variables, allowing configuration changes to be made without having to stop and restart the server. See Section 13.5.2.8, « Syntaxe de
SET». -
Improved replication code and features. See Chapitre 6, Réplication de MySQL.
-
Numerous new functions and options.
-
Changes to existing code for enhanced performance and reliability.
For a full list of changes, please refer to the changelog sections for each individual 4.0.x release.
Fonctionnalité ajoutée ou modifiée :
-
Added
--with-big-tablescompilation option to configure. (Previously it was necessary to pass-DBIG_TABLESto the compiler manually in order to enable large table support.) Section 2.4.2, « Options habituelles deconfigure» for details.
Bogues corrigés :
-
Fixed a deadlock resulting from use of
FLUSH TABLES WITH READ LOCKwhile anINSERT DELAYEDstatement is in progress. (Bug#7823) -
Fixed a segmentation fault in mysqlcheck that occurred when the last table checked in
--auto-repairmode returned an error (such as the table being aMERGEtable). (Bug#9492) -
Fixed faulty display of
TIMESTAMPcolumns retrieved aswhile thecol_name+0newsystem variable is set to 1. (Bug#8894) -
Queries containing
CURRENT_USER()incorrectly were registered in the query cache. (Bug#9796) -
Fixed problems with static variables to allow building on Fedora Core 3. (Bug#6554)
-
An
UPDATEthat updated only some of the columns in a multiple-column index could result in a loop. (Bug#8942) -
REPAIR TABLEdid not invalidate query results in the query cache that were generated from the table. (Bug#8480) -
Fixed a bug that caused concurrent inserts to be allowed into the tables in the
SELECT ... UNION ...part ofINSERT ... SELECT ... UNION .... This could result in the incorrect order of queries in the binary log. (Bug#9922) -
Fixed a bug that under certain circumstances could allow a privilege escalation via database wildcards in
GRANT. (Bug#3924, CVE-2004-0957) -
<=>was not properly comparingNULLvalues in theWHEREclause of outer joins. (Bug#8711) -
InnoDB: Fixed a bug : MySQL-4.0.23 and 4.0.24 could complain that an InnoDB table created with MySQL-3.23.49 or earlier was in the new compact InnoDB table format of 5.0.3 or later, and InnoDB would refuse to use that table. (The same bug exists in 4.1.8 - 4.1.10.) There is nothing wrong with the table, it is mysqld that is in error. Workaround: wait that 4.0.25 or 4.1.11 is released before doing an upgrade, or dump the table and recreate it with any MySQL version >= 3.23.50 before upgrading to 4.0.23 or 4.0.24.
Fonctionnalité ajoutée ou modifiée :
-
Security improvement: The server creates
.frm,.MYD,.MYI,.MRG,.ISD, and.ISMtable files only if a file with the same name does not already exist. Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0711) -
Security improvement: User-defined functions should have at least one symbol defined in addition to the
xxxsymbol that corresponds to the mainxxx()function. These auxiliary symbols correspond to thexxx_init(),xxx_deinit(),xxx_reset(),xxx_clear(), andxxx_add()functions. mysqld by default no longer loads UDFs unless they have at least one auxiliary symbol defined in addition to the main symbol. The--allow-suspicious-udfsoption controls whether UDFs that have only anxxxsymbol can be loaded. By default, the option is off.mysqldalso checks UDF filenames when it reads them from themysql.functable and rejects those that contain directory pathname separator characters. (It already checked names as given inCREATE FUNCTIONstatements.) See Section 27.2.3.1, « Fonctions utilisateur : appeler des fonctions simples », Section 27.2.3.2, « Appeler des fonctions utilisateurs pour les groupements », and Section 27.2.3.6, « Précautions à prendre avec les fonctions utilisateur ». Thanks to Stefano Di Paola<stefano.dipaola@wisec.it>for finding and informing us about this issue. (CVE-2005-0709, CVE-2005-0710) -
InnoDB: Added configuration option and settable global variableinnodb_autoextend_incrementfor setting the size in megabytes by whichInnoDBtablespaces are extended when they become full. The default value is 8, corresponding to the fixed increment of 8MB in previous versions of MySQL. -
InnoDB: Do not acquire an internal
InnoDBtable lock inLOCK TABLESifAUTOCOMMIT=1. This helps in porting oldMyISAMapplications toInnoDB.InnoDBtable locks in that case caused deadlocks very easily.
Bogues corrigés :
-
AES_DECRYPT(could fail to returncol_name,key)NULLfor invalid values incol_name, ifcol_namewas declared asNOT NULL. (Bug#8669) -
FOUND_ROWS()returned an incorrect value after aSELECT SQL_CALC_FOUND_ROWS DISTINCTstatement that selected constants and includedGROUP BYandLIMITclauses. (Bug#7945) -
Queries of the form
(SELECT ...) ORDER BY ...were being treated as aUNION. This improperly resulted in only distinct values being returned (becauseUNIONby default eliminates.) (Bug#7672) -
Index cardinality was not being updated properly for
TEMPORARYtables under some circumstances, such asCREATE TABLE ... SELECTfollowed byANALYZE TABLE. (Bug#7519) -
Fixed a server crash caused by
DELETE FROMwhen thetbl_name... WHERE ... ORDER BYtbl_name.col_nameORDER BYcolumn was qualified with the table name. (Bug#8392) -
Fixed a bug in
MATCH ... AGAINSTin natural language mode that could cause a server crash if theFULLTEXTindex was not used in a join (EXPLAINdid not showfulltextjoin mode) and the search query matched no rows in the table (Bug#8522). -
Platform and architecture information in version information produced for
--versionoption on Windows was alwaysWin95/Win98 (i32). More accurately determine platform asWin32orWin64for 32-bit or 64-bit Windows, and architecture asia32for x86,ia64for Itanium, andaxpfor Alpha. (Bug#4445) -
Fixed an optimization problem that allowed a negative number to be stored in a
DOUBLE UNSIGNEDcolumn when it was assigned a value from a signedDOUBLEcolumn. (Bug#7700) -
Fixed a failure of multiple-table updates to replicate properly on slave servers when
--replicate-*-tableoptions had been specified. (Bug#7011) -
Renamed
set_bit()andclear_bit()functions in source code to avoid a conflict with functions of the same names in Linux kernel header files. (Bug#7971) -
Part of the information being used to cache access-permission lookups was not always reinitialized properly, particularly for connections from localhost on Windows. The result was connection failures that appeared to occur randomly. (Bug#5569)
-
Corrected a problem with the
QUOTE()function returning bad results. (Bug#8248) -
Fixed a problem where
INSERT INTO ...SELECTfailed when the source and target table were the same. (Bug#6034) -
Fixed a problem where RPM installation on Linux as a non-privileged user would result in incomplete installation. (Bug#7347)
-
Change thread stack size used for building Linux RPM distributions to avoid warnings about stack size during server startup. (Bug#6226)
-
Fixed a symlink vulnerability in the mysqlaccess script. Reported by Javier Fernandez-Sanguino Pena and Debian Security Audit Team. (CVE-2005-0004)
-
Fixed support for C API function
mysql_list_fields(), which was accidentally broken in 4.0.22 (Bug#6761) -
Make
query_cache_wlock_invalidatesystem variable visible inSHOW VARIABLESoutput. (Bug#7594) -
Fixed a bug which caused
FROM_UNIXTIME()function to returnNULLfor zero argument instead of the Epoch. (Bug#7515) -
Now in datetime values two digit year is interpreted as year in 20th or 21st century even with zero month and day. (Bug#7297)
-
Fixed a bug in
QUOTEfunction when used in conjunction with some other string functions. This lead to severe buffer overflow and server crashing. (Bug#7495) -
InnoDB: Work around a problem in AIX 5.1 patched with ML7 security patch: InnoDB would refuse to open its
ibdatafiles, complaining about an operating system error 0. -
InnoDB: Fixed a memory corruption bug if one created a table with a primary key that contained at least two column prefixes. An example:
CREATE TABLE t(a char(100), b tinyblob, PRIMARY KEY(a(5), b(10))). -
InnoDB: Use native
tmpfile()function on Netware. All InnoDB temporary files are created undersys:\tmp. Previously, InnoDB temporary files were never deleted on Netware. -
InnoDB: Honor the--tmpdirstartup option when creating temporary files. Previously,InnoDBtemporary files were always created in the temporary directory of the operating system. On Netware,InnoDBwill continue to ignore--tmpdir. (Bug#5822) -
InnoDB: Fix a theoretical hang over the adaptive hash latch in InnoDB if one runs
INSERT ... SELECT ...(binlog not enabled), or a multi-tableUPDATEorDELETE, and only the read tables are InnoDB type, the rest are MyISAM; this also fixes Bug#7879 for InnoDB type tables. (Bug#7879) -
InnoDB: Fixed a bug : 32-bit mysqld binaries built on HP-UX-11 did not work with
InnoDBfiles greater than 2 GB in size. (Bug#6189) -
InnoDB: Fixed a bug : InnoDB failed to drop a table in the background drop queue if the table was referenced by a foreign key constraint.
-
InnoDB: Fixed a bug : if we dropped a table where an
INSERTwas waiting for a lock to check aFOREIGN KEYconstraint, then an assertion would fail inlock_reset_all_on_table(), since that operation assumes no waiting locks on the table or its records. -
Fixed that, when encountering a ``disk full'' or ``quota exceeded'' write error,
MyISAMsometimes didn't sleep and retry the write, thus resulting in a corrupted table. (Bug#7714) -
Fixed that a slave could crash after replicating many
ANALYZE TABLE,OPTIMIZE TABLE, orREPAIR TABLEstatements from the master. (Bug#6461, Bug#7658) -
Fixed a bug where MySQL was allowing concurrent updates (inserts, deletes) to a table if binary logging is enabled. Changed to ensure that all updates are executed in a serialized fashion, because they are executed serialized when binlog is replayed. (Bug#7879)
-
Fixed a bug that caused the slave to stop on statements that produced an error on the master. (Bug#8412)
-
Documented problem with using
mysqldumpin 4.0.x to dumpTIMESTAMP(2)andTIMESTAMP(4)column types. (Bug#6530)
Note: Due to a libtool-related bug in the source distribution, the creation of shared libmysqlclient libraries was not possible (the resulting files were missing the .so file name extension). The file ltmain.sh was updated to fix this problem and the resulting source distribution was released as mysql-4.0.23a.tar.gz. This modification did not affect the binary packages. (Bug#7401)
Fonctionnalité ajoutée ou modifiée :
-
Added
--hex-bloboption to mysqldump for dumping binary string columns using hexadecimal notation. -
Added
mysql_hex_string()C API function that hex-encodes a string. -
InnoDB: Do not periodically write
SHOW INNODB STATUSinformation to a temporary file unless the configuration optioninnodb_status_file=1is set. -
InnoDB: Made the foreign key parser better aware of quotes. (Bug#6340)
-
mysqlbinlognow prints an informative commented line (thread id, timestamp, server id, etc) before eachLOAD DATA INFILE, like it does for other queries; unless--short-formis used.
Bogues corrigés :
-
Corrected accounts in the
mysql.usertable in Windows distributions that had been created with aHostvalue ofbuildrather than%. (Bug#6000) -
Prevent adding
CREATE TABLE .. SELECTquery to the binary log when the insertion of new records partially failed. (Bug#6682) -
Fixed bug which caused
FROM_UNIXTIME()function to return wrong result if the argument was too big. (Bug#6439) -
Fixed bug which caused MySQL server to store wrong values in
TIMESTAMPcolumns and give wrong results forUNIX_TIMESTAMP()function if it was run in time zone with leap seconds. (Bug#6387) -
InnoDB: Fixed a bug in
LOAD DATA INFILE…REPLACEprinting duplicate key error when executing the same load query several times. (Bug#5835) -
InnoDB: Refuse to open new-style tables created with MySQL 5.0.3 or later. (Bug#7089)
-
InnoDB: Do not call
rewind()when displayingSHOW INNODB STATUSinformation onstderr. -
InnoDB: If one used
INSERT IGNOREto insert several rows at a time, and the first inserts were ignored because of a duplicate key collision, then InnoDB in a replication slave assignedAUTO_INCREMENTvalues 1 bigger than in the master. This broke the MySQL replication. (Bug#6287) -
InnoDB: Fix two hangs:
FOREIGN KEYconstraints treated table and database names as case-insensitive.RENAME TABLE t TO Twould hang in an endless loop ifthad a foreign key constraint defined on it. Fix also a hang over the dictionary mutex that would occur if one tried inALTER TABLEorRENAME TABLEto create a foreign key constraint name that collided with another existing name. (Bug#3478) -
InnoDB: Treat character
0xA0as space in InnoDB'sFOREIGN KEYparser if MySQL treats it as space in the default charset. EMS MySQL Manager inserts character0xA0after the table name in anALTER, which confused InnoDB's parser. -
Fixed a bug which caused a crash when only the slave I/O thread was stopped and restarted. (Bug#6148)
-
If a connection had an open transaction but had done no updates to transactional tables (for example if had just done a
SELECT FOR UPDATEthen executed a non-transactional update, that update automatically committed the transaction (thus releasing InnoDB's row-level locks etc). (Bug#5714) -
If a connection was interrupted by a network error and did a rollback, the network error code got stored into the
BEGINandROLLBACKbinary log events; that caused superfluous slave stops. (Bug#6522) -
A sequence of
BEGIN(orSET AUTOCOMMIT=0),FLUSH TABLES WITH READ LOCK, transactional update,COMMIT,FLUSH TABLES WITH READ LOCKcould hang the connection forever and possibly the MySQL server itself. This happened for example when running theinnobackupscript several times. (Bug#6732)
Fonctionnalités ajoutées ou modifiées :
-
InnoDB: Made
LOCK TABLESbehave by default like it did before MySQL 4.0.20 or 4.1.2: noInnoDBlock will be taken. Added a startup option and settable system variableinnodb_table_locksfor makingLOCK TABLEacquire alsoInnoDBlocks. See Section 15.17, « Restrictions sur les tablesInnoDB». (Bug#3299, Bug#5998) -
The
--with-openssloption for configure now accepts a path prefix as an argument.--with-openssl-includesand--with-openssl-libsstill are supported, but are needed only to override the default values. (Bug#5494) -
Added new
--without-manoption to configure to suppress building/installing the manual pages. (Bug#5379)
Bogues corrigés :
-
Fixed bug in server which caused connection stall when one of deprecated
libmysqlclientfunctionsmysql_create_db(), mysql_rm_db()were called and were going to return error. (Bug#6081) -
Fixed returning wrong query result from query cache if temporary table haded real tables after putting results to query cache. (Bug#6084)
-
Fixed
ENABLE KEYS, which failed iftmpdirran out of space. Now, a full repair is done in this case. (Bug#5625) -
Fixed an improper error message when trying to drop a table which is referenced by a
FOREIGN KEYconstraint. (Bug#5784) -
Fixed a bug that allowed
FLUSH TABLE(S)to closeHANDLERtables.HANDLERtables now are re-opened after aFLUSH TABLE(S)when they are next used. However, they lose their file position if this happens. (Bug#4286) -
Fixed a bug that allowed
HANDLERtables with the same alias to be multiple opened.HANDLERaliases must now be unique, even though it is syntactically correct in versions below 4.1, to qualify them with their base table's database name (e.g. test_db.handler_tbl, but this will now conflict with e.g. another_db.handler_tbl). (Bug#4335) -
Fixed crash when using MySQL 4.0 with privilege tables from MySQL 5.0.
-
InnoDB: Make the check for excessive semaphore waits tolerate glitches in the system clock (do not crash the server if the system time is adjusted while InnoDB is under load.). (Bug#5898)
-
mysqlimport now reads input files locally from the client host only if the
--localoption is given. Previously, it assumed incorrectly in some cases that files were local even without--local. (Bug#5829) -
InnoDB: Fixed a bug in the InnoDB
FOREIGN KEYparser that preventedALTER TABLEof tables containing ‘#’ in their names. (Bug#5856) -
Fixed a bug which resulted in erronously calculated number of examined rows in
UNION's. This value is printed in the slow query log. (Bug#5879) -
Fixed bug with crash of server on some values of read_rnd_buffer_size (Bug#5492)
-
Fixed bug which caused truncation of values read from or into
TIMESTAMPfields if--newmode was enabled. (Bug#4131) -
mysqladmin now returns a status of 0 even when the server denies access; such an error means theserver is running. (Bug#3120)
-
InnoDB: Fixed a bug introduced in 4.0.21. An assertion failed if one used mysqldump with the option
-lor--opt, or if one usedLOCK TABLES ... LOCAL. (Workaround in 4.0.21: use--quickand--single-transaction. (Bug#5538) -
Fixed that if the slave SQL thread found a syntax error in a query (which should be rare, as the master parsed it successfully), it stops. (Bug#5711)
-
Fixed that if a write to a MyISAM table fails because of a full disk or an exceeded disk quota, it prints a message to the error log every 10 minutes, and waits until disk becomes free. (Bug#3248)
-
Fixed problem with symlinked databases on Windows being shown with
SHOW DATABASESeven if the database name doesn't match the given wildcard (Bug#5539) -
Fixed problem introduced in 4.0.21 where a connection starting a transaction, doing updates, then
FLUSH TABLES WITH READ LOCK, thenCOMMIT, would cause replication slaves to stop complaing about error 1223. Bug surfaced when using the InnoDBinnobackupscript. (Bug#5949)
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
Fixed a bug with truncation of big values (> 4294967295) of 64-bit system variables. (Bug#3754)
Fonctionnalité ajoutée ou modifiée :
-
Phrase search in
MATCH ... AGAINST ( ... IN BOOLEAN MODE)no longer matches partial words.
Bogues corrigés :
-
Fixed a bug in division
/reporting incorrect metadata (number of digits after the decimal point). It can be seen, e.g. inCREATE TABLE t1 SELECT "0.01"/"3". (Bug#3612) -
Fixed a problem with non-working
DROP DATABASEon some configurations (in particular, Linux 2.6.5 with ext3 are known to expose this bug). (Bug#3594) -
Fixed that in some replication error messages, a very long query caused the rest of the message to be invisible (truncated), by putting the query last in the message. (Bug#3357)
Note: The MySQL 4.0.19 binaries were uploaded to the download mirrors on May, 10th. However, a potential crashing bug was found just before the 4.0.19 release was publicly announced and published from the 4.0 download pages at http://dev.mysql.com/.
See (Bug#3596) for details (it was reported against MySQL-4.1, but was confirmed to affect 4.0.19 as well).
A fix for this bug was pushed into the MySQL source tree shortly after it could be reproduced and will be included in the upcoming MySQL 4.0.20, to be released shortly. We recommend users to stick to MySQL 4.0.18 for the time being, until MySQL 4.0.20 has been released (this specific bug was introduced after MySQL 4.0.18 was released, so older versions were not affected by it). We apologize for the inconvenience!
Fonctionnalité ajoutée ou modifiée :
-
If length of a timestamp field is defined as 19, the timestamp will be displayed as
"YYYY-MM-DD HH:MM:SS. This is done to make it easier to use tables created in MySQL 4.1 to be used in MySQL 4.0. -
If you use
RAID_CHUNKSwith a value > 255 it will be set to 255. This was made to ensure that all raid directories are always 2 hex bytes. (Bug#3182) -
Changed that the optimizer will now consider the index specified in
FORCE INDEXclause as a candidate to resolveORDER BYas well. -
Non-standard behavior of
UNIONstatements has changed to the standard ones. So far, a table name in theORDER BYclause was tolerated. From now on a proper error message is issued (Bug#3064). -
Added
max_insert_delayed_threadssystem variable as a synonym formax_delayed_threads. -
Added
query_cache_wlock_invalidatesystem variable. It allow emulation ofMyISAMtable write-locking behavior, even for queries in the query cache. (Bug#2693) -
The keyword
MASTER_SERVER_IDis not reserved anymore. -
The following is mainly relevant for Mac OS X users who use a case-insensitive filesystem. This is not relevant for Windows users as
InnoDBin this case always stores file names in lower case:One can now force
lower_case_table_namesto 0 from the command line or a configuration file. This is useful with case-insensitive filesystems when you have previously not usedlower_case_table_names=1orlower_case_table_names=2and your have already createdInnoDBtables. Withlower_case_table_names=0,InnoDBtables were stored in mixed case while setting lower_case_table_names <> 0 will now force it to lower case (to make the table names case insensitive).Because it's possible to crash
MyISAMtables by referring to them with different case on a case-insensitive filesystem, we recommend that you uselower_case_table_namesorlower_case_table_names=2on such filesystems.The easiest way to convert to use
lower_case_table_names=2is to dump all yourInnoDBtables withmysqldump, drop them and then restore them. -
Non-standard behavior of
UNIONstatements has changed to the standard ones. So far, a table name in theORDER BYclause was tolerated. From now on a proper error message is issued (Bug#3064). -
Added
max_insert_delayed_threadssystem variable as a synonym formax_delayed_threads. -
Added
query_cache_wlock_invalidatesystem variable. It allow emulation ofMyISAMtable write-locking behavior, even for queries in the query cache. (Bug#2693) -
Changed that the relay log is flushed to disk by the slave I/O thread every time it reads a relay log event. This reduces the risk of losing some part of the relay log in case of brutal crash.
-
When a session having open temporary tables terminates, the statement automatically written to the binary log is now
DROP TEMPORARY TABLE IF EXISTSinstead ofDROP TEMPORARY TABLE, for more robustness. -
Added option
--replicate-same-server-id.
Bogues corrigés :
-
Added missing full-text variable
ft_stopword_filetomyisamchk. -
Don't allow stray
','at the end of field specifications. (Bug#3481) -
INTERVALnow can handle big values for seconds, minutes and hours. (Bug#3498) -
Blank hostname did not work as documented for table and column privileges. Now it's works the same way as
'%'. (Bug#3473) -
Fixed a harmless buffer overflow in
replaceutility. (Bug# 3541) -
Fixed
SOUNDEX()to ignore non-alphabetic characters also in the beginning of the string. (Bug#3556) -
Fixed a bug in
MATCH ... AGAINST()searches when another thread was doing concurrent inserts into theMyISAMtable in question. The first --- full-text search --- query could return incorrect results in this case (e.g. ``phantom'' rows or not all matching rows, even an empty result set). The easiest way to check whether you are affected is to startmysqldwith--skip-concurrent-insertswitch and see if it helps. -
Fixed bug when doing
DROP DATABASEon a directory containing non- MySQL files. Now a proper error message is returned. -
Fixed bug in
ANALYZE TABLEon aBDBtable inside a transaction that hangs server thread. (Bug#2342) -
Fixed a symlink vulnerability in
mysqlbugscript. (Bug#3284) -
Fixed core dump bug in
SELECT DISTINCTwhere all selected parts where constants and there were hidden columns in the created temporary table. (Bug#3203) -
Fixed core dump bug in
COUNT(DISTINCT)when there was a lot of values and one had a big value formax_heap_table_size. -
Fixed problem with multi-table-update and BDB tables. (Bug: #3098)
-
Fixed memory leak when dropping database with
RAIDtables. (Bug#2882) -
Fixed core dump crash in replication during relay-log switch when the relay log went over
max_relay_log_sizeand the slave thread did aflush_io_cache()at the same time. -
Fixed hangup bug when issuing multiple
SLAVE STARTfrom different threads at the same time. (Bug#2921) -
Fixed bug when using
DROP DATABASEwithlower_case_table_names=2. -
Fixed wrong result in
UNIONwhen usinglower_case_table_names=2. (Bug#2858) -
One can now kill threads that is 'stuck' in the join optimizer (can happen when there is MANY tables in the join in which case the optimizer can take really long time). (Bug#2825)
-
Rollback
DELETEandUPDATEstatements if thread is killed. (Bug#2422) -
Ensure that all rows in an
INSERT DELAYEDstatement is written at once if binary logging is enabled. (Bug#2491). -
Fixed bug in query cache statistic, more accurate formula linked statistic variables mentioned in the manual.
-
Fixed a bug in parallel repair (
myisamchk -p,myisam_repair_threads) - sometimes repair process failed to repair a table. (Bug#1334) -
Fixed bugs with names of tables, databases and columns that end to space (Bug#2985)
-
Fixed a bug in multiple-table
UPDATEstatements involving at least one constant table. Bug was exhibited in allowing non matching row to be updated. (Bug#2996). -
Fixed all bugs in scripts for creating/upgrading system database (Bug#2874) Added tests which guarantee against such bugs in the future.
-
Fixed bug in
mysqlcommand-line client in interpreting quotes within comments. (Bug#539) -
--set-character-setand--character-sets-diroptions inmyisamchknow work. -
Fixed a bug in
mysqlbinlogthat caused one pointer to be free'd twice in some cases. -
Fixed a bug in boolean full-text search, that sometimes could lead to false matches in queries with several levels of subexpressions using
+operator (for example,MATCH ... AGAINST('+(+(word1 word2)) +word3*' IN BOOLEAN MODE). -
Fixed Windows-specific portability bugs in
myisam_ftdump. -
Fixed a bug in multiple-table
DELETEthat was caused by foreign key constraints. If the order of the tables established by MySQL optimizer did not match parent-child order, no rows were deleted and no error message was provided. (Bug#2799) -
Fixed a few years old bug in the range optimizer that caused a segmentation fault on some very rare queries. (Bug#2698)
-
Replication: If a client connects to a slave server and issues an administrative statement for a table (for example,
OPTIMIZE TABLEorREPAIR TABLE), this could sometimes stop the slave SQL thread. This does not lead to any corruption, but you must useSTART SLAVEto get replication going again. (Bug#1858) The bug was accidentally not fixed in 4.0.17 as it was unfortunately earlier said. -
Fixed that when a
Rotateevent is found by the slave SQL thread in the middle of a transaction, the value ofRelay_Log_PosinSHOW SLAVE STATUSremains correct. (Bug#3017) -
Corrected the master's binary log position that
InnoDBreports when it is doing a crash recovery on a slave server. (Bug#3015) -
Changed that when a
DROP TEMPORARY TABLEstatement is automatically written to the binary log when a session ends, the statement is recorded with an error code of value zero (this ensures that killing aSELECTon the master does not result in a superfluous error on the slave). (Bug#3063) -
Changed that when a thread handling
INSERT DELAYED(also known as adelayed_insertthread) is killed, its statements are recorded with an error code of value zero (killing such a thread does not endanger replication, so we thus avoid a superfluous error on the slave). (Bug#3081) -
Fixed deadlock when two
START SLAVEcommands were run at the same time. (Bug#2921) -
Fixed that a statement never triggers a superfluous error on the slave, if it must be excluded given the
replicate-*options. The bug was that if the statement had been killed on the master, the slave would stop. (Bug#2983) -
The
--local-loadoption ofmysqlbinlognow requires an argument. -
Fixed a segmentation fault when running
LOAD DATA FROM MASTERafterRESET SLAVE. (Bug#2922) -
Fixed a rare error condition that caused the slave SQL thread spuriously to print the message
Binlog has bad magic numberand stop when it was not necessary to do so. (Bug#3401) -
Fixed the column
Exec_master_log_pos(and its disk image in therelay-log.infofile) to be correct if the master had version 3.23 (it was too big by 6 bytes). This bug does not exist in the 5.0 version. (Bug#3400) -
Fixed that
mysqlbinlogdoes not forget to print aUSEcommand under rare circumstances where the binary log contained aLOAD DATA INFILEcommand. (Bug#3415) -
Fixed a memory corruption when replicating a
LOAD DATA INFILEwhen the master had version 3.23. Some smaller problems remain in this setup, See Section 6.7, « Fonctionnalités de la réplication et problèmes connus ». (Bug#3422) -
Multiple-table
DELETEstatements were always replicated by the slave if there were somereplicate-*-ignore-tableoptions and noreplicate-*-do-tableoptions. (Bug#3461) -
Fixed a crash of the MySQL slave server when it was built with
--with-debugand replicating itself. (Bug#3568)
Fonctionnalité ajoutée ou modifiée :
-
Fixed processing of
LOAD DATAbymysqlbinlogin remote mode. (Bug#1378) -
New utility program
myisam_ftdumpwas added to binary distributions. -
ENGINEis now a synonym for theTYPEoption forCREATE TABLEandALTER TABLE. -
lower_case_table_namessystem variable now can take a value of2, to store table names in mixed case on case-insensitive filesystems. It's forced to 2 if the database directory is located on a case-insensitive filesystem. -
For replication of
MEMORY(HEAP) tables: Made the master automatically write aDELETE FROMstatement to its binary log when aMEMORYtable is opened for the first time since master's startup. This is for the case where the slave has replicated a non-emptyMEMORYtable, then the master is shut down and restarted: the table is now empty on master; theDELETE FROMempties it on slave too. Note that even with this fix, between the master's restart and the first use of the table on master, the slave still has out-of-date data in the table. But if you use theinit-fileoption to populate theMEMORYtable on the master at startup, it ensures that the failing time interval is zero. (Bug#2477) -
Optimizer is now better tuned for the case where the first used key part (of many) is a constant. (Bug#1679)
-
Removed old non-working
--old-rpl-compatserver option, which was a holdover from the very first 4.0.x versions. (Bug#2428)
Bogues corrigés :
-
mysqlhotcopynow works on NetWare. -
DROP DATABASEcould not drop databases with RAID tables that had more than nineRAID_CHUNKS. (Bug#2627) -
Fixed bug in range optimizer when using overlapping ranges. (Bug#2448)
-
Limit
wait_timeoutto 2147483 on Windows (OS limit). (Bug#2400) -
Fixed bug when
--init-filecrashes MySQL if it contains a largeSELECT. (Bug#2526) -
SHOW KEYSnow showsNULLin theSub_partcolumn forFULLTEXTindexes. -
The signal thread's stack size was increased to enable
mysqldto run on Debian/IA-64 with a TLS-enabledglibc. (Bug#2599) -
Now only the
SELECTprivilege is needed for tables that are only read in multiple-tableUPDATEstatements. (Bug#2377) -
Give proper error message if one uses
LOCK TABLES ... ; INSERT ... SELECTand one used the same table in theINSERTandSELECTpart. (Bug#2296) -
SELECT INTO ... DUMPFILEnow deletes the generated file on error. -
Fixed foreign key reference handling to allow references to column names that contain spaces. (Bug#1725)
-
Fixed problem with index reads on character columns with
BDBtables. The symptom was that data could be returned in the wrong lettercase. (Bug#2509) -
Fixed a spurious table corruption problem that could sometimes appear on tables with indexed
TEXTcolumns if these columns happened to contain values having trailing spaces. This bug was introduced in 4.0.17. -
Fixed a problem where some queries could hang if a condition like
indexed_TEXT_column = exprwas present and the column contained values having trailing spaces. This bug was introduced in 4.0.17. -
Fixed a bug that could cause incorrect results from a query that involved range conditions on indexed
TEXTcolumns that happened to contain values having trailing spaces. This bug was introduced in 4.0.17. (Bug#2295) -
Fixed incorrect path names in some of the manual pages. (Bug#2270)
-
Fixed spurious ``table corrupted'' errors in parallel repair operations. See Section 5.2.3, « Variables serveur système ».
-
Fixed a crashing bug in parallel repair operations. See Section 5.2.3, « Variables serveur système ».
-
Fixed bug in updating
MyISAMtables forBLOBvalues longer than 16MB. (Bug#2159) -
Fixed bug in
mysqld_safewhen running multiple instances of MySQL. (Bug#2114) -
Fixed a bug in using
HANDLERstatement with tables not from a current database. (Bug#2304) -
Fixed a crashing bug that occurred due to the fact that multiple-table
UPDATEstatements did not check that there was only one table to be updated. (Bug#2103) -
Fixed a crashing bug that occurred due to
BLOBcolumn type index size being calculated incorrectly inMIN()andMAX()optimizations. (Bug#2189) -
Fixed a bug with incorrect syntax for
LOCK TABLESinmysqldump. (Bug#2242) -
Fixed a bug in
mysqld_safethat causedmysqldto generate a warning about duplicateuser=xxxoptions if this option was specified in the[mysqld]or[server]sections ofmy.cnf. (Bug#2163) -
INSERT DELAYED ... SELECT ...could cause table corruption because tables were not locked properly. This is now fixed by ignoringDELAYEDin this context. (Bug#1983) -
Replication: Sometimes the master gets a non-fatal error during the execution of a statement that does not immediately succeed. (For example, a write to a
MyISAMtable may first receive ``no space left on device,'' but later complete when disk space becomes available. See Section A.4.3, « Comment MySQL gère un disque plein ».) The bug was that the master forgot to reset the error code to 0 after success, so the error code got into its binary log, thus causing the slave to issue false alarms such as ``did not get the same error as on master.'' (Bug#2083) -
Removed a misleading ``check permissions on master.info'' from a replication error message, because the cause of the problem could be something other than permissions. (Bug#2121)
-
Fixed a crash when the replication slave was unable to create the first relay log. (Bug#2145)
-
Replication of
LOAD DATA INFILEfor an empty file from a 3.23 master to a 4.0 slave caused the slave to print an error. (Bug#2452) -
When automatically forcing
lower_case_table_namesto 1 if the file system was case insensitive,mysqldcould crash. This bug existed only in MySQL 4.0.17. (Bug#2481) -
Restored ability to specify default values for
TIMESTAMPcolumns that was erroneously disabled in previous release. (Bug#2539) FixedSHOW CREATE TABLEto reflect these values. (Bug#1885) Note that because of the auto-update feature for the firstTIMESTAMPcolumn in a table, it makes no sense to specify a default value for the column. Any such default will be silently ignored (unless anotherTIMESTAMPcolumn is added before this one). Also fixed the meaning of theDEFAULTkeyword when it is used to specify the value to be inserted into aTIMESTAMPcolumn other than the first. (Bug#2464) -
Fixed bug for out-of-range arguments on QNX platform that caused
UNIX_TIMESTAMP()to produce incorrect results or that caused non-zero values to be inserted intoTIMESTAMPcolumns. (Bug#2523) Also, current time zone now is taken into account when checking if datetime values satisfy both range boundaries forTIMESTAMPcolumns. The range allowed for aTIMESTAMPcolumn is time zone-dependent and equivalent to a range of1970-01-01 00:00:01UTC to2037-12-31 23:59:59UTC. -
Multiple-table
DELETEstatements were never replicated by the slave if there were anyreplicate-*-tableoptions. (Bug#2527) -
Changes to session counterparts of variables
query_prealloc_size,query_alloc_block_size,trans_prealloc_size,trans_alloc_block_sizenow have an effect. (Bug#1948) -
Fixed bug in
ALTER TABLE RENAME, when rename to the table with the same name in another database silently dropped destination table if it existed. (Bug#2628)
Fonctionnalité ajoutée ou modifiée :
-
mysqldumpno longer dumps data forMERGEtables. (Bug#1846) -
lower_case_table_namesis now forced to 1 if the database directory is located on a case-insensitive file system. (Bug#1812) -
Symlink creation is now disabled on systems where
realpath()doesn't work. (Before one could useCREATE TABLE .. DATA DIRECTORY=..even ifHAVE_BROKEN_REALPATHwas defined. This is now disabled to avoid problems when runningALTER TABLE). -
Inserting a negative
AUTO_INCREMENTvalue in aMyISAMtable no longer updates theAUTO_INCREMENTcounter to a big unsigned value. (Bug#1366) -
Added four new modes to
WEEK(..., mode)function. SeeWEEK(date: (mode)). (Bug#1178) -
Allow
UNION DISTINCTsyntax. -
mysql_server_init()now returns 1 if it can't initialize the environment. (Previouslymysql_server_init()calledexit(1)if it could not create a key withpthread_key_create(). (Bug#2062) -
Allow spaces in Windows service names.
-
Changed the default Windows service name for
mysqldfromMySqlto MySQL. This should not affect usage, because service names are not case sensitive. -
When you install
mysqldas a service on Windows systems,mysqldwill read startup options in option files from the option group with the same name as the service name. (Except when the service name is MySQL).
Bogues corrigés :
-
One can now configure MySQL as a Windows service as a normal user. (Bug#1802). Thanks to Richard Hansen for fixing this.
-
Database names are now compared in lowercase in
ONclauses whenlower_case_table_namesis set. (Bug#1736) -
IGNORE ... LINESoption toLOAD DATA INFILEdidn't work when used with fixed length rows. (Bug#1704) -
Fixed problem with
UNIX_TIMESTAMP()for timestamps close to 0. (Bug#1998) -
Fixed problem with character values greater than 128 in the
QUOTE()function. (Bug#1868) -
Fixed searching of
TEXTwith end space. (Bug#1651) -
Fixed caching bug in multiple-table updates where same table was used twice. (Bug#1711)
-
Fixed directory permissions for the MySQL-server RPM documentation directory. (Bug#1672)
-
Fixed server crash when updating an
ENUMcolumn that is set to the empty string (for example, withREPLACE()). (Bug#2023) -
mysqlclient program now correctly prints connection identifier returned bymysql_thread_id()as unsigned integer rather than as signed integer. (Bug#1951) -
FOUND_ROWS()could return incorrect number of rows after a query with an impossibleWHEREcondition. (Bug#1468) -
SHOW DATABASESno longer shows.symfiles (on Windows) that do not point to a valid directory. (Bug#1385) -
Fixed a possible memory leak on Mac OS X when using the shared
libmysql.solibrary. (frompthread_key_create()). (Bug#2061) -
Fixed bug in
UNIONstatement with alias*. (Bug#1249) -
Fixed a bug in
DELETE ... ORDER BY ... LIMITwhere the rows where not deleted in the proper order. (Bug#1024, Bug#1697). -
Fixed serious problem with multi-threaded programs on Windows that used the embedded MySQL libraries. (Locks of tables were not handled correctly between different threads).
-
Code cleanup: Fixed a few code defects (potential memory leaks, null pointer dereferences, uninitialized variables). Thanks to Reasoning Inc. for informing us about these findings.
-
Fixed a buffer overflow error that occurred with prepended ‘
0’ characters in some columns of typeDECIMAL. (Bug#2128) -
Filesort was never shown in
EXPLAINif query contained anORDER BY NULLclause. (Bug#1335) -
Fixed invalidation of whole query cache on
DROP DATABASE. (Bug#1898) -
Fixed bug in range optimizer that caused wrong results for some unlikely
AND/ORqueries. (Bug#1828) -
Fixed a crash in
ORDER BYwhen ordering by expression and identifier. (Bug#1945) -
Fixed a crash in an open
HANDLERwhen anALTER TABLEwas executed in a different connection. (Bug#1826) -
Fixed a bug in
trunc*operator of full-text search which sometimes caused MySQL not to find all matched rows. -
Fixed bug in prepending ‘
0’ characters toDECIMALcolumn values. -
Fixed optimizer bug, introduced in 4.0.16, when
REFaccess plan was preferred to more efficientRANGEon another column. -
Fixed problem when installing a MySQL server as a Windows service using a command of the form
mysqld --install mysql --defaults-file=path-to-file. (Bug#1643) -
Fixed an incorrect result from a query that uses only
consttables (such as one-row tables) and non-constant expression (such asRAND()). (Bug#1271) -
Fixed bug when the optimizer did not take
SQL_CALC_FOUND_ROWSinto account ifLIMITclause was present. (Bug#1274) -
mysqlbinlognow asks for a password at the console when the-por--passwordoption is used with no argument. This is consistent with the way that other clients suchmysqladminandmysqldumpalready behave. Note: A consequence of this change is that it is no longer possible to invokemysqlbinlogasmysqlbinlog -p pass_val(with a space between the-poption and the following password value). (Bug#1595) -
Fixed bug accidentally introduced in 4.0.16 where the slave SQL thread deleted its replicated temporary tables when
STOP SLAVEwas issued. -
In a ``chain'' replication setup
A->B->C, if 2 sessions on A updated temporary tables of the same name at the same time, the binary log ofBbecame incorrect, resulting inCbecoming confused. (Bug#1686) -
In a ``chain'' replication setup
A->B->C, ifSTOP SLAVEwas issued onBwhile it was replicating a temporary table fromA, then whenSTART SLAVEwas issued onB, the binary log ofBbecame incorrect, resulting inCbecoming confused. (Bug#1240) -
When
MASTER_LOG_FILEandMASTER_LOG_POSwere not specified,CHANGE MASTERused the coordinates of the slave I/O thread to set up replication, which broke replication if the slave SQL thread lagged behind the slave I/O thread. This caused the slave SQL thread to lose some events. The new behavior is to use the coordinates of the slave SQL thread instead. See Section 13.6.2.1, «CHANGE MASTER TO». (Bug#1870) -
Now if integer is stored or converted to
TIMESTAMPorDATETIMEvalue checks of year, month, day, hour, minute and second ranges are performed and numbers representing illegal timestamps are converted to 0 value. This behavior is consistent with manual and with behavior of string toTIMESTAMP/DATETIMEconversion. (Bug#1448) -
Fixed bug when
BIT_AND()andBIT_OR()group functions returned incorrect value ifSELECTused a temporary table and no rows were found. (Bug#1790). -
BIT_AND()is now unsigned in all contexts. This means that it will now return 18446744073709551615 (= 0xffffffffffffffff) instead of -1 if there were no rows in the result. -
Fixed bug with
BIT_AND()still returning signed value for an empty set in some cases. (Bug#1972) -
Fixed bug with
^(XOR) and>>(bit shift) still returning signed value in some cases. (Bug#1993) -
Replication: a rare race condition in the slave SQL thread, which could lead to a wrong complain that the relay log is corrupted. (Bug#2011)
-
Replication: if an administrative command on a table (
OPTIMIZE TABLE,REPAIR TABLEetc) was run on the slave, this could sometimes stop the slave SQL thread (this did not led to any corruption; one just had to typeSTART SLAVEto get replication going again). (Bug#1858) -
Replication: in the slave SQL thread, a multi-table
UPDATEcould produce a wrong complain that some record was not found in one table, if theUPDATEwas preceded by aINSERT ... SELECT. (Bug#1701) -
Fixed deficiency in MySQL code which is responsible for scanning directories. This deficiency caused
SHOW TABLE STATUSto be very slow for big number of tables in database even if single particular table were specified. (Bug#1952)
Fonctionnalité ajoutée ou modifiée :
-
Option values in option files now may be quoted. This is useful for values that contain whitespace or comment characters.
-
Write memory allocation information to error log when doing
mysqladmin debug. This works only on systems that support themallinfo()call (like newer Linux systems). -
Added the following new server variables to allow more precise memory allocation:
range_alloc_block_size,query_alloc_block_size,query_prealloc_size,transaction_alloc_block_size, andtransaction_prealloc_size. -
mysqlbinlognow reads option files. To make this work, you must now specify--read-from-remote-serverwhen reading binary logs from a MySQL server. (Note that using a remote server is deprecated and may disappear in futuremysqlbinlogversions). -
Block
SIGPIPEsignals also for non-threaded programs. The blocking is moved frommysql_init()tomysql_server_init(), which is automatically called on the first call tomysql_init(). -
Added
--libs_rand--includeoptions tomysql_config. -
New
`>prompt formysql. This prompt is similar to the'>and">prompts, but indicates that an identifier quoted with backticks was begun on an earlier line and the closing backtick has not yet been seen. -
Updated
mysql_install_dbto be able to use the local machine's IP address instead of the hostname when building the initial grant tables ifskip-name-resolvehas been specified. This option can be helpful on FreeBSD to avoid thread-safety problems with the FreeBSD resolver libraries. (Thanks to Jeremy Zawodny for the patch.) -
A documentation change: Added a note that when backing up a slave, it is necessary also to back up the
master.infoandrelay-log.infofiles, as well as anySQL_LOAD-*files located in the directory specified by the--slave-load-tmpdiroption. All these files are needed when the slave resumes replication after you restore the slave's data.
Bogues corrigés :
-
Fixed a spurious error
ERROR 14: Can't change size of file (Errcode: 2)on Windows inDELETE FROM tbl_namewithout aWHEREclause orTRUNCATE TABLE tbl_name, whentbl_nameis aMyISAMtable. (Bug#1397) -
Fixed a bug that resulted in
thr_alarm queue is fullwarnings after increasing themax_connectionsvariable withSET GLOBAL. (Bug#1435) -
Made
LOCK TABLESto work whenLock_tables_privis granted on the database level andSelect_privis granted on the table level. -
Fixed crash of
FLUSH QUERY CACHEon queries that use same table several times (Bug#988). -
Fixed core dump bug when setting an enum system variable (such as
SQL_WARNINGS) toNULL. -
Extended the default timeout value for Windows clients from 30 seconds to 1 year. (The timeout that was added in MySQL 4.0.15 was way too short). This fixes a bug that caused
ERROR 2013: Lost connection to MySQL server during queryfor queries that lasted longer than 30 seconds, if the client didn't specify a limit withmysql_options(). Users of 4.0.15 on Windows should upgrade to avoid this problem. -
More ``out of memory'' checking in range optimizer.
-
Fixed and documented a problem when setting and using a user variable within the same
SELECTstatement. (Bug#1194). -
Fixed bug in overrun check for
BLOBvalues with compressed tables. This was a bug introduced in 4.0.14. It caused MySQL to regard some correct tables containingBLOBvalues as corrupted. (Bug#770, Bug#1304, and maybe Bug#1295) -
SHOW GRANTSshowedUSAGEinstead of the real column-level privileges when no table-level privileges were given. -
When copying a database from the master,
LOAD DATA FROM MASTERdropped the corresponding database on the slave, thus erroneously dropping tables that had no counterpart on the master and tables that may have been excluded from replication usingreplicate-*-tablerules. NowLOAD DATA FROM MASTERno longer drops the database. Instead, it drops only the tables that have a counterpart on the master and that match thereplicate-*-tablerules.replicate-*-dbrules can still be used to include or exclude a database as a whole fromLOAD DATA FROM MASTER. A database will also be included or excluded as a whole if there are some rules likereplicate-wild-do-table=db1.%orreplicate-wild-ignore-table=db1.%, as is already the case forCREATE DATABASEandDROP DATABASEin replication. (Bug#1248) -
Fixed a bug where
mysqlbinlogcrashed with a segmentation fault when used with the-hor--hostoption. (Bug#1258) -
Fixed a bug where
mysqlbinlogcrashed with a segmentation fault when used on a binary log containing only final events forLOAD DATA. (Bug#1340) -
mysqlbinlogwill not reuse temporary file names from previous runs. Previouslymysqlbinlogfailed if was used several times on the same binary log file that contained aLOAD DATAcommand. -
Fixed compilation problem when compiling with OpenSSL 0.9.7 with disabled old DES support (If
OPENSSL_DISABLE_OLD_DES_SUPPORToption was enabled). -
Fixed a bug when two (or more) MySQL servers were running on the same machine, and they were both slaves, and at least one of them was replicating some
LOAD DATA INFILEcommand from its master. The bug was that one slave MySQL server sometimes deleted theSQL_LOAD-*files (used for replication ofLOAD DATA INFILEand located in theslave-load-tmpdirdirectory, which defaults totmpdir) belonging to the other slave MySQL server of this machine, if these slaves had the sameslave-load-tmpdirdirectory. When that happened, the other slave could not replicateLOAD DATA INFILEand complained about not being able to open someSQL_LOAD-*file. (Bug#1357) -
If
LOAD DATA INFILEfailed for a small file, the master forgot to write a marker (aDelete_fileevent) in its binary log, so the slave could not delete 2 files (SQL_LOAD-*.infoandSQL_LOAD-*.datafrom itstmpdir. (Bug#1391) -
On Windows, the slave forgot to delete a
SQL_LOAD-*.infofile fromtmpdirafter successfully replicating aLOAD DATA INFILEcommand. (Bug#1392) -
When a connection terminates, MySQL writes
DROP TEMPORARY TABLEstatements to the binary log for all temporary tables which the connection had not explicitly dropped. MySQL forgot to use backticks to quote the database and table names in the statement. (Bug#1345) -
On some 64-bit machines (some HP-UX and Solaris machines), a slave installed with the 64-bit MySQL binary could not connect to its master (it connected to itself instead). (Bug#1256, Bug#1381)
-
Code was introduced in MySQL 4.0.15 for the slave to detect that the master had died while writing a transaction to its binary log. This code reported an error in a legal situation: When the slave I/O thread was stopped while copying a transaction to the relay log, the slave SQL thread would later pretend that it found an unfinished transaction. (Bug#1475)
IMPORTANT:
If you are using this release on Windows, you should upgrade at least your clients (any program that uses libmysql.lib) to 4.0.16 or above. This is because the 4.0.15 release had a bug in the Windows client library that causes Windows clients using the library to die with a Lost connection to MySQL server during query error for queries that take more than 30 seconds. This problem is specific to Windows; clients on other platforms are unaffected.
Fonctionnalité ajoutée ou modifiée :
-
mysqldumpnow correctly quotes all identifiers when communicating with the server. This assures that during the dump process,mysqldumpwill never send queries to the server that result in a syntax error. This problem is not related to themysqldumpprogram's output, which was not changed. (Bug#1148) -
Change result set metadata information so that
MIN()andMAX()report that they can returnNULL(this is true because an empty set will returnNULL). (Bug#324) -
Produce an error message on Windows if a second
mysqldserver is started on the same TCP/IP port as an already runningmysqldserver. -
The
mysqldserver variableswait_timeout,net_read_timeout, andnet_write_timeoutnow work on Windows. One can now also set timeouts for read and writes in Windows clients withmysql_options(). -
Added option
--sql-mode=NO_DIR_IN_CREATEto make it possible for slaves to ignoreINDEX DIRECTORYandDATA DIRECTORYoptions given toCREATE TABLE. When this is mode is on,SHOW CREATE TABLEwill not show the given directories. -
SHOW CREATE TABLEnow shows theINDEX DIRECTORYandDATA DIRECTORYoptions, if they were specified when the table was created. -
The
open_files_limitserver variable now shows the real open files limit. -
MATCH ... AGAINST()in natural language mode now treats words that are present in more than 2,000,000 rows as stopwords. -
The Mac OS X installation disk images now include an additional
MySQLStartupItem.pkgpackage that enables the automatic startup of MySQL on system bootup. See Section 2.2.13, « Installer MySQL sur Mac OS X ». -
Most of the documentation included in the binary tarball distributions (
.tar.gz) has been moved into a subdirectorydocs. See Section 2.1.5, « Dispositions d'installation ». -
The manual is now included as an additional
infofile in the binary distributions. (Bug#1019) -
The binary distributions now include the embedded server library (
libmysqld.a) by default. Due to a linking problem with non-gcc compilers, it was not included in all packages of the initial 4.0.15 release. The affected packages were rebuilt and released as 4.0.15a. See Section 1.3.1.2, « MySQL Server intégré (embedded) ». -
MySQL can now use range optimization for
BETWEENwith non-constant limits. (Bug#991) -
Replication error messages now include the default database, so that users can check which database the failing query was run for.
-
A documentation change: Added a paragraph about how the
binlog-do-dbandbinlog-ignore-dboptions are tested against the database on the master (see Section 5.9.4, « Le log binaire »), and a paragraph about howreplicate-do-db,replicate-do-tableand analogous options are tested against the database and tables on the slave (see Section 6.8, « Options de démarrage de la réplication »). -
Now the slave does not replicate
SET PASSWORDif it is configured to exclude themysqldatabase from replication (using for examplereplicate-wild-ignore-table=mysql.%). This was already the case forGRANTandREVOKEsince version 4.0.13 (though there was Bug#980 in 4.0.13 & 4.0.14, which has been fixed in 4.0.15). -
Rewrote the information shown in the
Statecolumn ofSHOW PROCESSLISTfor replication threads and forMASTER_POS_WAIT()and added the most common states for these threads to the documentation, see Section 6.3, « Détails d'implémentation de la réplication ». -
Added a test in replication to detect the case where the master died in the middle of writing a transaction to the binlog; such unfinished transactions now trigger an error message on the slave.
-
A
GRANTcommand that creates an anonymous user (that is, an account with an empty username) no longer requiresFLUSH PRIVILEGESfor the account to be recognized by the server. (Bug#473) -
CHANGE MASTERnow flushesrelay-log.info. Previously this was deferred to the next run ofSTART SLAVE, so ifmysqldwas shutdown on the slave afterCHANGE MASTERwithout having runSTART SLAVE, the relay log's name and position were lost. At restart they were reloaded fromrelay-log.info, thus reverting to their old (incorrect) values from beforeCHANGE MASTERand leading to error messages (as the old relay log did not exist any more) and the slave threads refusing to start. (Bug#858)
Bogues corrigés :
-
Fixed buffer overflow in password handling which could potentially be exploited by MySQL users with
ALTERprivilege on themysql.usertable to execute random code or to gain shell access with the UID of the mysqld process (thanks to Jedi/Sector One for spotting and reporting this bug). -
Fixed server crash on
FORCE INDEXin a query that contained "Range checked for each record" in theEXPLAINoutput. (Bug#1172) -
Fixed table/column grant handling - proper sort order (from most specific to less specific, see Section 5.5.6, « Contrôle d'accès, étape 2 : Vérification de la requête ») was not honored. (Bug#928)
-
Fixed rare bug in MYISAM introduced in 4.0.3 where the index file header was not updated directly after an
UPDATEof split dynamic rows. The symptom was that the table had a corrupted delete-link if mysqld was shut down or the table was checked directly after the update. -
Fixed
Can't unlock fileerror when runningmyisamchk --sort-indexon Windows. (Bug#1119) -
Fixed possible deadlock when changing
key_buffer_sizewhile the key cache was actively used. (Bug#1088) -
Fixed overflow bug in
MyISAMandISAMwhen a row is updated in a table with a large number of columns and at least oneBLOB/TEXTcolumn. -
Fixed incorrect result when doing
UNIONandLIMIT #,#when one didn't use braces around theSELECTparts. -
Fixed incorrect result when doing
UNIONandORDER BY .. LIMIT #when one didn't use braces around theSELECTparts. -
Fixed problem with
SELECT SQL_CALC_FOUND_ROWS ... UNION ALL ... LIMIT #whereFOUND_ROWS()returned incorrect number of rows. -
Fixed unlikely stack bug when having a BIG expression of type
1+1-1+1-1...in certain combinations. (Bug#871) -
Fixed the bug that sometimes prevented a table with a
FULLTEXTindex from being marked as "analyzed". -
Fixed MySQL so that the column length (in C API) for the second column in
SHOW CREATE TABLEis always larger than the data length. The only known application that was affected by the old behavior was Borland dbExpress, which truncated the output from the command. (Bug#1064) -
Fixed crash in comparisons of strings using the
tis620character set. (Bug#1116) -
Fixed
ISAMbug inMAX()optimization. -
myisamchk --sort-records=Nno longer marks table as crashed if sorting failed because of an inappropriate key. (Bug#892) -
Fixed a minor bug in
MyISAMcompressed table handling that sometimes made it impossible to repair compressed table in "Repair by sort" mode. "Repair with keycache" (myisamchk --safe-recover) worked, though. (Bug#1015) -
Fixed bug in propagating the version number to the manual included in the distribution files. (Bug#1020)
-
Fixed key sorting problem (a
PRIMARYkey declared for a column that is not explicitly markedNOT NULLwas sorted after aUNIQUEkey for aNOT NULLcolumn). -
Fixed the result of
INTERVALwhen applied to aDATEvalue. (Bug#792) -
Fixed compiling of the embedded server library in the RPM spec file. (Bug#959)
-
Added some missing files to the RPM spec file and fixed some RPM building errors that occurred on Red Hat Linux 9. (Bug#998)
-
Fixed incorrect
XORevaluation inWHEREclause. (Bug#992) -
Fixed bug with processing in query cache merged tables constructed from more then 255 tables. (Bug#930)
-
Fixed incorrect results from outer join query (e.g.
LEFT JOIN) whenONcondition is always false, and range search in used. (Bug#926) -
Fixed a bug causing incorrect results from
MATCH ... AGAINST()in some joins. (Bug#942) -
MERGEtables do not ignore "Using index" (fromEXPLAINoutput) anymore. -
Fixed a bug that prevented an empty table from being marked as "analyzed". (Bug#937)
-
Fixed
myisamchk --sort-recordscrash when used on compressed table. -
Fixed slow (as compared to 3.23)
ALTER TABLEand related commands such asCREATE INDEX. (Bug#712) -
Fixed segmentation fault resulting from
LOAD DATA FROM MASTERwhen the master was running without the--log-binoption. (Bug#934) -
Fixed a security bug: A server compiled without SSL support still allowed connections by users that had the
REQUIRE SSLoption specified for their accounts. -
Fixed a random bug: Sometimes the slave would replicate
GRANTorREVOKEqueries even if it was configured to exclude themysqldatabase from replication (for example, usingreplicate-wild-ignore-table=mysql.%). (Bug#980) -
The
Last_ErrnoandLast_Errorfields in the output ofSHOW SLAVE STATUSare now cleared byCHANGE MASTERand when the slave SQL thread starts. (Bug#986) -
A documentation mistake: It said that
RESET SLAVEdoes not change connection information (master host, port, user, and password), whereas it does. The statement resets these to the startup options (master-hostetc) if there were some. (Bug#985) -
SHOW SLAVE STATUSnow shows correct information (master host, port, user, and password) afterRESET SLAVE(that is, it shows the new values, which are copied from the startup options if there were some). (Bug#985) -
Disabled propagation of the original master's log position for events because this caused unexpected values for
Exec_Master_Log_Posand problems withMASTER_POS_WAIT()in A->B->C replication setup. (Bug#1086) -
Fixed a segfault in
mysqlbinlogwhen--position=xwas used withxbeing between aCreate_fileevent and its fellowAppend_block,Exec_loadorDelete_fileevents. (Bug#1091) -
mysqlbinlogprinted superfluous warnings when using--database, which caused syntax errors when piped tomysql. (Bug#1092) -
Made
mysqlbinlog --databasefilterLOAD DATA INFILEtoo (previously, it filtered all queries exceptLOAD DATA INFILE). (Bug#1093) -
mysqlbinlogin some cases forgot to put a leading'#'in front of the originalLOAD DATA INFILE(this command is displayed only for information, not to be run; it is later reworked toLOAD DATA LOCALwith a different filename, for execution bymysql). (Bug#1096) -
binlog-do-dbandbinlog-ignore-dbincorrectly filteredLOAD DATA INFILE(it was half-written to the binary log). This resulted in a corrupted binary log, which could cause the slave to stop with an error. (Bug#1100) -
When, in a transaction, a transactional table (such as an
InnoDBtable) was updated, and later in the same transaction a non-transactional table (such as aMyISAMtable) was updated using the updated content of the transactional table (withINSERT ... SELECTfor example), the queries were written to the binary log in an incorrect order. (Bug#873) -
When, in a transaction,
INSERT ... SELECTupdated a non-transactional table, andROLLBACKwas issued, no error was returned to the client. Now the client is warned that some changes could not be rolled back, as this was already the case for normalINSERT. (Bug#1113) -
Fixed a potential bug: When
STOP SLAVEwas run while the slave SQL thread was in the middle of a transaction, and thenCHANGE MASTERwas used to point the slave to some non-transactional statement, the slave SQL thread could get confused (because it would still think, from the past, that it was in a transaction).
Fonctionnalité ajoutée ou modifiée :
-
Added
default_week_formatsystem variable. The value is used as the default mode for theWEEK()function. -
mysqldnow reads an additional option file group having a name corresponding to the server's release series:[mysqld-4.0]for 4.0.x servers,[mysqld-4.1]for 4.1.x servers, and so forth. This allows options to be specified on a series-specific basis. -
The
CONCAT_WS()function no longer skips empty strings. (Bug#586). -
InnoDBnow supports indexing a prefix of a column. This means, in particular, thatBLOBandTEXTcolumns can be indexed inInnoDBtables, which was not possible before. -
A documentation change: Function
INTERVAL(NULL, ...)returns-1. -
Enabled
INSERTfromSELECTwhen the table into which the records are inserted is also a table listed in theSELECT. -
Allow
CREATE TABLEandINSERTfrom anyUNION. -
The
SQL_CALC_FOUND_ROWSoption now always returns the total number of rows for anyUNION. -
Removed
--tableoption frommysqlbinlogto avoid repeatingmysqldumpfunctionality. -
Comment lines in option files can now start from the middle of a line, too (like
basedir=c:\mysql # installation directory). -
Changed optimizer slightly to prefer index lookups over full table scans in some boundary cases.
-
Added thread-specific
max_seeks_for_keyvariable that can be used to force the optimizer to use keys instead of table scans even if the cardinality of the index is low. -
Added optimization that converts
LEFT JOINto normal join in some cases. -
A documentation change: added a paragraph about failover in replication (how to use a surviving slave as the new master, how to resume to the original setup). See Section 6.9, « FAQ de la réplication ».
-
A documentation change: added warning notes about safe use of the
CHANGE MASTERcommand. See Section 13.6.2.1, «CHANGE MASTER TO». -
MySQL now issues a warning (not an error, as in 4.0.13) when it opens a table that was created with MySQL 4.1.
-
Added
--niceoption tomysqld_safeto allow setting the niceness of themysqldprocess. (Thanks to Christian Hammers for providing the initial patch.) (Bug#627) -
Added
--read-onlyoption to causemysqldto allow no updates except from slave threads or from users with theSUPERprivilege. (Original patch from Markus Benning). -
SHOW BINLOG EVENTS FROM xwherexis less than 4 now silently convertsxto 4 instead of printing an error. The same change was done forCHANGE MASTER TO MASTER_LOG_POS=xandCHANGE MASTER TO RELAY_LOG_POS=x. -
mysqldnow only adds an interrupt handler for theSIGINTsignal if you start it with the new--gdboption. This is because some MySQL users encountered strange problems when they accidentally sentSIGINTtomysqldthreads. -
RESET SLAVEnow clears theLast_ErrnoandLast_Errorfields in the output ofSHOW SLAVE STATUS. -
Added
max_relay_log_sizevariable; the relay log will be rotated automatically when its size exceedsmax_relay_log_size. But ifmax_relay_log_sizeis 0 (the default),max_binlog_sizewill be used (as in older versions).max_binlog_sizestill applies to binary logs in any case. -
FLUSH LOGSnow rotates relay logs in addition to the other types of logs it already rotated.
Bogues corrigés :
-
Comparison/sorting for
latin1_decharacter set was rewritten. The old algorithm could not handle cases like"sä" > "ßa". See Section 5.8.1.1, « Jeu de caractères allemand ». In rare cases it resulted in table corruption. -
Fixed a problem with the password prompt on Windows. (Bug#683)
-
ALTER TABLE ... UNION=(...)forMERGEtable is now allowed even if some underlyingMyISAMtables are read-only. (Bug#702) -
Fixed a problem with
CREATE TABLE t1 SELECT x'41'. (Bug#801) -
Removed some incorrect lock warnings from the error log.
-
Fixed memory overrun when doing
REPAIR TABLEon a table with a multiple-part auto_increment key where one part was a packedCHAR. -
Fixed a probable race condition in the replication code that could potentially lead to
INSERTstatements not being replicated in the event of aFLUSH LOGScommand or when the binary log exceedsmax_binlog_size. (Bug#791) -
Fixed a crashing bug in
INTERVALandGROUP BYorDISTINCT. (Bug#807) -
Fixed bug in
mysqlhotcopyso it actually aborts for unsuccessful table copying operations. Fixed another bug so that it succeeds when there are thousands of tables to copy. (Bug#812) -
Fixed problem with
mysqlhotcopyfailing to read options from option files. (Bug#808) -
Fixed bugs in optimizer that sometimes prevented MySQL from using
FULLTEXTindexes even though it was possible (for example, inSELECT * FROM t1 WHERE MATCH a,b AGAINST("index") > 0). -
Fixed a bug with ``table is full'' in
UNIONoperations. -
Fixed a security problem that enabled users with no privileges to obtain information on the list of existing databases by using
SHOW TABLESand similar commands. -
Fixed a stack problem on UnixWare/OpenUnix.
-
Fixed a configuration problem on UnixWare/OpenUNIX and OpenServer.
-
Fixed a stack overflow problem in password verification.
-
Fixed a problem with
max_user_connections. -
HANDLERwithout an index now works properly when a table has deleted rows. (Bug#787) -
Fixed a bug with
LOAD DATAinmysqlbinlog. (Bug#670) -
Fixed that
SET CHARACTER SET DEFAULTworks. (Bug#462) -
Fixed
MERGEtable behavior inORDER BY ... DESCqueries. (Bug#515) -
Fixed server crash on
PURGE MASTER LOGSorSHOW MASTER LOGSwhen the binary log is off. (Bug#733) -
Fixed password-checking problem on Windows. (Bug#464)
-
Fixed the bug in comparison of a
DATETIMEcolumn and an integer constant. (Bug#504) -
Fixed remote mode of
mysqlbinlog. (Bug#672) -
Fixed
ERROR 1105: Unknown errorthat occurred for someSELECTqueries, where a column that was declared asNOT NULLwas compared with an expression that tookNULLvalue. -
Changed timeout in
mysql_real_connect()to usepoll()instead ofselect()to work around problem with many open files in the client. -
Fixed incorrect results from
MATCH ... AGAINSTused with aLEFT JOINquery. -
Fixed a bug that limited the maximum value for
mysqldvariables to 4294967295 when they are specified on the command line. -
Fixed a bug that sometimes caused spurious ``Access denied'' errors in
HANDLER ... READstatements, when a table is referenced via an alias. -
Fixed portability problem with
safe_malloc, which caused MySQL to give "Freeing wrong aligned pointer" errors on SCO 3.2. -
ALTER TABLE ... ENABLE/DISABLE KEYScould cause a core dump when done after anINSERT DELAYEDstatement on the same table. -
Fixed problem with conversion of localtime to GMT where some times resulted in different (but correct) timestamps. Now MySQL should use the smallest possible timestamp value in this case. (Bug#316)
-
Very small query cache sizes could crash
mysqld. (Bug#549) -
Fixed a bug (accidentally introduced by us but present only in version 4.0.13) that made
INSERT ... SELECTinto anAUTO_INCREMENTcolumn not replicate well. This bug is in the master, not in the slave. (Bug#490) -
Fixed a bug : When an
INSERT ... SELECTstatement inserted rows into a non-transactional table, but failed at some point (for example, due to a ``Duplicate key'' error), the query was not written to the binary log. Now it is written to the binary log, with its error code, as all other queries are. About theslave-skip-errorsoption for how to handle partially completed queries in the slave, see Section 6.8, « Options de démarrage de la réplication ». (Bug#491) -
SET FOREIGN_KEY_CHECKS=0was not replicated properly. The fix probably will not be backported to 3.23. -
On a slave,
LOAD DATA INFILEwhich had noIGNOREorREPLACEclause on the master, was replicated withIGNORE. While this is not a problem if the master and slave data are identical (aLOADthat produces no duplicate conflicts on the master will produce none on the slave anyway), which is true in normal operation, it is better for debugging not to silently add theIGNORE. That way, you can get an error message on the slave and discover that for some reason, the data on master and slave are different and investigate why. (Bug#571) -
On a slave,
LOAD DATA INFILEprinted an incomplete ``Duplicate entry '%-.64s' for key %d''' message (the key name and value were not mentioned) in case of duplicate conflict (which does not happen in normal operation). (Bug#573) -
When using a slave compiled with
--debug,CHANGE MASTER TO RELAY_LOG_POScould cause a debug assertion failure. (Bug#576) -
When doing a
LOCK TABLES WRITEon anInnoDBtable, commit could not happen, if the query was not written to the binary log (for example, if--log-binwas not used, orbinlog-ignore-dbwas used). (Bug#578) -
If a 3.23 master had open temporary tables that had been replicated to a 4.0 slave, and the binary log got rotated, these temporary tables were immediately dropped by the slave (which caused problems if the master used them subsequently). This bug had been fixed in 4.0.13, but in a manner which caused an unlikely inconvenience: If the 3.23 master died brutally (power failure), without having enough time to automatically write
DROP TABLEstatements to its binary log, then the 4.0.13 slave would not notice the temporary tables have to be dropped, until the slavemysqldserver is restarted. This minor inconvenience is fixed in 3.23.57 and 4.0.14 (meaning the master must be upgraded to 3.23.57 and the slave to 4.0.14 to remove the inconvenience). (Bug#254) -
If
MASTER_POS_WAIT()was waiting, and the slave was idle, and the slave SQL thread terminated,MASTER_POS_WAIT()would wait forever. Now when the slave SQL thread terminates,MASTER_POS_WAIT()immediately returnsNULL(``slave stopped''). (Bug#651) -
After
RESET SLAVE; START SLAVE;, theRelay_Log_Spacevalue displayed bySHOW SLAVE STATUSwas too big by four bytes. (Bug#763) -
If a query was ignored on the slave (because of
replicate-ignore-tableand other similar rules), the slave still checked if the query got the same error code (0, no error) as on the master. So if the master had an error on the query (for example, ``Duplicate entry'' in a multiple-row insert), then the slave stopped and warned that the error codes didn't match. (Bug#797)
Fonctionnalité ajoutée ou modifiée :
-
PRIMARY KEYnow impliesNOT NULL. (Bug#390) -
The Windows binary packages are now compiled with
--enable-local-infileto match the Unix build configuration. -
Removed timing of tests from
mysql-test-run.timedoes not accept all required parameters on many platforms (for example, QNX) and timing the tests is not really required (it's not a benchmark anyway). -
SHOW MASTER STATUSandSHOW SLAVE STATUSrequired theSUPERprivilege; now they acceptREPLICATION CLIENTas well. (Bug#343) -
Added multi-threaded
MyISAMrepair optimization andmyisam_repair_threadsvariable to enable it. See Section 5.2.3, « Variables serveur système ». -
Added
innodb_max_dirty_pages_pctvariable which controls amount of dirty pages allowed inInnoDBbuffer pool. -
CURRENT_USER()andAccess deniederror messages now report the hostname exactly as it was specified in theGRANTcommand. -
Removed benchmark results from the source and binary distributions. They are still available in the BK source tree, though.
-
InnoDBtables now supportANALYZE TABLE. -
MySQL now issues an error when it opens a table that was created with MySQL 4.1.
-
Option
--newnow changes binary items (0xFFDF) to be treated as binary strings instead of numbers by default. This fixes some problems with character sets where it's convenient to input the string as a binary item. After this change you have to convert the binary string toINTEGERwith aCASTif you want to compare two binary items with each other and know which one is bigger than the other.SELECT CAST(0xfeff AS UNSIGNED) < CAST(0xff AS UNSIGNED). This will be the default behavior in MySQL 4.1. (Bug#152) -
Enabled
delayed_insert_timeouton Linux (most modernglibclibraries have a fixedpthread_cond_timedwait()). (Bug#211) -
Don't create more insert delayed threads than given by
max_delayed_threads. (Bug#211) -
Changed
UPDATE ... LIMITto apply the limit to rows that were matched, whether or not they actually were changed. Previously the limit was applied as a restriction on the number of rows changed. -
Tuned optimizer to favor clustered index over table scan.
-
BIT_AND()andBIT_OR()now return an unsigned 64-bit value. -
Added warnings to error log of why a secure connection failed (when running with
--log-warnings). -
Deprecated options
--skip-symlinkand--use-symbolic-linksand replaced these with--symbolic-links. -
The default option for
innodb_flush_log_at_trx_commitwas changed from 0 to 1 to makeInnoDBtables ACID by default. See Section 15.5, « Options de démarrageInnoDB». -
Added a feature to
SHOW KEYSto display keys that are disabled byALTER TABLE DISABLE KEYScommand. -
When using a non-existing table type with
CREATE TABLE, first try if the default table type exists before falling back toMyISAM. -
Added
MEMORYas an alias forHEAP. -
Renamed function
rndtomy_rndas the name was too generic and is an exported symbol inlibmysqlclient(thanks to Dennis Haney for the initial patch). -
Portability fix: renamed
include/dbug.htoinclude/my_dbug.h. -
mysqldumpno longer silently deletes the binary logs when invoked with the--master-dataor--first-slaveoption; while this behavior was convenient for some users, others may suffer from it. Now you must explicitly ask for binary logs to be deleted by using the new--delete-master-logsoption. -
If the slave is configured (using for example
replicate-wild-ignore-table=mysql.%) to excludemysql.user,mysql.host,mysql.db,mysql.tables_privandmysql.columns_privfrom replication, thenGRANTandREVOKEwill not be replicated.
Bogues corrigés :
-
Logged
Access deniederror message had incorrectUsing passwordvalue. (Bug#398) -
Fixed bug with
NATURAL LEFT JOIN,NATURAL RIGHT JOINandRIGHT JOINwhen using many joined tables. The problem was that theJOINmethod was not always associated with the tables surrounding theJOINmethod. If you have a query that uses manyRIGHT JOINorNATURAL ... JOINSyou should verify that they work as you expected after upgrading MySQL to this version. (Bug#291) -
Fixed
mysqlparser not to erroneously interpret ‘'’ or ‘"’ characters within/* ... */comment as beginning a quoted string. -
mysqlcommand line client no longer looks for\*commands inside backtick-quoted strings. -
Fixed
Unknown errorwhen usingUPDATE ... LIMIT. (Bug#373) -
Fixed problem with ANSI mode and
GROUP BYwith constants. (Bug#387) -
Fixed bug with
UNIONandOUTER JOIN. (Bug#386) -
Fixed bug if one used a multiple-table
UPDATEand the query required a temporary table bigger thantmp_table_size. (Bug#286) -
Run
mysql_install_dbwith the-IN-RPMoption for the Mac OS X installation to not fail on systems with improperly configured hostname configurations. -
LOAD DATA INFILEwill now read000000as a zero date instead as"2000-00-00". -
Fixed bug that caused
DELETE FROM table WHERE const_expressionalways to delete the whole table (even if expression result was false). (Bug#355) -
Fixed core dump bug when using
FORMAT('nan',#). (Bug#284) -
Fixed name resolution bug with
HAVING ... COUNT(DISTINCT ...). -
Fixed incorrect result from truncation operator (
*) inMATCH ... AGAINST()in some complex joins. -
Fixed a crash in
REPAIR ... USE_FRMcommand, when used on read-only, nonexisting table or a table with a crashed index file. -
Fixed a crashing bug in
mysqlmonitor program. It occurred if program was started with--no-defaults, with a prompt that contained the hostname and a connection to a non-existent database was requested. -
Fixed problem when comparing a key for a multi-byte character set. (Bug#152)
-
Fixed bug in
LEFT,RIGHTandMIDwhen used with multi-byte character sets and someGROUP BYqueries. (Bug#314) -
Fix problem with
ORDER BYbeing discarded for someDISTINCTqueries. (Bug#275) -
Fixed that
SET SQL_BIG_SELECTS=1works as documented (This corrects a new bug introduced in 4.0) -
Fixed some serious bugs in
UPDATE ... ORDER BY. (Bug#241) -
Fixed unlikely problem in optimizing
WHEREclause with constant expression like inWHERE 1 AND (a=1 AND b=1). -
Fixed that
SET SQL_BIG_SELECTS=1works again. -
Introduced proper backtick quoting for db.table in
SHOW GRANTS. -
FULLTEXTindex stopped working afterALTER TABLEthat convertsTEXTcolumn toCHAR. (Bug#283) -
Fixed a security problem with
SELECTand wildcarded select list, when user only had partial columnSELECTprivileges on the table. -
Mark a
MyISAMtable as "analyzed" only when all the keys are indeed analyzed. -
Only ignore world-writable
my.cnffiles that are regular files (and not, for example, named pipes or character devices). -
Fixed few smaller issues with
SET PASSWORD. -
Fixed error message which contained deprecated text.
-
Fixed a bug with two
NATURAL JOINs in the query. -
SUM()didn't returnNULLwhen there was no rows in result or when all values wasNULL. -
On Unix symbolic links handling was not enabled by default and there was no way to turn this on.
-
Added missing dashes to parameter
--open-files-limitinmysqld_safe. (Bug#264) -
Fixed incorrect hostname for TCP/IP connections displayed in
SHOW PROCESSLIST. -
Fixed a bug with
NANinFORMAT(...)function ... -
Fixed a bug with improperly cached database privileges.
-
Fixed a bug in
ALTER TABLE ENABLE / DISABLE KEYSwhich failed to force a refresh of table data in the cache. -
Fixed bugs in replication of
LOAD DATA INFILEfor custom parameters (ENCLOSED,TERMINATEDand so on) and temporary tables. (Bug#183, Bug#222) -
Fixed a replication bug when the master is 3.23 and the slave 4.0: the slave lost the replicated temporary tables if
FLUSH LOGSwas issued on the master. (Bug#254) -
Fixed a bug when doing
LOAD DATA INFILE IGNORE: When reading the binary log,mysqlbinlogand the replication code readREPLACEinstead ofIGNORE. This could make the slave's table become different from the master's table. (Bug#218) -
Fixed a deadlock when
relay_log_space_limitwas set to a too small value. (Bug#79) -
Fixed a bug in HAVING clause when an alias is used from the select list.
-
Fixed overflow bug in
MyISAMwhen a row is inserted into a table with a large number of columns and at least oneBLOB/TEXTcolumn. Bug was caused by incorrect calculation of the needed buffer to pack data. -
Fixed a bug when
SELECT@nonexistent_variable caused the error in client - server protocol due to net_printf() being sent to the client twice. -
Fixed a bug in setting
SQL_BIG_SELECTSoption. -
Fixed a bug in
SHOW PROCESSLISTwhich only displayed a localhost in the"Host"column. This was caused by a glitch that used only current thread information instead of information from the linked list of threads. -
Removed unnecessary Mac OS X helper files from server RPM. (Bug#144)
-
Allow optimization of multiple-table update for
InnoDBtables as well. -
Fixed a bug in multiple-table updates that caused some rows to be updated several times.
-
Fixed a bug in
mysqldumpwhen it was called with--master-data: theCHANGE MASTER TOcommands appended to the SQL dump had incorrect coordinates. (Bug#159) -
Fixed a bug when an updating query using
USER()was replicated on the slave; this caused segfault on the slave. (Bug#178).USER()is still badly replicated on the slave (it is replicated to"").
Fonctionnalité ajoutée ou modifiée :
-
mysqldno longer reads options from world-writeable config files. -
Integer values between 9223372036854775807 and 9999999999999999999 are now regarded as unsigned longlongs, not as floats. This makes these values work similar to values between 10000000000000000000 and 18446744073709551615.
-
SHOW PROCESSLISTwill now include the client TCP port after the hostname to make it easier to know from which client the request originated.
Bogues corrigés :
-
Fixed
mysqldcrash on extremely small values ofsort_buffervariable. -
INSERT INTO u SELECT ... FROM twas written too late to the binary log if t was very frequently updated during the execution of this query. This could cause a problem withmysqlbinlogor replication. The master must be upgraded, not the slave. (Bug#136) -
Fixed checking of random part of
WHEREclause. (Bug#142) -
Fixed a bug with multiple-table updates with
InnoDBtables. This bug occurred as, in many cases,InnoDBtables cannot be updated ``on the fly,'' but offsets to the records have to be stored in a temporary table. -
Added missing file
mysql_secure_installationto theserverRPM subpackage. (Bug#141) -
Fixed MySQL (and
myisamchk) crash on artificially corrupted.MYIfiles. -
Don't allow
BACKUP TABLEto overwrite existing files. -
Fixed a bug with multiple-table
UPDATEstatements when user had all privileges on the database where tables are located and there were any entries intables_privtable, that is,grant_optionwas true. -
Fixed a bug that allowed a user with table or column grants on some table,
TRUNCATEany table in the same database. -
Fixed deadlock when doing
LOCK TABLEfollowed byDROP TABLEin the same thread. In this case one could still kill the thread withKILL. -
LOAD DATA LOCAL INFILEwas not properly written to the binary log (hence not properly replicated). (Bug#82) -
RAND()entries were not read correctly bymysqlbinlogfrom the binary log which caused problems when restoring a table that was inserted withRAND().INSERT INTO t1 VALUES(RAND()). In replication this worked ok. -
SET SQL_LOG_BIN=0was ignored forINSERT DELAYEDqueries. (Bug#104) -
SHOW SLAVE STATUSreported too old positions (columnsRelay_Master_Log_FileandExec_Master_Log_Pos) for the last executed statement from the master, if this statement was theCOMMITof a transaction. The master must be upgraded for that, not the slave. (Bug#52) -
LOAD DATA INFILEwas not replicated by the slave ifreplicate_*_tablewas set on the slave. (Bug#86) -
After
RESET SLAVE, the coordinates displayed bySHOW SLAVE STATUSlooked un-reset (though they were, but only internally). (Bug#70) -
Fixed query cache invalidation on
LOAD DATA. -
Fixed memory leak on
ANALYZEprocedure with error. -
Fixed a bug in handling
CHAR(0)columns that could cause incorrect results from the query. -
Fixed rare bug with incorrect initialization of
AUTO_INCREMENTcolumn, as a secondary column in a multi-column key (see Section 3.6.9, « UtiliserAUTO_INCREMENT»), when data was inserted withINSERT ... SELECTorLOAD DATAinto an empty table. -
On Windows,
STOP SLAVEdidn't stop the slave until the slave got one new command from the master (this bug has been fixed for MySQL 4.0.11 by releasing updated 4.0.11a Windows packages, which include this individual fix on top of the 4.0.11 sources). (Bug#69) -
Fixed a crash when no database was selected and
LOAD DATAcommand was issued with full table name specified, including database prefix. -
Fixed a crash when shutting down replication on some platforms (for example, Mac OS X).
-
Fixed a portability bug with
pthread_attr_getstacksizeon HP-UX 10.20 (Patch was also included in 4.0.11a sources). -
Fixed the
biginttest to not fail on some platforms (for example, HP-UX and Tru64) due to different return values of theatof()function. -
Fixed the
rpl_rotate_logstest to not fail on certain platforms (e.g. Mac OS X) due to a too long file name (changedslave-master-info.optto.slave-mi).
Fonctionnalité ajoutée ou modifiée :
-
NULLis now sorted LAST if you useORDER BY ... DESC(as it was before MySQL 4.0.2). This change was required to comply with the SQL-99 standard. (The original change was made because we thought that SQL-99 requiredNULLto be always sorted at the same position, but this was incorrect). -
Added
START TRANSACTION(SQL-99 syntax) as alias forBEGIN. This is recommended to use instead ofBEGINto start a transaction. -
Added
OLD_PASSWORD()as a synonym forPASSWORD(). -
Allow keyword
ALLin group functions. -
Added support for some new
INNER JOINandJOINsyntaxes. For example,SELECT * FROM t1 INNER JOIN t2didn't work before. -
Novell NetWare 6.0 porting effort completed, Novell patches merged into the main source tree.
Bogues corrigés :
-
Fixed problem with multiple-table delete and
InnoDBtables. -
Fixed a problem with
BLOB NOT NULLcolumns used withIS NULL. -
Re-added missing pre- and post(un)install scripts to the Linux RPM packages (they were missing after the renaming of the server subpackage).
-
Fixed that table locks are not released with multiple-table updates and deletes with
InnoDBstorage engine. -
Fixed bug in updating
BLOBcolumns with long strings. -
Fixed integer-wraparound when giving big integer (>= 10 digits) to function that requires an unsigned argument, like
CREATE TABLE (...) AUTO_INCREMENT=#. -
MIN(key_column)could in some cases returnNULLon a column withNULLand other values. -
MIN(key_column)andMAX(key_column)could in some cases return incorrect values when used inOUTER JOIN. -
MIN(key_column)andMAX(key_column)could return incorrect values if one of the tables was empty. -
Fixed rare crash in compressed MyISAM tables with blobs.
-
Fixed bug in using aggregate functions as argument for
INTERVAL,CASE,FIELD,CONCAT_WS,ELTandMAKE_SETfunctions. -
When running with
--lower-case-table-names(default on Windows) and you had tables or databases with mixed case on disk, then executingSHOW TABLE STATUSfollowed withDROP DATABASEorDROP TABLEcould fail withErrcode 13.
Fonctionnalité ajoutée ou modifiée :
-
Added option
--log-error[=file_name]tomysqld_safeandmysqld. This option will force all error messages to be put in a log file if the option--consoleis not given. On Windows--log-erroris enabled as default, with a default name ofhost_name.errif the name is not specified. -
Changed some things from
Warning:toNote:in the log files. -
The mysqld server should now compile on NetWare.
-
Added optimization that if one does
GROUP BY ... ORDER BY NULLthen result is not sorted. -
New
--ft-stopword-filecommand-line option formysqldto replace/disable the built-in stopword list that is used in full-text searches. See Section 13.5.3.18, « Syntaxe deSHOW VARIABLES». -
Changed default stack size from 64K to 192K; This fixes a core dump problem on Red Hat 8.0 and other systems with a
glibcthat requires a stack size larger than 128K forgethostbyaddr()to resolve a hostname. You can fix this for earlier MySQL versions by startingmysqldwith--thread-stack=192K. -
Added
mysql_waitpidto the binary distribution and theMySQL-clientRPM subpackage (required formysql-test-run). -
Renamed the main MySQL RPM package to
MySQL-server. When updating from an older version,MySQL-server.rpmwill simply replaceMySQL.rpm. -
If a slave is configured with
replicate_wild_do_table=db.%orreplicate_wild_ignore_table=db.%, these rules will be applied toCREATE/DROP DATABASE, too. -
Added timeout value for
MASTER_POS_WAIT().
Bogues corrigés :
-
Fixed initialization of the random seed for newly created threads to give a better
rand()distribution from the first call. -
Fixed a bug that caused
mysqldto hang when a table was opened with theHANDLERcommand and then dropped without being closed. -
Fixed bug in logging to binary log (which affects replication) a query that inserts a
NULLin anAUTO_INCREMENTcolumn and also usesLAST_INSERT_ID(). -
Fixed an unlikely bug that could cause a memory overrun when using
ORDER BY constant_expression. -
Fixed a table corruption in
myisamchk's parallel repair mode. -
Fixed bug in query cache invalidation on simple table renaming.
-
Fixed bug in
mysqladmin --relative. -
On some 64-bit systems,
show statusreported a strange number forOpen_filesandOpen_streams. -
Fixed incorrect number of columns in
EXPLAINon empty table. -
Fixed bug in
LEFT JOINthat caused zero rows to be returned in the case theWHEREcondition was evaluated asFALSEafter readingconsttables. (Unlikely condition). -
FLUSH PRIVILEGESdidn't correctly flush table/column privileges whenmysql.tables_privis empty. -
Fixed bug in replication when using
LOAD DATA INFILEone a file that updated anAUTO_INCREMENTcolumn withNULLor0. This bug only affected MySQL 4.0 masters (not slaves or MySQL 3.23 masters). Note: If you have a slave that has replicated a file with generatedAUTO_INCREMENTcolumns then the slave data is corrupted and you should reinitialize the affected tables from the master. -
Fixed possible memory overrun when sending a
BLOBvalue larger than 16M to the client. -
Fixed incorrect error message when setting a
NOT NULLcolumn to an expression that returnedNULL. -
Fixed core dump bug in
str LIKE "%other_str%"wherestrorother_strcontained characters >= 128. -
Fixed bug: When executing on master
LOAD DATAandInnoDBfailed withtable fullerror the binary log was corrupted.
Fonctionnalité ajoutée ou modifiée :
-
OPTIMIZE TABLEwill for MyISAM tables treat allNULLvalues as different when calculating cardinality. This helps in optimizing joins between tables where one of the tables has a lot ofNULLvalues in a indexed column:SELECT * from t1,t2 where t1.a=t2.key_with_a_lot_of_null;
-
Added join operator
FORCE INDEX (key_list). This acts likesUSE INDEX (key_list)but with the addition that a table scan is assumed to be VERY expensive. One bad thing with this is that it makesFORCEa reserved word. -
Reset internal row buffer in MyISAM after each query. This will reduce memory in the case you have a lot of big blobs in a table.
Bogues corrigés :
-
A security patch in 4.0.8 causes the mysqld server to die if the remote hostname can't be resolved. This is now fixed.
-
Fixed crash when replication big
LOAD DATA INFILEstatement that caused log rotation.
Fonctionnalité ajoutée ou modifiée :
-
Default
max_packet_lengthfor libmysqld.c is now 1024*1024*1024. -
One can now specify
max_allowed_packetin a file ready bymysql_options(MYSQL_READ_DEFAULT_FILE). for clients. -
When sending a too big packet to the server with the not compressed protocol, the client now gets an error message instead of a lost connection.
-
We now send big queries/result rows in bigger hunks, which should give a small speed improvement.
-
Fixed some bugs with the compressed protocol for rows > 16M.
-
InnoDBtables now also supportON UPDATE CASCADEinFOREIGN KEYconstraints. See theInnoDBsection in the manual for theInnoDBchangelog.
Bogues corrigés :
-
Fixed bug in
ALTER TABLEwith BDB tables. -
Fixed core dump bug in
QUOTE()function. -
Fixed a bug in handling communication packets bigger than 16M. Unfortunately this required a protocol change; If you upgrade the server to 4.0.8 and above and have clients that uses packets >= 255*255*255 bytes (=16581375) you must also upgrade your clients to at least 4.0.8. If you don't upgrade, the clients will hang when sending a big packet.
-
Fixed bug when sending blobs longer than 16M to client.
-
Fixed bug in
GROUP BYwhen used on BLOB column withNULLvalues. -
Fixed a bug in handling
NULLvalues inCASE... WHEN ...
Fonctionnalité ajoutée ou modifiée :
-
mysqlbugnow also reports the compiler version used for building the binaries (if the compiler supports the option--version).
Bogues corrigés :
-
Fixed compilation problems on OpenUnix and HPUX 10.20.
-
Fixed some optimization problems when compiling MySQL with
-DBIG_TABLESon a 32-bit system. -
mysql_drop_db()didn't check permissions properly so anyone could drop another users database.DROP DATABASEis checked properly.
Fonctionnalité ajoutée ou modifiée :
-
Added syntax support for
CHARACTER SET xxxandCHARSET=xxxtable options (to be able to read table dumps from 4.1). -
Fixed replication bug that caused the slave to loose its position in some cases when the replication log was rotated.
-
Fixed that a slave will restart from the start of a transaction if it's killed in the middle of one.
-
Moved the manual pages from
mantoman/man1in the binary distributions. -
The default type returned by
IFNULL(A,B)is now set to be the more 'general' of the types ofAandB. (The order isSTRING,REALorINTEGER). -
Moved the
mysql.serverstartup script in the RPM packages from/etc/rc.d/init.d/mysqlto/etc/init.d/mysql(which almost all current Linux distributions support for LSB compliance). -
Added
Qcache_lowmem_prunesstatus variable (number of queries that were deleted from cache because of low memory). -
Fixed
mysqlcheckso it can deal with table names containing dashes. -
Bulk insert optimization (see Section 13.5.3.18, « Syntaxe de
SHOW VARIABLES») is no longer used when inserting small (less than 100) number of rows. -
Optimization added for queries like
SELECT ... FROM merge_table WHERE indexed_column=constant_expr. -
Added functions
LOCALTIMEandLOCALTIMESTAMPas synonyms forNOW(). -
CEILis now an alias forCEILING. -
The
CURRENT_USER()function can be used to get auser@hostvalue as it was matched in theGRANTsystem. See Section 12.8.4, « Fonctions diverses ». -
Fixed
CHECKconstraints to be compatible with SQL-99. This madeCHECKa reserved word. (Checking ofCHECKconstraints is still not implemented). -
Added
CAST(... as CHAR). -
Added PostgreSQL compatible
LIMITsyntax:SELECT ... LIMIT row_count OFFSET offset -
mysql_change_user()will now reset the connection to the state of a fresh connect (Ie,ROLLBACKany active transaction, close all temporary tables, reset all user variables etc..) -
CHANGE MASTERandRESET SLAVEnow require that slave threads be both already stopped; these commands will return an error if at least one of these two threads is running.
Bogues corrigés :
-
Fixed number of found rows returned in
multi table updates -
Make
--lower-case-table-namesdefault on Mac OS X as the default file system (HFS+) is case insensitive. See Section 9.2.2, « Sensibilité à la casse pour les noms ». -
Transactions in
AUTOCOMMIT=0mode didn't rotate binary log. -
A fix for the bug in a
SELECTwith joined tables withORDER BYandLIMITclause when filesort had to be used. In that caseLIMITwas applied to filesort of one of the tables, although it could not be. This fix also solved problems withLEFT JOIN. -
mysql_server_init()now makes a copy of all arguments. This fixes a problem when using the embedded server in C# program. -
Fixed buffer overrun in
libmysqlclientlibrary that allowed a malicious MySQL server to crash the client application. -
Fixed security-related bug in
mysql_change_user()handling. All users are strongly recommended to upgrade to version 4.0.6. -
Fixed bug that prevented
--chrootcommand-line option ofmysqldfrom working. -
Fixed bug in phrase operator
"..."in boolean full-text search. -
Fixed bug that caused
OPTIMIZE TABLEto corrupt the table under some rare circumstances. -
Part rewrite of multiple-table-update to optimize it, make it safer and more bug free.
-
LOCK TABLESnow works together with multiple-table-update and multiple-table-delete. -
--replicate-do=xxxdidn't work forUPDATEcommands. (Bug introduced in 4.0.0) -
Fixed shutdown problem on Mac OS X.
-
Major
InnoDBbugs inREPLACE, AUTO_INCREMENT, INSERT INTO ... SELECT ...were fixed. See theInnoDBchangelog in theInnoDBsection of the manual. -
RESET SLAVEcaused a crash if the slave threads were running.
Fonctionnalité ajoutée ou modifiée :
-
Port number was added to host name (if it is known) in
SHOW PROCESSLISTcommand -
Changed handling of last argument in
WEEK()so that one can get week number according to the ISO 8601 specification. (Old code should still work). -
Fixed that
INSERT DELAYEDthreads don't hang onWaiting for INSERTwhen one sends aSIGHUPtomysqld. -
Change that
ANDworks according to SQL-99 when it comes toNULLhandling. In practice, this only affects queries where you do something likeWHERE ... NOT (NULL AND 0). -
mysqldwill now resolvebasedirto its full path (withrealpath()). This enables one to use relative symlinks to the MySQL installation directory. This will however causeshow variablesto report different directories on systems where there is a symbolic link in the path. -
Fixed that MySQL will not use index scan on index disabled with
IGNORE INDEXorUSE INDEX. to be ignored. -
Added
--use-frmoption tomysqlcheck. When used withREPAIR, it gets the table structure from the.frmfile, so the table can be repaired even if the.MYIheader is corrupted. -
Fixed bug in
MAX()optimization when used withJOINandONexpressions. -
Added support for reading of MySQL 4.1 table definition files.
-
BETWEENbehavior changed (see Section 12.1.3, « Opérateurs de comparaison »). Nowdatetime_col BETWEEN timestamp AND timestampshould work as expected. -
One can create
TEMPORARYMERGEtables now. -
DELETE FROM myisam_tablenow shrinks not only the.MYDfile but also the.MYIfile. -
When one uses the
--open-files-limit=#option tomysqld_safeit's now passed on tomysqld. -
Changed output from
EXPLAINfrom'where used'to'Using where'to make it more in line with other output. -
Removed variable
safe_show_databaseas it was no longer used. -
Updated source tree to be built using
automake 1.5andlibtool 1.4. -
Fixed an inadvertently changed option (
--ignore-space) back to the original--ignore-spacesinmysqlclient. (Both syntaxes will work). -
Don't require
UPDATEprivilege when usingREPLACE. -
Added support for
DROP TEMPORARY TABLE ..., to be used to make replication safer. -
When transactions are enabled, all commands that update temporary tables inside a
BEGIN/COMMITare now stored in the binary log onCOMMITand not stored if one doesROLLBACK. This fixes some problems with non-transactional temporary tables used inside transactions. -
Allow braces in joins in all positions. Formerly, things like
SELECT * FROM (t2 LEFT JOIN t3 USING (a)), t1worked, but notSELECT * FROM t1, (t2 LEFT JOIN t3 USING (a)). Note that braces are simply removed, they do not change the way the join is executed. -
InnoDBnow supports also isolation levelsREAD UNCOMMITTEDandREAD COMMITTED. For a detailedInnoDBchangelog, see Section C.9, « Evolutions de InnoDB » in this manual.
Bogues corrigés :
-
Fixed bug in
MAX()optimization when used withJOINandONexpressions. -
Fixed that
INSERT DELAYthreads don't hang onWaiting for INSERTwhen one sends aSIGHUPtomysqld. -
Fixed that MySQL will not use an index scan on an index that has been disabled with
IGNORE INDEXorUSE INDEX. -
Corrected test for
rootuser inmysqld_safe. -
Fixed error message issued when storage engine cannot do
CHECKorREPAIR. -
Fixed rare core dump problem in complicated
GROUP BYqueries that didn't return any result. -
Fixed
mysqlshowto work properly with wildcarded database names and with database names that contain underscores. -
Portability fixes to get MySQL to compile cleanly with Sun Forte 5.0.
-
Fixed
MyISAMcrash when using dynamic-row tables with huge numbers of packed fields. -
Fixed query cache behavior with
BDBtransactions. -
Fixed possible floating point exception in
MATCHrelevance calculations. -
Fixed bug in full-text search
IN BOOLEAN MODEthat madeMATCHto return incorrect relevance value in some complex joins. -
Fixed a bug that limited
MyISAMkey length to a value slightly less that 500. It is exactly 500 now. -
Fixed that
GROUP BYon columns that may have aNULLvalue doesn't always use disk based temporary tables. -
The filename argument for the
--des-key-fileargument tomysqldis interpreted relative to the data directory if given as a relative pathname. -
Removed a condition that temp table with index on column that can be
NULLhas to beMyISAM. This was okay for 3.23, but not needed in 4.*. This resulted in slowdown in many queries since 4.0.2. -
Small code improvement in multiple-table updates.
-
Fixed a newly introduced bug that caused
ORDER BY ... LIMIT row_countto not return all rows. -
Fixed a bug in multiple-table deletes when outer join is used on an empty table, which gets first to be deleted.
-
Fixed a bug in multiple-table updates when a single table is updated.
-
Fixed bug that caused
REPAIR TABLEandmyisamchkto corruptFULLTEXTindexes. -
Fixed bug with caching the
mysqlgrant table database. Now queries in this database are not cached in the query cache. -
Small fix in
mysqld_safefor some shells. -
Give error if a
MyISAMMERGEtable has more than 2 ^ 32 rows and MySQL was not compiled with-DBIG_TABLES. -
Fixed some
ORDER BY ... DESCproblems withInnoDBtables.
-
Fixed bug where
GRANT/REVOKEfailed if hostname was given in non-matching case. -
Don't give warning in
LOAD DATA INFILEwhen setting atimestampto a string value of'0'. -
Fixed bug in
myisamchk -Rmode. -
Fixed bug that caused
mysqldto crash onREVOKE. -
Fixed bug in
ORDER BYwhen there is a constant in theSELECTstatement. -
One didn't get an error message if
mysqldcouldn't open the privilege tables. -
SET PASSWORD FOR ...closed the connection in case of errors (bug from 4.0.3). -
Increased max possible
max_allowed_packetinmysqldto 1 GB. -
Fixed bug when doing a multi-line
INSERTon a table with anAUTO_INCREMENTkey which was not in the first part of the key. -
Changed
LOAD DATA INFILEto not recreate index if the table had rows from before. -
Fixed overrun bug when calling
AES_DECRYPT()with incorrect arguments. -
--skip-sslcan now be used to disable SSL in the MySQL clients, even if one is using other SSL options in an option file or previously on the command line. -
Fixed bug in
MATCH ... AGAINST( ... IN BOOLEAN MODE)used withORDER BY. -
Added
LOCK TABLESandCREATE TEMPORARY TABLESprivilege on the database level. One must run themysql_fix_privilege_tablesscript on old installations to activate these. -
In
SHOW TABLE ... STATUS, compressed tables sometimes showed up asdynamic. -
SELECT @@[global|session].var_namedidn't reportglobal | sessionin the result column name. -
Fixed problem in replication that
FLUSH LOGSin a circular replication setup created an infinite number of binary log files. Now arotate-binary-logcommand in the binary log will not cause slaves to rotate logs. -
Removed
STOP EVENTfrom binary log when doingFLUSH LOGS. -
Disable the use of
SHOW NEW MASTER FOR SLAVEas this needs to be completely reworked in a future release. -
Fixed a bug with constant expression (for example, field of a one-row table, or field from a table, referenced by a
UNIQUEkey) appeared inORDER BYpart ofSELECT DISTINCT. -
--log-binary=a.b.cnow properly strips off.b.c. -
FLUSH LOGSremoved numerical extension for all future update logs. -
GRANT ... REQUIREdidn't store the SSL information in themysql.usertable if SSL was not enabled in the server. -
GRANT ... REQUIRE NONEcan now be used to remove SSL information. -
ANDis now optional betweenREQUIREoptions. -
REQUIREoption was not properly saved, which could cause strange output inSHOW GRANTS. -
Fixed that
mysqld --helpreports correct values for--datadirand--bind-address. -
Fixed that one can drop UDFs that didn't exist when
mysqldwas started. -
Fixed core dump problem with
SHOW VARIABLESon some 64-bit systems (like Solaris SPARC). -
Fixed a bug in
my_getopt();--set-variablesyntax didn't work for those options that didn't have a valid variable in themy_optionstruct. This affected at least thedefault-table-typeoption. -
Fixed a bug from 4.0.2 that caused
REPAIR TABLEandmyisamchk --recoverto fail on tables with duplicates in a unique key. -
Fixed a bug from 4.0.3 in calculating the default datatype for some functions. This affected queries of type
CREATE TABLE table_name SELECT expression(),... -
Fixed bug in queries of type
SELECT * FROM table-list GROUP BY ...andSELECT DISTINCT * FROM .... -
Fixed bug with the
--slow-logwhen logging an administrator command (likeFLUSH TABLES). -
Fixed a bug that
OPTIMIZEof locked and modified table, reported table corruption. -
Fixed a bug in
my_getopt()in handling of special prefixes (--skip-,--enable-).--skip-external-lockingdidn't work and the bug may have affected other similar options. -
Fixed bug in checking for output file name of the
teeoption. -
Added some more optimization to use index for
SELECT ... FROM many_tables .. ORDER BY key limit # -
Fixed problem in
SHOW OPEN TABLESwhen a user didn't have access permissions to one of the opened tables.
-
Fixed problem with types of user variables. (Bug#551)
-
Fixed problem with
configure ... --localstatedir=.... -
Cleaned up
mysql.serverscript. -
Fixed a bug in
mysqladmin shutdownwhen pid file was modified whilemysqladminwas still waiting for the previous one to disappear. This could happen during a very quick restart and causedmysqladminto hang untilshutdown_timeoutseconds had passed. -
Don't increment warnings when setting
AUTO_INCREMENTcolumns toNULLinLOAD DATA INFILE. -
Fixed all boolean type variables/options to work with the old syntax, for example, all of these work:
--lower-case-table-names,--lower-case-table-names=1,-O lower-case-table-names=1,--set-variable=lower-case-table-names=1 -
Fixed shutdown problem (SIGTERM signal handling) on Solaris. (Bug from 4.0.2).
-
SHOW MASTER STATUSnow returns an empty set if binary log is not enabled. -
SHOW SLAVE STATUSnow returns an empty set if slave is not initialized. -
Don't update MyISAM index file on update if not strictly necessary.
-
Fixed bug in
SELECT DISTINCT ... FROM many_tables ORDER BY not-used-column. -
Fixed a bug with
BIGINTvalues and quoted strings. -
Added
QUOTE()function that performs SQL quoting to produce values that can be used as data values in queries. -
Changed variable
DELAY_KEY_WRITEto an enum to allow one setDELAY_KEY_WRITEfor all tables without taking down the server. -
Changed behavior of
IF(condition,column,NULL)so that it returns the value of the column type. -
Made
safe_mysqlda symlink tomysqld_safein binary distribution. -
Fixed security bug when having an empty database name in the
user.dbtable. -
Fixed some problems with
CREATE TABLE ... SELECT function(). -
mysqldnow has the option--temp-poolenabled by default as this gives better performance with some operating systems. -
Fixed problem with too many allocated alarms on slave when connecting to master many times (normally not a very critical error).
-
Fixed hang in
CHANGE MASTER TOif the slave thread died very quickly. -
Big cleanup in replication code (less logging, better error messages, etc..)
-
If the
--code-fileoption is specified, the server callssetrlimit()to set the maximum allowed core file size to unlimited, so core files can be generated. -
Fixed bug in query cache after temporary table creation.
-
Added
--count=N(-c) option tomysqladmin, to make the program do onlyNiterations. To be used with--sleep(-i). Useful in scripts. -
Fixed bug in multiple-table
UPDATE: when updating a table,do_select()became confused about reading records from a cache. -
Fixed bug in multiple-table
UPDATEwhen several fields were referenced from a single table -
Fixed bug in truncating nonexisting table.
-
Fixed bug in
REVOKEthat caused user resources to be randomly set. -
Fixed bug in
GRANTfor the newCREATE TEMPORARY TABLEprivilege. -
Fixed bug in multiple-table
DELETEwhen tables are re-ordered in the table initialization method and ref_lengths are of different sizes. -
Fixed two bugs in
SELECT DISTINCTwith large tables. -
Fixed bug in query cache initialization with very small query cache size.
-
Allow
DEFAULTwithINSERTstatement. -
The startup parameters
myisam_max_sort_file_sizeandmyisam_max_extra_sort_file_sizeare now given in bytes, not megabytes. -
External system locking of
MyISAM/ISAMfiles is now turned off by default. One can turn this on with--external-locking. (For most users this is never needed). -
Fixed core dump bug with
INSERT ... SET db_name.table_name.colname=''. -
Fixed client hangup bug when using some SQL commands with incorrect syntax.
-
Fixed a timing bug in
DROP DATABASE -
New
SET [GLOBAL | SESSION]syntax to change thread-specific and global server variables at runtime. -
Added variable
slave_compressed_protocol. -
Renamed variable
query_cache_startup_typetoquery_cache_type,myisam_bulk_insert_tree_sizetobulk_insert_buffer_size,record_buffertoread_buffer_sizeandrecord_rnd_buffertoread_rnd_buffer_size. -
Renamed some SQL variables, but old names will still work until 5.0. See Section 2.6.3, « Passer de la version 3.23 à la version 4.0 ».
-
Renamed
--skip-lockingto--skip-external-locking. -
Removed unused variable
query_buffer_size. -
Fixed a bug that made the pager option in the
mysqlclient non-functional. -
Added full
AUTO_INCREMENTsupport toMERGEtables. -
Extended
LOG()function to accept an optional arbitrary base parameter. See Section 12.4.2, « Fonctions mathématiques ». -
Added
LOG2()function (useful for finding out how many bits a number would require for storage). -
Added
LN()natural logarithm function for compatibility with other databases. It is synonymous withLOG(X).
-
Cleaned up
NULLhandling for default values inDESCRIBE table_name. -
Fixed
truncate()to round up negative values to the nearest integer. -
Changed
--chroot=pathoption to executechroot()immediately after all options have been parsed. -
Don't allow database names that contain ‘
\’. -
lower_case_table_namesnow also affects database names. -
Added
XORoperator (logical and bitwiseXOR) with^as a synonym for bitwiseXOR. -
Added function
IS_FREE_LOCK("lock_name"). Based on code contributed by Hartmut Holzgraefe<hartmut@six.de>. -
Removed
mysql_ssl_clear()from C API, as it was not needed. -
DECIMALandNUMERICtypes can now read exponential numbers. -
Added
SHA1()function to calculate 160 bit hash value as described in RFC 3174 (Secure Hash Algorithm). This function can be considered a cryptographically more secure equivalent ofMD5(). See Section 12.8.4, « Fonctions diverses ». -
Added
AES_ENCRYPT()andAES_DECRYPT()functions to perform encryption according to AES standard (Rijndael). See Section 12.8.4, « Fonctions diverses ». -
Added
--single-transactionoption tomysqldump, allowing a consistent dump ofInnoDBtables. See Section 8.8, «mysqldump, sauvegarde des structures de tables et les données ». -
Fixed bug in
innodb_log_group_home_dirinSHOW VARIABLES. -
Fixed a bug in optimizer with merge tables when non-unique values are used in summing up (causing crashes).
-
Fixed a bug in optimizer when a range specified makes index grouping impossible (causing crashes).
-
Fixed a rare bug when
FULLTEXTindex is present and no tables are used. -
Added privileges
CREATE TEMPORARY TABLES,EXECUTE,LOCK TABLES,REPLICATION CLIENT,REPLICATION SLAVE,SHOW DATABASESandSUPER. To use these, you must have run themysql_fix_privilege_tablesscript after upgrading. -
Fixed query cache align data bug.
-
Fixed mutex bug in replication when reading from master fails.
-
Added missing mutex in
TRUNCATE TABLE; This fixes some core dump/hangup problems when usingTRUNCATE TABLE. -
Fixed bug in multiple-table
DELETEwhen optimizer uses only indexes. -
Fixed that
ALTER TABLE table_name RENAME new_table_nameis as fast asRENAME TABLE. -
Fixed bug in
GROUP BYwith two or more fields, where at least one field can containNULLvalues. -
Use
Turbo Boyer-Moorealgorithm to speed upLIKE "%keyword%"searches. -
Fixed bug in
DROP DATABASEwith symlink. -
Fixed crash in
REPAIR ... USE_FRM. -
Fixed bug in
EXPLAINwithLIMIT offset != 0. -
Fixed bug in phrase operator
"..."in boolean full-text search. -
Fixed bug that caused duplicated rows when using truncation operator
*in boolean full-text search. -
Fixed bug in truncation operator of boolean full-text search (incorrect results when there are only
+word*s in the query). -
Fixed bug in boolean full-text search that caused a crash when an identical
MATCHexpression that did not use an index appeared twice. -
Query cache is now automatically disabled in
mysqldump. -
Fixed problem on Windows 98 that made sending of results very slow.
-
Boolean full-text search weighting scheme changed to something more reasonable.
-
Fixed bug in boolean full-text search that caused MySQL to ignore queries of
ft_min_word_lencharacters. -
Boolean full-text search now supports ``phrase searches''.
-
New configure option
--without-query-cache. -
Memory allocation strategy for ``root memory'' changed. Block size now grows with number of allocated blocks.
-
INET_NTOA()now returnsNULLif you give it an argument that is too large (greater than the value corresponding to255.255.255.255). -
Fix
SQL_CALC_FOUND_ROWSto work withUNION. It will work only if the firstSELECThas this option and if there is globalLIMITfor the entire statement. For the moment, this requires using parentheses for individualSELECTqueries within the statement. -
Fixed bug in
SQL_CALC_FOUND_ROWSandLIMIT. -
Don't give an error for
CREATE TABLE ...(... VARCHAR(0)). -
Fixed
SIGINTandSIGQUITproblems inmysql.ccon Linux with someglibcversions. -
Fixed bug in
convert.cc, which is caused by having an incorrectnet_store_length()linked in theCONVERT::store()method. -
DOUBLEandFLOATcolumns now honor theUNSIGNEDflag on storage. -
InnoDBnow retains foreign key constraints throughALTER TABLEandCREATE/DROP INDEX. -
InnoDBnow allows foreign key constraints to be added through theALTER TABLEsyntax. -
InnoDBtables can now be set to automatically grow in size (autoextend). -
Added
--ignore-lines=noption tomysqlimport. This has the same effect as theIGNORE n LINESclause forLOAD DATA. -
Fixed bug in
UNIONwith last offset being transposed to total result set. -
REPAIR ... USE_FRMadded. -
Fixed that
DEFAULT_SELECT_LIMITis always imposed onUNIONresult set. -
Fixed that some
SELECToptions can appear only in the firstSELECT. -
Fixed bug with
LIMITwithUNION, where last select is in the braces. -
Fixed that full-text works fine with
UNIONoperations. -
Fixed bug with indexless boolean full-text search.
-
Fixed bug that sometimes appeared when full-text search was used with
consttables. -
Fixed incorrect error value when doing a
SELECTwith an emptyHEAPtable. -
Use
ORDER BY column DESCnow sortsNULLvalues first. (In other words,NULLvalues sort first in all cases, whether or notDESCis specified.) This is changed back in 4.0.10. -
Fixed bug in
WHERE key_name='constant' ORDER BY key_name DESC. -
Fixed bug in
SELECT DISTINCT ... ORDER BY DESCoptimization. -
Fixed bug in
... HAVING 'GROUP_FUNCTION'(xxx) IS [NOT] NULL. -
Fixed bug in truncation operator for boolean full-text search.
-
Allow value of
--user=#option formysqldto be specified as a numeric user ID. -
Fixed a bug where
SQL_CALC_ROWSreturned an incorrect value when used with one table andORDER BYand withInnoDBtables. -
Fixed that
SELECT 0 LIMIT 0doesn't hang thread. -
Fixed some problems with
USE/IGNORE INDEXwhen using many keys with the same start column. -
Don't use table scan with
BerkeleyDBandInnoDBtables when we can use an index that covers the whole row. -
Optimized
InnoDBsort-buffer handling to take less memory. -
Fixed bug in multiple-table
DELETEandInnoDBtables. -
Fixed problem with
TRUNCATEandInnoDBtables that produced the errorCan't execute the given command because you have active locked tables or an active transaction. -
Added
NO_UNSIGNED_SUBTRACTIONto the set of flags that may be specified with the--sql-modeoption formysqld. It disables unsigned arithmetic rules when it comes to subtraction. (This will make MySQL 4.0 behave more like 3.23 withUNSIGNEDcolumns). -
The result returned for all bit functions (
|,<<, ...) is now of typeunsigned integer. -
Added detection of
nanvalues inMyISAMto make it possible to repair tables withnanin float or double columns. -
Fixed new bug in
myisamchkwhere it didn't correctly update number of ``parts'' in theMyISAMindex file. -
Changed to use
autoconf2.52 (fromautoconf2.13). -
Fixed optimization problem where the MySQL Server was in ``preparing'' state for a long time when selecting from an empty table which had contained a lot of rows.
-
Fixed bug in complicated join with
consttables. This fix also improves performance a bit when referring to another table from aconsttable. -
First pre-version of multiple-table
UPDATEstatement. -
Fixed bug in multiple-table
DELETE. -
Fixed bug in
SELECT CONCAT(argument_list) ... GROUP BY 1. -
INSERT ... SELECTdid a full rollback in case of an error. Fixed so that we only roll back the last statement in the current transaction. -
Fixed bug with empty expression for boolean full-text search.
-
Fixed core dump bug in updating full-text key from/to
NULL. -
ODBC compatibility: Added
BIT_LENGTH()function. -
Fixed core dump bug in
GROUP BY BINARY column. -
Added support for
NULLkeys inHEAPtables. -
Use index for
ORDER BYin queries of type:SELECT * FROM t WHERE key_part1=1 ORDER BY key_part1 DESC,key_part2 DESC -
Fixed bug in
FLUSH QUERY CACHE. -
Added
CAST()andCONVERT()functions. TheCASTandCONVERTfunctions are nearly identical and mainly useful when you want to create a column with a specific type in aCREATE ... SELECTstatement. For more information, read Section 12.7, « Fonctions de transtypage ». -
CREATE ... SELECTonDATEandTIMEfunctions now create columns of the expected type. -
Changed order in which keys are created in tables.
-
Added new columns
NullandIndex_typetoSHOW INDEXoutput. -
Added
--no-beepand--promptoptions tomysqlcommand-line client. -
New feature: management of user resources.
GRANT ... WITH MAX_QUERIES_PER_HOUR N1 MAX_UPDATES_PER_HOUR N2 MAX_CONNECTIONS_PER_HOUR N3; -
Added
mysql_secure_installationto thescripts/directory.
-
Added
systemcommand tomysql. -
Fixed bug when
HANDLERwas used with some unsupported table type. -
mysqldumpnow putsALTER TABLE tbl_name DISABLE KEYSandALTER TABLE tbl_name ENABLE KEYSin the sql dump. -
Added
mysql_fix_extensionsscript. -
Fixed stack overrun problem with
LOAD DATA FROM MASTERon OSF/1. -
Fixed shutdown problem on HP-UX.
-
Added
DES_ENCRYPT()andDES_DECRYPT()functions. -
Added
FLUSH DES_KEY_FILEstatement. -
Added
--des-key-fileoption tomysqld. -
HEX(string)now returns the characters instringconverted to hexadecimal. -
Fixed problem with
GRANTwhen usinglower_case_table_names=1. -
Changed
SELECT ... IN SHARE MODEtoSELECT ... LOCK IN SHARE MODE(as in MySQL 3.23). -
A new query cache to cache results from identical
SELECTqueries. -
Fixed core dump bug on 64-bit machines when it got an incorrect communication packet.
-
MATCH ... AGAINST(... IN BOOLEAN MODE)can now work withoutFULLTEXTindex. -
Fixed slave to replicate from 3.23 master.
-
Miscellaneous replication fixes/cleanup.
-
Got shutdown to work on Mac OS X.
-
Added
myisam/ft_dumputility for low-level inspection ofFULLTEXTindexes. -
Fixed bug in
DELETE ... WHERE ... MATCH .... -
Added support for
MATCH ... AGAINST(... IN BOOLEAN MODE). Note: you must rebuild your tables withALTER TABLE tablename TYPE=MyISAMto be able to use boolean full-text search. -
LOCATE()andINSTR()are now case-sensitive if either argument is a binary string. -
Changed
RAND()initialization so thatRAND(N)andRAND(N+1)are more distinct. -
Fixed core dump bug in
UPDATE ... ORDER BY. -
In 3.23,
INSERT INTO ... SELECTalways hadIGNOREenabled. Now MySQL will stop (and possibly roll back) by default in case of an error unless you specifyIGNORE. -
Ignore
DATA DIRECTORYandINDEX DIRECTORYdirectives on Windows. -
Added boolean full-text search code. It should be considered early alpha.
-
Extended
MODIFYandCHANGEinALTER TABLEto accept theFIRSTandAFTERkeywords. -
Indexes are now used with
ORDER BYon a wholeInnoDBtable.
-
Added
--xmloption tomysqlfor producing XML output. -
Added full-text variables
ft_min_word_len,ft_max_word_len, andft_max_word_len_for_sortsystem variables. -
Added full-text variables
ft_min_word_len,ft_max_word_len, andft_max_word_len_for_sortvariables tomyisamchk. -
Added documentation for
libmysqld, the embedded MySQL server library. Also added example programs (amysqlclient andmysqltesttest program) which uselibmysqld. -
Removed all Gemini hooks from MySQL server.
-
Removed
my_thread_init()andmy_thread_end()frommysql_com.h, and addedmysql_thread_init()andmysql_thread_end()tomysql.h. -
Support for communication packets > 16MB. In 4.0.1 we will extend
MyISAMto be able to handle these. -
Secure connections (with SSL).
-
Unsigned
BIGINTconstants now work.MIN()andMAX()now handle signed and unsignedBIGINTnumbers correctly. -
New character set
latin1_dewhich provides correct German sorting. -
STRCMP()now uses the current character set when doing comparisons, which means that the default comparison behavior now is case insensitive. -
TRUNCATE TABLEandDELETE FROM tbl_nameare now separate functions. One bonus is thatDELETE FROM tbl_namenow returns the number of deleted rows, rather than zero. -
DROP DATABASEnow executes aDROP TABLEon all tables in the database, which fixes a problem withInnoDBtables. -
Added support for
UNION. -
Added support for multiple-table
DELETEoperations. -
A new
HANDLERinterface toMyISAMtables. -
Added support for
INSERTonMERGEtables. Patch from Benjamin Pflugmann. -
Changed
WEEK(date,0)to match the calendar in the USA. -
COUNT(DISTINCT)is about 30% faster. -
Speed up all internal list handling.
-
Speed up
IS NULL,ISNULL()and some other internal primitives. -
Full-text index creation now is much faster.
-
Tree-like cache to speed up bulk inserts and
myisam_bulk_insert_tree_sizevariable. -
Searching on packed (
CHAR/VARCHAR) keys is now much faster. -
Optimized queries of type:
SELECT DISTINCT * from tbl_name ORDER by key_part1 LIMIT row_count. -
SHOW CREATE TABLEnow shows all table attributes. -
ORDER BY ... DESCcan now use keys. -
LOAD DATA FROM MASTER``automatically'' sets up a slave. -
Renamed
safe_mysqldtomysqld_safeto make this name more in line with other MySQL scripts/commands. -
Added support for symbolic links to
MyISAMtables. Symlink handling is now enabled by default for Windows. -
Added
SQL_CALC_FOUND_ROWSandFOUND_ROWS(). This makes it possible to know how many rows a query would have returned without aLIMITclause. -
Changed output format of
SHOW OPEN TABLES. -
Allow
SELECT expression LIMIT .... -
Added
ORDER BYsyntax toUPDATEandDELETE. -
SHOW INDEXESis now a synonym forSHOW INDEX. -
Added
ALTER TABLE tbl_name DISABLE KEYSandALTER TABLE tbl_name ENABLE KEYScommands. -
Allow use of
INas a synonym forFROMinSHOWcommands. -
Implemented ``repair by sort'' for
FULLTEXTindexes.REPAIR TABLE,ALTER TABLE, andOPTIMIZE TABLEfor tables withFULLTEXTindexes are now up to 100 times faster. -
Allow standard SQL syntax
X'hexadecimal-number'. -
Cleaned up global lock handling for
FLUSH TABLES WITH READ LOCK. -
Fixed problem with
DATETIME = constantinWHEREoptimization. -
Added
--master-dataand--no-autocommitoptions tomysqldump. (Thanks to Brian Aker for this.) -
Added script
mysql_explain_log.shto distribution. (Thanks to mobile.de).
- C.4.1. Changements de la version 3.23.59 (not released yet)
- C.4.2. Changements de la version 3.23.58 (11 septembre 2003)
- C.4.3. Changements de la version 3.23.57 (06 juin 2003)
- C.4.4. Changements de la version 3.23.56 (13 mars 2003)
- C.4.5. Changements de la version 3.23.55 (23 janvier 2003)
- C.4.6. Changements de la version 3.23.54 (05 décembre 2002)
- C.4.7. Changements de la version 3.23.53 (09 octobre 2002)
- C.4.8. Changements de la version 3.23.52 (14 août 2002)
- C.4.9. Changements de la version 3.23.51 (31 mai 2002)
- C.4.10. Changements de la version 3.23.50 (21 avril 2002)
- C.4.11. Changements de la version 3.23.49
- C.4.12. Changements de la version 3.23.48 (07 février 2002)
- C.4.13. Changements de la version 3.23.47 (27 décembre 2001)
- C.4.14. Changements de la version 3.23.46 (29 novembre 2001)
- C.4.15. Changements de la version 3.23.45 (22 novembre 2001)
- C.4.16. Changements de la version 3.23.44 (31 octobre 2001)
- C.4.17. Changements de la version 3.23.43 (04 octobre 2001)
- C.4.18. Changements de la version 3.23.42 (08 septembre 2001)
- C.4.19. Changements de la version 3.23.41 (11 août 2001)
- C.4.20. Changements de la version 3.23.40
- C.4.21. Changements de la version 3.23.39 (12 juin 2001)
- C.4.22. Changements de la version 3.23.38 (09 mai 2001)
- C.4.23. Changements de la version 3.23.37 (17 avril 2001)
- C.4.24. Changements de la version 3.23.36 (27 mars 2001)
- C.4.25. Changements de la version 3.23.35 (15 mars 2001)
- C.4.26. Changements de la version 3.23.34a
- C.4.27. Changements de la version 3.23.34 (10 mars 2001)
- C.4.28. Changements de la version 3.23.33 (09 février 2001)
- C.4.29. Changements de la version 3.23.32 (22 Jan 2001: Production)
- C.4.30. Changements de la version 3.23.31 (17 janvier 2001)
- C.4.31. Changements de la version 3.23.30 (04 janvier 2001)
- C.4.32. Changements de la version 3.23.29 (16 décembre 2000)
- C.4.33. Changements de la version 3.23.28 (22 Nov 2000: Gamma)
- C.4.34. Changements de la version 3.23.27 (24 octobre 2000)
- C.4.35. Changements de la version 3.23.26 (18 octobre 2000)
- C.4.36. Changements de la version 3.23.25 (29 septembre 2000)
- C.4.37. Changements de la version 3.23.24 (08 septembre 2000)
- C.4.38. Changements de la version 3.23.23 (01 septembre 2000)
- C.4.39. Changements de la version 3.23.22 (31 juillet 2000)
- C.4.40. Changements de la version 3.23.21
- C.4.41. Changements de la version 3.23.20
- C.4.42. Changements de la version 3.23.19
- C.4.43. Changements de la version 3.23.18
- C.4.44. Changements de la version 3.23.17
- C.4.45. Changements de la version 3.23.16
- C.4.46. Changements de la version 3.23.15 (May 2000: Beta)
- C.4.47. Changements de la version 3.23.14
- C.4.48. Changements de la version 3.23.13
- C.4.49. Changements de la version 3.23.12 (07 mars 2000)
- C.4.50. Changements de la version 3.23.11
- C.4.51. Changements de la version 3.23.10
- C.4.52. Changements de la version 3.23.9
- C.4.53. Changements de la version 3.23.8 (02 janvier 2000)
- C.4.54. Changements de la version 3.23.7 (10 décembre 1999)
- C.4.55. Changements de la version 3.23.6
- C.4.56. Changements de la version 3.23.5 (20 octobre 1999)
- C.4.57. Changements de la version 3.23.4 (28 septembre 1999)
- C.4.58. Changements de la version 3.23.3
- C.4.59. Changements de la version 3.23.2 (09 août 1999)
- C.4.60. Changements de la version 3.23.1
- C.4.61. Changements de la version 3.23.0 (05 Aug 1999: Alpha)
Please note that since release 4.0 is now production level, only critical fixes are done in the 3.23 release series. You are recommended to upgrade when possible, to take advantage of all speed and feature improvements in 4.0. See Section 2.6.3, « Passer de la version 3.23 à la version 4.0 ».
The 3.23 release has several major features that are not present in previous versions. We have added three new table types:
-
MyISAMA new ISAM library which is tuned for SQL and supports large files.
-
InnoDBA transaction-safe storage engine that supports row level locking, and many Oracle-like features.
-
BerkeleyDBorBDBUses the Berkeley DB library from Sleepycat Software to implement transaction-safe tables.
Note that only MyISAM is available in the standard binary distribution.
The 3.23 release also includes support for database replication between a master and many slaves, full-text indexing, and much more.
All new features are being developed in the 4.x version. Only bug fixes and minor enhancements to existing features will be added to 3.23.
The replication code and BerkeleyDB code is still not as tested and as the rest of the code, so we will probably need to do a couple of future releases of 3.23 with small fixes for this part of the code. As long as you don't use these features, you should be quite safe with MySQL 3.23!
Note that the above doesn't mean that replication or Berkeley DB don't work. We have done a lot of testing of all code, including replication and BDB without finding any problems. It only means that not as many users use this code as the rest of the code and because of this we are not yet 100% confident in this code.
-
Fixed a symlink vulnerability in
mysqlbugscript - vulnerability id CVE-2004-0381. (Bug#3284) -
Fixed bug in privilege checking of
ALTER TABLE RENAME. (Bug#3270) -
Fixed bugs in
ACOS(),ASIN()(Bug#2338) and inFLOOR()(Bug#3051). The cause of the problem is an overly strong optimization done bygccin this case. -
Fixed bug in
INSERT ... SELECTstatements where, if aNOT NULLcolumn is assigned a value ofNULL, the following columns in the row might be assigned a value of zero. (Bug#2012) -
If a query was ignored on the slave (because of
replicate-ignore-tableand other similar rules), the slave still checked if the query got the same error code (0, no error) as on the master. So if the master had an error on the query (for example, ``Duplicate entry'' in a multiple-row insert), then the slave stopped and warned that the error codes didn't match. This is a backport of the fix for MySQL 4.0. (Bug#797) -
mysqlbinlognow asks for a password at console when the-p/--passwordoption is used with no argument. This is how the other clients (mysqladmin,mysqldump..) already behave. Note that one now has to usemysqlbinlog -p<my_password>;mysqlbinlog -p <my_password>will not work anymore (in other words, put no space after-p). (Bug#1595) -
On some 64-bit machines (some HP-UX and Solaris machines), a slave installed with the 64-bit MySQL binary could not connect to its master (it connected to itself instead). (Bug#1256, Bug#1381)
-
Fixed a Windows-specific bug present since MySQL 3.23.57 and 3.23.58 that caused Windows slaves to crash when they started replication if a
master.infofile existed. (Bug#1720) -
Fixed bug in
ALTER TABLE RENAME, when rename to the table with the same name in another database silently dropped destination table if it existed. (Bug#2628)
-
Fixed buffer overflow in password handling which could potentially be exploited by MySQL users with
ALTERprivilege on themysql.usertable to execute random code or to gain shell access with the UID of the mysqld process (thanks to Jedi/Sector One for spotting and reporting this bug). -
mysqldumpnow correctly quotes all identifiers when communicating with the server. This assures that during the dump process,mysqldumpwill never send queries to the server that result in a syntax error. This problem is not related to themysqldumpprogram's output, which was not changed. (Bug#1148) -
Fixed table/column grant handling - proper sort order (from most specific to less specific, see Section 5.5.6, « Contrôle d'accès, étape 2 : Vérification de la requête ») was not honored. (Bug#928)
-
Fixed overflow bug in
MyISAMandISAMwhen a row is updated in a table with a large number of columns and at least oneBLOB/TEXTcolumn. -
Fixed MySQL so that field length (in C API) for the second column in
SHOW CREATE TABLEis always larger than the data length. The only known application that was affected by the old behavior was Borland dbExpress, which truncated the output from the command. (Bug#1064) -
Fixed
ISAMbug inMAX()optimization. -
Fixed
Unknown errorwhen doingORDER BYon reference table which was used withNULLvalue onNOT NULLcolumn. (Bug#479)
-
Fixed problem in alarm handling that could cause problems when getting a packet that is too large.
-
Fixed problem when installing MySQL as a service on Windows when one gave 2 arguments (option file group name and service name) to
mysqld. -
Fixed
kill pid-of-mysqldto work on Mac OS X. -
SHOW TABLE STATUSdisplayed incorrectRow_formatvalue for tables that have been compressed withmyisampack. (Bug#427) -
SHOW VARIABLES LIKE 'innodb_data_file_path'displayed only the name of the first datafile. (Bug#468) -
Fixed security problem where
mysqlddidn't allow one toUPDATErows in a table even if one had a globalUPDATEprivilege and a databaseSELECTprivilege. -
Fixed a security problem with
SELECTand wildcarded select list, when user only had partial columnSELECTprivileges on the table. -
Fixed unlikely problem in optimizing
WHEREclause with a constant expression such as inWHERE 1 AND (a=1 AND b=1). -
Fixed problem on IA-64 with timestamps that caused
mysqlbinlogto fail. -
The default option for
innodb_flush_log_at_trx_commitwas changed from 0 to 1 to makeInnoDBtables ACID by default. See Section 15.5, « Options de démarrageInnoDB». -
Fixed problem with too many allocated alarms on slave when connecting to master many times (normally not a very critical error).
-
Fixed a bug in replication of temporary tables. (Bug#183)
-
Fixed 64-bit bug that affected at least AMD hammer systems.
-
Fixed a bug when doing
LOAD DATA INFILE IGNORE: When reading the binary log,mysqlbinlogand the replication code readREPLACEinstead ofIGNORE. This could make the slave's table become different from the master's table. (Bug#218) -
Fixed overflow bug in
MyISAMwhen a row is inserted into a table with a large number of columns and at least oneBLOB/TEXTcolumn. Bug was caused by incorrect calculation of the needed buffer to pack data. -
The binary log was not locked during
TRUNCATE table_nameorDELETE FROM table_namestatements, which could cause anINSERTtotable_nameto be written to the log before theTRUNCATEorDELETEstatements. -
Fixed rare bug in
UPDATEofInnoDBtables where one row could be updated multiple times. -
Produce an error for empty table and column names.
-
Changed
PROCEDURE ANALYSE()to reportDATEinstead ofNEWDATE. -
Changed
PROCEDURE ANALYSE(#)to restrict the number of values in anENUMcolumn to#also for string values. -
mysqldumpno longer silently deletes the binary logs when invoked with the--master-dataor--first-slaveoption; while this behavior was convenient for some users, others may suffer from it. Now one has to explicitly ask for binary logs to be deleted by using the new--delete-master-logsoption. -
Fixed a bug in
mysqldumpwhen it was invoked with the--master-dataoption: TheCHANGE MASTER TOstatements that were appended to the SQL dump had incorrect coordinates. (Bug#159)
-
Fixed
mysqldcrash on extremely small values ofsort_buffervariable. -
Fixed a bug in privilege system for
GRANT UPDATEon column level. -
Fixed a rare bug when using a date in
HAVINGwithGROUP BY. -
Fixed checking of random part of
WHEREclause. (Bug#142) -
Fixed MySQL (and
myisamchk) crash on artificially corrupted.MYIfiles. -
Security enhancement:
mysqldno longer reads options from world-writeable config files. -
Security enhancement:
mysqldandsafe_mysqldnow only use the first--useroption specified on the command line. (Normally this comes from/etc/my.cnf) -
Security enhancement: Don't allow
BACKUP TABLEto overwrite existing files. -
Fixed unlikely deadlock bug when one thread did a
LOCK TABLEand another thread did aDROP TABLE. In this case one could do aKILLon one of the threads to resolve the deadlock. -
LOAD DATA INFILEwas not replicated by slave ifreplicate_*_tablewas set on the slave. -
Fixed a bug in handling
CHAR(0)columns that could cause incorrect results from the query. -
Fixed a bug in
SHOW VARIABLESon 64-bit platforms. The bug was caused by incorrect declaration of variableserver_id. -
The Comment column in
SHOW TABLE STATUSnow reports that it can containNULLvalues (which is the case for a crashed.frmfile). -
Fixed the
rpl_rotate_logstest to not fail on certain platforms (e.g. Mac OS X) due to a too long file name (changedslave-master-info.optto.slave-mi). -
Fixed a problem with
BLOB NOT NULLcolumns used withIS NULL. -
Fixed bug in
MAX()optimization inMERGEtables. -
Better
RAND()initialization for new connections. -
Fixed bug with connect timeout. This bug was manifested on OS's with
poll()system call, which resulted in timeout the value specified as it was executed in bothselect()andpoll(). -
Fixed bug in
SELECT * FROM table WHERE datetime1 IS NULL OR datetime2 IS NULL. -
Fixed bug in using aggregate functions as argument for
INTERVAL,CASE,FIELD,CONCAT_WS,ELTandMAKE_SETfunctions. -
When running with
--lower-case-table-names(default on Windows) and you had tables or databases with mixed case on disk, then executingSHOW TABLE STATUSfollowed withDROP DATABASEorDROP TABLEcould fail withErrcode 13. -
Fixed bug in logging to binary log (which affects replication) a query that inserts a
NULLin anauto_incrementfield and also usesLAST_INSERT_ID(). -
Fixed bug in
mysqladmin --relative. -
On some 64-bit systems,
show statusreported a strange number forOpen_filesandOpen_streams.
-
Fixed double
free'd pointer bug inmysql_change_user()handling, that enabled a specially hacked version of MySQL client to crashmysqld. Note, that one needs to login to the server by using a valid user account to be able to exploit this bug. -
Fixed bug with the
--slow-logwhen logging an administrator command (likeFLUSH TABLES). -
Fixed bug in
GROUP BYwhen used on BLOB column withNULLvalues. -
Fixed a bug in handling
NULLvalues inCASE ... WHEN .... -
Bugfix for
--chroot(see Section C.4.6, « Changements de la version 3.23.54 (05 décembre 2002) ») is reverted. Unfortunately, there is no way to make it to work, without introducing backward-incompatible changes inmy.cnf. Those who need--chrootfunctionality, should upgrade to MySQL 4.0. (The fix in the 4.0 branch did not break backward-compatibility). -
Make
--lower-case-table-namesdefault on Mac OS X as the default file system (HFS+) is case insensitive. -
Fixed a bug in
scripts/mysqld_safe.shinNOHUP_NICENESStesting. -
Transactions in
AUTOCOMMIT=0mode didn't rotate binary log. -
Fixed a bug in
scripts/make_binary_distributionthat resulted in a remaining@HOSTNAME@variable instead of replacing it with the correct path to thehostnamebinary. -
Fixed a very unlikely bug that could cause
SHOW PROCESSLISTto core dump in pthread_mutex_unlock() if a new thread was connecting. -
Forbid
SLAVE STOPif the thread executing the query has locked tables. This removes a possible deadlock situation.
-
Fixed a bug, that allowed to crash
mysqldwith a specially crafted packet. -
Fixed a rare crash (double
free'd pointer) when altering a temporary table. -
Fixed buffer overrun in
libmysqlclientlibrary that allowed malicious MySQL server to crash the client application. -
Fixed security-related bug in
mysql_change_user()handling. All users are strongly recommended to upgrade to the version 3.23.54. -
Fixed bug that prevented
--chrootcommand-line option ofmysqldfrom working. -
Fixed bug that made
OPTIMIZE TABLEto corrupt the table under some rare circumstances. -
Fixed
mysqlcheckso it can deal with table names containing dashes. -
Fixed shutdown problem on Mac OS X.
-
Fixed bug with comparing an indexed
NULLfield with<=> NULL. -
Fixed bug that caused
IGNORE INDEXandUSE INDEXsometimes to be ignored. -
Fixed rare core dump problem in complicated
GROUP BYqueries that didn't return any result. -
Fixed a bug where
MATCH ... AGAINST () >=0was treated as if it was>. -
Fixed core dump in
SHOW PROCESSLISTwhen running with an active slave (unlikely timing bug). -
Make it possible to use multiple MySQL servers on Windows (code backported from 4.0.2).
-
One can create
TEMPORARYMERGEtables now. -
Fixed that
--core-fileworks on Linux (at least on kernel 2.4.18). -
Fixed a problem with
BDBandALTER TABLE. -
Fixed reference to freed memory when doing complicated
GROUP BY ... ORDER BYqueries. Symptom was thatmysqlddied in functionsend_fields. -
Allocate heap rows in smaller blocks to get better memory usage.
-
Fixed memory allocation bug when storing
BLOBvalues in internal temporary tables used for some (unlikely)GROUP BYqueries. -
Fixed a bug in key optimizing handling where the expression
WHERE column_name = key_column_namewas calculated as true forNULLvalues. -
Fixed core dump bug when doing
LEFT JOIN ... WHERE key_column=NULL. -
Fixed
MyISAMcrash when using dynamic-row tables with huge numbers of packed fields. -
Updated source tree to be built using
automake 1.5andlibtool 1.4.
-
Fixed crash when
SHOW INNODB STATUSwas used andskip-innodbwas defined. -
Fixed possible memory corruption bug in binary log file handling when slave rotated the logs (only affected 3.23, not 4.0).
-
Fixed problem in
LOCK TABLESon Windows when one connects to a database that contains upper case letters. -
Fixed that
--skip-show-databasesdoesn't reset the--portoption. -
Small fix in
safe_mysqldfor some shells. -
Fixed that
FLUSH STATUSdoesn't resetdelayed_insert_threads. -
Fixed core dump bug when using the
BINARYcast on aNULLvalue. -
Fixed race condition when someone did a
GRANTat the same time a new user logged in or did aUSE database. -
Fixed bug in
ALTER TABLEandRENAME TABLEwhen running with-O lower_case_table_names=1(typically on Windows) when giving the table name in uppercase. -
Fixed that
-O lower_case_table_names=1also converts database names to lower case. -
Fixed unlikely core dump with
SELECT ... ORDER BY ... LIMIT. -
Changed
AND/ORto report that they can return NULL. This fixes a bug inGROUP BYonAND/ORexpressions that returnNULL. -
Fixed a bug that
OPTIMIZEof locked and modified MyISAM table, reported table corruption. -
Fixed a
BDB-relatedALTER TABLEbug with dropping a column and shutting down immediately thereafter. -
Fixed problem with
configure ... --localstatedir=.... -
Fixed problem with
UNSIGNED BIGINTon AIX (again). -
Fixed bug in pthread_mutex_trylock() on HPUX 11.0.
-
Multi-threaded stress tests for
InnoDB.
-
Wrap
BEGIN/COMMITaround transaction in the binary log. This makes replication honor transactions. -
Fixed security bug when having an empty database name in the
user.dbtable. -
Changed initialization of
RND()to make it less predicatable. -
Fixed problem with
GROUP BYon result with expression that created aBLOBfield. -
Fixed problem with
GROUP BYon columns that haveNULLvalues. To solve this we now create anMyISAMtemporary table when doing aGROUP BYon a possibleNULLitem. From MySQL 4.0.5 we can use in memoryHEAPtables for this case. -
Fixed problem with privilege tables when downgrading from 4.0.2 to 3.23.
-
Fixed thread bug in
SLAVE START,SLAVE STOPand automatic repair of MyISAM tables that could cause table cache to be corrupted. -
Fixed possible thread related key-cache-corruption problem with
OPTIMIZE TABLEandREPAIR TABLE. -
Added name of 'administrator command' logs.
-
Fixed bug with creating an auto-increment value on second part of a
UNIQUE()key where first part could containNULLvalues. -
Don't write slave-timeout reconnects to the error log.
-
Fixed bug with slave net read timeouting
-
Fixed a core-dump bug with
MERGEtables andMAX()function. -
Fixed bug in
ALTER TABLEwithBDBtables. -
Fixed bug when logging
LOAD DATA INFILEto binary log with no active database. -
Fixed a bug in range optimizer (causing crashes).
-
Fixed possible problem in replication when doing
DROP DATABASEon a database withInnoDBtables. -
Fixed
mysql_info()to return 0 forDuplicatesvalue when usingINSERT DELAYED IGNORE. -
Added
-DHAVE_BROKEN_REALPATHto the Mac OS X (darwin) compile options inconfigure.into fix a failure under high load.
-
Fix bug with closing tags missing slash for
mysqldumpXML output. -
Remove end space from
ENUMvalues. (This fixed a problem withSHOW CREATE TABLE.) -
Fixed bug in
CONCAT_WS()that cut the result. -
Changed name of server variables
Com_show_master_stattoCom_show_master_statusandCom_show_slave_stattoCom_show_slave_status. -
Changed handling of
gethostbyname()to make the client library thread-safe even ifgethostbyname_rdoesn't exist. -
Fixed core-dump problem when giving a wrong password string to
GRANT. -
Fixed bug in
DROP DATABASEwith symlinked directory. -
Fixed optimization problem with
DATETIMEand value outsideDATETIMErange. -
Removed Sleepycat's
BDBdoc files from the source tree, as they're not needed (MySQL coversBDBin its own documentation). -
Fixed MIT-pthreads to compile with
glibc2.2 (needed formake dist). -
Fixed the
FLOAT(X+1,X)is not converted toFLOAT(X+2,X). (This also affectedDECIMAL,DOUBLEandREALtypes) -
Fixed the result from
IF()is case in-sensitive if the second and third arguments are case sensitive. -
Fixed core dump problem on OSF/1 in
gethostbyname_r. -
Fixed that underflowed decimal fields are not zero filled.
-
If we get an overflow when inserting
'+11111'forDECIMAL(5,0) UNSIGNEDcolumns, we will just drop the sign. -
Fixed optimization bug with
ISNULL(expression_which_cannot_be_null)andISNULL(constant_expression). -
Fixed host lookup bug in the
glibclibrary that we used with the 3.23.50 Linux-x86 binaries.
-
Fixed buffer overflow problem if someone specified a too long datadir parameter to mysqld
-
Add missing
<row>tags formysqldumpXML output. -
Fixed problem with
crash-meandgcc3.0.4. -
Fixed that
@@unknown_variabledoesn't hang server. -
Added
@@VERSIONas a synonym forVERSION(). -
SHOW VARIABLES LIKE 'xxx'is now case-insensitive. -
Fixed timeout for
GET_LOCK()on HP-UX with DCE threads. -
Fixed memory allocation bug in the
glibclibrary used to build Linux binaries, which caused mysqld to die in 'free()'. -
Fixed
SIGINTandSIGQUITproblems inmysql. -
Fixed bug in character table converts when used with big ( > 64K) strings.
-
InnoDBnow retains foreign key constraints throughALTER TABLEandCREATE/DROP INDEX. -
InnoDBnow allows foreign key constraints to be added through theALTER TABLEsyntax. -
InnoDBtables can now be set to automatically grow in size (autoextend). -
Our Linux RPMS and binaries are now compiled with
gcc3.0.4, which should make them a bit faster. -
Fixed some buffer overflow problems when reading startup parameters.
-
Because of problems on shutdown we have now disabled named pipes on Windows by default. One can enable named pipes by starting mysqld with
--enable-named-pipe. -
Fixed bug when using
WHERE key_column = 'J' or key_column='j'. -
Fixed core-dump bug when using
--log-binwithLOAD DATA INFILEwithout an active database. -
Fixed bug in
RENAME TABLEwhen used withlower_case_table_names=1(default on Windows). -
Fixed unlikely core-dump bug when using
DROP TABLEon a table that was in use by a thread that also used queries on only temporary tables. -
Fixed problem with
SHOW CREATE TABLEandPRIMARY KEYwhen using 32 indexes. -
Fixed that one can use
SET PASSWORDfor the anonymous user. -
Fixed core dump bug when reading client groups from option files using
mysql_options(). -
Memory leak (16 bytes per every corrupted table) closed.
-
Fixed binary builds to use
--enable-local-infile. -
Update source to work with new version of
bison. -
Updated shell scripts to now agree with new POSIX standard.
-
Fixed bug where
DATE_FORMAT()returned empty string when used withGROUP BY.
-
For a
MERGEtable,DELETE FROM merge_tableused without aWHEREclause no longer clears the mapping for the table by emptying the.MRGfile. Instead, it deletes records from the mapped tables. -
Don't give warning for a statement that is only a comment; this is needed for
mysqldump --disable-keysto work. -
Fixed unlikely caching bug when doing a join without keys. In this case, the last used field for a table always returned
NULL. -
Added options to make
LOAD DATA LOCAL INFILEmore secure. -
MySQL binary release 3.23.48 for Linux contained a new
glibclibrary, which has serious problems under high load and Red Hat 7.2. The 3.23.49 binary release doesn't have this problem. -
Fixed shutdown problem on NT.
-
Added
--xmloption tomysqldumpfor producing XML output. -
Changed to use
autoconf2.52 (fromautoconf2.13) -
Fixed bug in complicated join with
consttables. -
Added internal safety checks for
InnoDB. -
Some
InnoDBvariables were always shown inSHOW VARIABLESasOFFon high-byte-first systems (like SPARC). -
Fixed problem with one thread using an
InnoDBtable and another thread doing anALTER TABLEon the same table. Before that,mysqldcould crash with an assertion failure inrow0row.c, line 474. -
Tuned the
InnoDBSQL optimizer to favor index searches more often over table scans. -
Fixed a performance problem with
InnoDBtables when several largeSELECTqueries are run concurrently on a multiprocessor Linux computer. Large CPU-boundSELECTqueries will now also generally run faster on all platforms. -
If MySQL binlogging is used,
InnoDBnow prints after crash recovery the latest MySQL binlog name and the offsetInnoDBwas able to recover to. This is useful, for example, when resynchronizing a master and a slave database in replication. -
Added better error messages to help in installation problems of
InnoDBtables. -
It is now possible to recover MySQL temporary tables that have become orphaned inside the
InnoDBtablespace. -
InnoDBnow prevents aFOREIGN KEYdeclaration where the signedness is not the same in the referencing and referenced integer columns. -
Calling
SHOW CREATE TABLEorSHOW TABLE STATUScould cause memory corruption and makemysqldcrash. Especially at risk wasmysqldump, because it frequently callsSHOW CREATE TABLE. -
If inserts to several tables containing an
AUTO_INCREMENTcolumn were wrapped inside oneLOCK TABLES,InnoDBasserted inlock0lock.c. -
In 3.23.47 we allowed several
NULLvalues in aUNIQUEsecondary index for anInnoDBtable. ButCHECK TABLEwas not relaxed: it reports the table as corrupt.CHECK TABLEno longer complains in this situation. -
SHOW GRANTSnow showsREFERENCESinstead ofREFERENCE.
-
Fixed bug when using the following construct:
SELECT ... WHERE key=@var_name OR key=@var_name2 -
Restrict
InnoDBkeys to 500 bytes. -
InnoDBnow supportsNULLin keys. -
Fixed shutdown problem on HP-UX. (Introduced in 3.23.46)
-
Fixed core dump bug in replication when using
SELECT RELEASE_LOCK(). -
Added new command:
DO expression,[expression] -
Added
slave-skip-errorsoption. -
Added statistics variables for all MySQL commands. (
SHOW STATUSis now much longer.) -
Fixed default values for
InnoDBtables. -
Fixed that
GROUP BY expr DESCworks. -
Fixed bug when using
t1 LEFT JOIN t2 ON t2.key=constant. -
mysql_confignow also works with binary (relocated) distributions.
-
Fixed problem with aliased temporary table replication.
-
InnoDBandBDBtables will now use index when doing anORDER BYon the whole table. -
Fixed bug where one got an empty set instead of a DEADLOCK error when using
BDBtables. -
One can now kill
ANALYZE,REPAIR, andOPTIMIZE TABLEwhen the thread is waiting to get a lock on the table. -
Fixed race condition in
ANALYZE TABLE. -
Fixed bug when joining with caching (unlikely to happen).
-
Fixed race condition when using the binary log and
INSERT DELAYEDwhich could cause the binary log to have rows that were not yet written toMyISAMtables. -
Changed caching of binary log to make replication slightly faster.
-
Fixed bug in replication on Mac OS X.
-
(UPDATE|DELETE) ...WHERE MATCHbugfix. -
shutdown should now work on Darwin (Mac OS X).
-
Fixed core dump when repairing corrupted packed
MyISAMfiles. -
--core-filenow works on Solaris. -
Fix a bug which could cause
InnoDBto complain if it cannot find free blocks from the buffer cache during recovery. -
Fixed bug in
InnoDBinsert bufferB-treehandling that could cause crashes. -
Fixed bug in
InnoDBlock timeout handling. -
Fixed core dump bug in
ALTER TABLEon aTEMPORARYInnoDBtable. -
Fixed bug in
OPTIMIZE TABLEthat reset index cardinality if it was up to date. -
Fixed problem with
t1 LEFT_JOIN t2 ... WHERE t2.date_column IS NULLwhen date_column was declared asNOT NULL. -
Fixed bug with
BDBtables and keys onBLOBcolumns. -
Fixed bug in
MERGEtables on OS with 32-bit file pointers. -
Fixed bug in
TIME_TO_SEC()when using negative values.
-
Fixed
Rows_examinedcount in slow query log. -
Fixed bug when using a reference to an
AVG()column inHAVING. -
Fixed that date functions that require correct dates, like
DAYOFYEAR(column), will returnNULLfor0000-00-00dates. -
Fixed bug in const-propagation when comparing columns of different types. (
SELECT * FROM date_col="2001-01-01" and date_col=time_col) -
Fixed bug that caused error message
Can't write, because of unique constraintwith someGROUP BYqueries. -
Fixed problem with
sjischaracter strings used within quoted table names. -
Fixed core dump when using
CREATE ... FULLTEXTkeys with other storage engines thanMyISAM. -
Don't use
signal()on Windows because this appears to not be 100% reliable. -
Fixed bug when doing
WHERE col_name=NULLon an indexed column that hadNULLvalues. -
Fixed bug when doing
LEFT JOIN ... ON (col_name = constant) WHERE col_name = constant. -
When using replications, aborted queries that contained
%could cause a core dump. -
TCP_NODELAYwas not used on some systems. (Speed problem.) -
Applied portability fixes for OS/2. (Patch by Yuri Dario.)
The following changes are for InnoDB tables:
-
Add missing
InnoDBvariables toSHOW VARIABLES. -
Foreign keys checking is now done for
InnoDBtables. -
DROP DATABASEnow works also forInnoDBtables. -
InnoDBnow supports datafiles and raw disk partitions bigger than 4 GB on those operating systems that have big files. -
InnoDBcalculates better table cardinality estimates for the MySQL optimizer. -
Accent characters in the default character set
latin1are ordered according to the MySQL ordering.Note: if you are using
latin1and have inserted characters whose code is greater than 127 into an indexedCHARcolumn, you should runCHECK TABLEon your table when you upgrade to 3.23.44, and drop and reimport the table ifCHECK TABLEreports an error! -
A new
my.cnfparameter,innodb_thread_concurrency, helps in performance tuning in heavily concurrent environments. -
A new
my.cnfparameter,innodb_fast_shutdown, speeds up server shutdown. -
A new
my.cnfparameter,innodb_force_recovery, helps to save your data in case the disk image of the database becomes corrupt. -
innodb_monitorhas been improved and a newinnodb_table_monitoradded. -
Increased maximum key length from 500 to 7000 bytes.
-
Fixed a bug in replication of
AUTO_INCREMENTcolumns with multiple-line inserts. -
Fixed a bug when the case of letters changes in an update of an indexed secondary column.
-
Fixed a hang when there are > 24 datafiles.
-
Fixed a crash when
MAX(col)is selected from an empty table, andcolis not the first column in a multi-column index. -
Fixed a bug in purge which could cause crashes.
-
Fixed a bug in
INSERT DELAYEDandFLUSH TABLESintroduced in 3.23.42. -
Fixed unlikely bug, which returned non-matching rows, in
SELECTwith many tables and multi-column indexes and 'range' type. -
Fixed an unlikely core dump bug when doing
EXPLAIN SELECTwhen using many tables andORDER BY. -
Fixed bug in
LOAD DATA FROM MASTERwhen using table withCHECKSUM=1. -
Added unique error message when one gets a DEADLOCK during a transaction with
BDBtables. -
Fixed problem with
BDBtables andUNIQUEcolumns defined asNULL. -
Fixed problem with
myisampackwhen using pre-space filledCHARcolumns. -
Applied patch from Yuri Dario for OS/2.
-
Fixed bug in
--safe-user-create.
-
Fixed problem when using
LOCK TABLESandBDBtables. -
Fixed problem with
REPAIR TABLEonMyISAMtables with row lengths in the range from 65517 to 65520 bytes. -
Fixed rare hang when doing
mysqladmin shutdownwhen there was a lot of activity in other threads. -
Fixed problem with
INSERT DELAYEDwhere delayed thread could be hanging onupgrading locksfor no apparent reason. -
Fixed problem with
myisampackandBLOB. -
Fixed problem when one edited
.MRGtables by hand. (Patch from Benjamin Pflugmann). -
Enforce that all tables in a
MERGEtable come from the same database. -
Fixed bug with
LOAD DATA INFILEand transactional tables. -
Fix bug when using
INSERT DELAYEDwith wrong column definition. -
Fixed core dump during
REPAIRof some particularly broken tables. -
Fixed bug in
InnoDBandAUTO_INCREMENTcolumns. -
Fixed bug in
InnoDBandRENAME TABLEcolumns. -
Fixed critical bug in
InnoDBandBLOBcolumns. If you have usedBLOBcolumns larger than 8000 bytes in anInnoDBtable, it is necessary to dump the table withmysqldump, drop it and restore it from the dump. -
Applied large patch for OS/2 from Yuri Dario.
-
Fixed problem with
InnoDBwhen one could get the errorCan't execute the given command...even when no transaction was active. -
Applied some minor fixes that concern Gemini.
-
Use real arithmetic operations even in integer context if not all arguments are integers. (Fixes uncommon bug in some integer contexts).
-
Don't force everything to lowercase on Windows. (To fix problem with Windows and
ALTER TABLE). Now--lower_case_namesalso works on Unix. -
Fixed that automatic rollback is done when thread end doesn't lock other threads.
-
Added
--sql-mode=value[,value[,value]]option tomysqld. See Section 4.3.1, « Options de ligne de commande demysqld». -
Fixed possible problem with
shutdownon Solaris where the.pidfile wasn't deleted. -
InnoDBnow supports < 4 GB rows. The former limit was 8000 bytes. -
The
doublewritefile flush method is used inInnoDB. It reduces the need for Unixfsync()calls to a fraction and improves performance on most Unix flavors. -
You can now use the
InnoDBMonitor to print a lot ofInnoDBstate information, including locks, to the standard output. This is useful in performance tuning. -
Several bugs which could cause hangs in
InnoDBhave been fixed. -
Split
record_buffertorecord_bufferandrecord_rnd_buffer. To make things compatible to previous MySQL versions, ifrecord_rnd_bufferis not set, then it takes the value ofrecord_buffer. -
Fixed optimizing bug in
ORDER BYwhere someORDER BYparts where wrongly removed. -
Fixed overflow bug with
ALTER TABLEandMERGEtables. -
Added prototypes for
my_thread_init()andmy_thread_end()tomysql_com.h -
Added
--safe-user-createoption tomysqld. -
Fixed bug in
SELECT DISTINCT ... HAVINGthat caused error messageCan't find record in #...
-
Fixed problem with
--low-priority-updatesandINSERTstatements. -
Fixed bug in slave thread when under some rare circumstances it could get 22 bytes ahead on the offset in the master.
-
Added
slave_net_timeoutfor replication. -
Fixed problem with
UPDATEandBDBtables. -
Fixed hard bug in
BDBtables when using key parts. -
Fixed problem when using
GRANT FILE ON database.* ...; previously we added theDROPprivilege for the database. -
Fixed
DELETE FROM tbl_name ... LIMIT 0andUPDATE FROM tbl_name ... LIMIT 0, which acted as though theLIMITclause was not present (they deleted or updated all selected rows). -
CHECK TABLEnow checks if anAUTO_INCREMENTcolumn contains the value 0. -
Sending a
SIGHUPtomysqldwill now only flush the logs, not reset the replication. -
Fixed parser to allow floats of type
1.0e1(no sign aftere). -
Option
--forcetomyisamchknow also updates states. -
Added option
--warningstomysqld. Nowmysqldprints the errorAborted connectiononly if this option is used. -
Fixed problem with
SHOW CREATE TABLEwhen you didn't have aPRIMARY KEY. -
Properly fixed the rename of
innodb_unix_file_flush_methodvariable toinnodb_flush_method. -
Fixed bug when converting
BIGINT UNSIGNEDtoDOUBLE. This caused a problem when doing comparisons withBIGINTvalues outside of the signed range. -
Fixed bug in
BDBtables when querying empty tables. -
Fixed a bug when using
COUNT(DISTINCT)withLEFT JOINand there weren't any matching rows. -
Removed all documentation referring to the
GEMINItable type.GEMINIis not released under anOpen Sourcelicense.
-
The
AUTO_INCREMENTsequence wasn't reset when dropping and adding anAUTO_INCREMENTcolumn. -
CREATE ... SELECTnow creates non-unique indexes delayed. -
Fixed problem where
LOCK TABLES tbl_name READfollowed byFLUSH TABLESput an exclusive lock on the table. -
REAL @variablevalues were represented with only 2 digits when converted to strings. -
Fixed problem that client ``hung'' when
LOAD TABLE FROM MASTERfailed. -
myisamchk --fast --forcewill no longer repair tables that only had the open count wrong. -
Added functions to handle symbolic links to make life easier in 4.0.
-
We are now using the
-lcmathread library on HP-UX 10.20 so that MySQL will be more stable on HP-UX. -
Fixed problem with
IF()and number of decimals in the result. -
Fixed date-part extraction functions to work with dates where day and/or month is 0.
-
Extended argument length in option files from 256 to 512 chars.
-
Fixed problem with shutdown when
INSERT DELAYEDwas waiting for aLOCK TABLE. -
Fixed core dump bug in
InnoDBwhen tablespace was full. -
Fixed problem with
MERGEtables and big tables (> 4G) when usingORDER BY.
-
Fixed a bug when
SELECTfromMERGEtable sometimes results in incorrectly ordered rows. -
Fixed a bug in
REPLACE()when using theujischaracter set. -
Applied Sleepycat
BDBpatches 3.2.9.1 and 3.2.9.2. -
Added
--skip-stack-traceoption tomysqld. -
CREATE TEMPORARYnow works withInnoDBtables. -
InnoDBnow promotes sub keys to whole keys. -
Added option
CONCURRENTtoLOAD DATA. -
Better error message when slave
max_allowed_packetis too low to read a very long log event from the master. -
Fixed bug when too many rows where removed when using
SELECT DISTINCT ... HAVING. -
SHOW CREATE TABLEnow returnsTEMPORARYfor temporary tables. -
Added
Rows_examinedto slow query log. -
Fixed problems with function returning empty string when used together with a group function and a
WHEREthat didn't match any rows. -
New program
mysqlcheck. -
Added database name to output for administrative commands like
CHECK,REPAIR,OPTIMIZE. -
Lots of portability fixes for
InnoDB. -
Changed optimizer so that queries like
SELECT * FROM tbl_name,tbl_name2 ... ORDER BY key_part1 LIMIT row_countwill use index onkey_part1instead offilesort. -
Fixed bug when doing
LOCK TABLE to_table WRITE,...; INSERT INTO to_table... SELECT ...whento_tablewas empty. -
Fixed bug with
LOCK TABLEandBDBtables.
-
Fixed a bug when using
MATCH()inHAVINGclause. -
Fixed a bug when using
HEAPtables withLIKE. -
Added
--mysql-versionoption tosafe_mysqld -
Changed
INNOBASEtoInnoDB(because theINNOBASEname was already used). Allconfigureoptions andmysqldstart options now useinnodbinstead ofinnobase. This means that before upgrading to this version, you have to change any configuration files where you have usedinnobaseoptions! -
Fixed bug when using indexes on
CHAR(255) NULLcolumns. -
Slave thread will now be started even if
master-hostis not set, as long asserver-idis set and validmaster.infois present. -
Partial updates (terminated with kill) are now logged with a special error code to the binary log. Slave will refuse to execute them if the error code indicates the update was terminated abnormally, and will have to be recovered with
SET SQL_SLAVE_SKIP_COUNTER=1; SLAVE STARTafter a manual sanity check/correction of data integrity. -
Fixed bug that erroneously logged a drop of internal temporary table on thread termination to the binary log --- this bug affected replication.
-
Fixed a bug in
REGEXPon 64-bit machines. -
UPDATEandDELETEwithWHERE unique_key_part IS NULLdidn't update/delete all rows. -
Disabled
INSERT DELAYEDfor tables that support transactions. -
Fixed bug when using date functions on
TEXT/BLOBcolumn with wrong date format. -
UDFs now also work on Windows. (Patch by Ralph Mason.)
-
Fixed bug in
ALTER TABLEandLOAD DATA INFILEthat disabled key-sorting. These commands should now be faster in most cases. -
Fixed performance bug where reopened tables (tables that had been waiting for
FLUSHorREPAIR) would not use indexes for the next query. -
Fixed problem with
ALTER TABLEtoInnoDBtables on FreeBSD. -
Added
mysqldvariablesmyisam_max_sort_file_sizeandmyisam_max_extra_sort_file_size. -
Initialize signals early to avoid problem with signals in
InnoDB. -
Applied patch for the
tis620character set to make comparisons case-independent and to fix a bug inLIKEfor this character set. Note: All tables that uses thetis620character set must be fixed withmyisamchk -rorREPAIR TABLE! -
Added
--skip-safemallocoption tomysqld.
-
Fixed a bug that allowed use of database names containing a ‘
.’ character. This fixes a serious security issue whenmysqldis run as root. -
Fixed bug when thread creation failed (could happen when doing a lot of connections in a short time).
-
Fixed some problems with
FLUSH TABLESandTEMPORARYtables. (Problem with freeing the key cache and errorCan't reopen table....) -
Fixed a problem in
InnoDBwith other character sets thanlatin1and another problem when using many columns. -
Fixed bug that caused a core dump when using a very complex query involving
DISTINCTand summary functions. -
Added
SET TRANSACTION ISOLATION LEVEL ... -
Added
SELECT ... FOR UPDATE. -
Fixed bug where the number of affected rows was not returned when MySQL was compiled without transaction support.
-
Fixed a bug in
UPDATEwhere keys weren't always used to find the rows to be updated. -
Fixed a bug in
CONCAT_WS()where it returned incorrect results. -
Changed
CREATE ... SELECTandINSERT ... SELECTto not allow concurrent inserts as this could make the binary log hard to repeat. (Concurrent inserts are enabled if you are not using the binary or update log.) -
Changed some macros to be able to use fast mutex with
glibc2.2.
-
Fixed newly introduced bug in
ORDER BY. -
Fixed wrong define
CLIENT_TRANSACTIONS. -
Fixed bug in
SHOW VARIABLESwhen usingINNOBASEtables. -
Setting and using user variables in
SELECT DISTINCTdidn't work. -
Tuned
SHOW ANALYZEfor small tables. -
Fixed handling of arguments in the benchmark script
run-all-tests.
-
Added extra files to the distribution to allow
INNOBASEsupport to be compiled.
-
Added the
INNOBASEstorage engine and theBDBstorage engine to the MySQL source distribution. -
Updated the documentation about
GEMINItables. -
Fixed a bug in
INSERT DELAYEDthat caused threads to hang when insertingNULLinto anAUTO_INCREMENTcolumn. -
Fixed a bug in
CHECK TABLE/REPAIR TABLEthat could cause a thread to hang. -
REPLACEwill not replace a row that conflicts with anAUTO_INCREMENTgenerated key. -
mysqldnow only setsCLIENT_TRANSACTIONSinmysql->server_capabilitiesif the server supports a transaction-safe storage engine. -
Fixed
LOAD DATA INFILEto allow numeric values to be read intoENUMandSETcolumns. -
Improved error diagnostic for slave thread exit.
-
Fixed bug in
ALTER TABLE ... ORDER BY. -
Added
max_user_connectionsvariable tomysqld. -
Limit query length for replication by
max_allowed_packet, not the arbitrary limit of 4 MB. -
Allow space around
=in argument to--set-variable. -
Fixed problem in automatic repair that could leave some threads in state
Waiting for table. -
SHOW CREATE TABLEnow displays theUNION=()forMERGEtables. -
ALTER TABLEnow remembers the oldUNION=()definition. -
Fixed bug when replicating timestamps.
-
Fixed bug in bidirectional replication.
-
Fixed bug in the
BDBstorage engine that occurred when using an index on multi-part key where a key part may beNULL. -
Fixed
MAX()optimization on sub-key forBDBtables. -
Fixed problem where garbage results were returned when using
BDBtables andBLOBorTEXTfields when joining many tables. -
Fixed a problem with
BDBtables andTEXTcolumns. -
Fixed bug when using a
BLOBkey where a const row wasn't found. -
Fixed that
mysqlbinlogwrites the timestamp value for each query. This ensures that one gets same values for date functions likeNOW()when usingmysqlbinlogto pipe the queries to another server. -
Allow
--skip-gemini,--skip-bdb, and--skip-innodboptions to be specified when invokingmysqld, even if these storage engines are not compiled in tomysqld. -
One can now do
GROUP BY ... DESC. -
Fixed a deadlock in the
SETcode, when one ranSET @foo=bar, wherebaris a column reference, an error was not properly generated.
-
Fixed DNS lookups not to use the same mutex as the hostname cache. This will enable known hosts to be quickly resolved even if a DNS lookup takes a long time.
-
Added
--character-sets-diroption tomyisampack. -
Removed warnings when running
REPAIR TABLE ... EXTENDED. -
Fixed a bug that caused a core dump when using
GROUP BYon an alias, where the alias was the same as an existing column name. -
Added
SEQUENCE()as an exampleUDFfunction. -
Changed
mysql_install_dbto useBINARYforCHARcolumns in the privilege tables. -
Changed
TRUNCATE tbl_nametoTRUNCATE TABLE tbl_nameto use the same syntax as Oracle. Until 4.0 we will also allowTRUNCATE tbl_nameto not crash old code. -
Fixed ``no found rows'' bug in
MyISAMtables when aBLOBwas first part of a multi-part key. -
Fixed bug where
CASEdidn't work withGROUP BY. -
Added
--sort-recoveroption tomyisamchk. -
myisamchk -SandOPTIMIZE TABLEnow work on Windows. -
Fixed bug when using
DISTINCTon results from functions that referred to a group function, like:SELECT a, DISTINCT SEC_TO_TIME(SUM(a)) FROM tbl_name GROUP BY a, b;
-
Fixed buffer overrun in
libmysqlclientlibrary. Fixed bug in handlingSTOPevent afterROTATEevent in replication. -
Fixed another buffer overrun in
DROP DATABASE. -
Added
Table_locks_immediateandTable_locks_waitedstatus variables. -
Fixed bug in replication that broke slave server start with existing
master.info. This fixes a bug introduced in 3.23.32. -
Added
SET SQL_SLAVE_SKIP_COUNTER=ncommand to recover from replication glitches without a full database copy. -
Added
max_binlog_sizevariable; the binary log will be rotated automatically when the size crosses the limit. -
Added
Last_Error,Last_Errno, andSlave_skip_countervariables toSHOW SLAVE STATUS. -
Fixed bug in
MASTER_POS_WAIT()function. -
Execute core dump handler on
SIGILL, andSIGBUSin addition toSIGSEGV. -
On x86 Linux, print the current query and thread (connection) id, if available, in the core dump handler.
-
Fixed several timing bugs in the test suite.
-
Extended
mysqltestto take care of the timing issues in the test suite. -
ALTER TABLEcan now be used to change the definition for aMERGEtable. -
Fixed creation of
MERGEtables on Windows. -
Portability fixes for OpenBSD and OS/2.
-
Added
--temp-pooloption tomysqld. Using this option will cause most temporary files created to use a small set of names, rather than a unique name for each new file. This is to work around a problem in the Linux kernel dealing with creating a bunch of new files with different names. With the old behavior, Linux seems to "leak" memory, as it's being allocated to the directory entry cache instead of the disk cache.
-
Changed code to get around compiler bug in Compaq C++ on OSF/1, that broke
BACKUP,RESTORE,CHECK,REPAIR, andANALYZE TABLE. -
Added option
FULLtoSHOW COLUMNS. Now we show the privilege list for the columns only if this option is given. -
Fixed bug in
SHOW LOGSwhen there weren't anyBDBlogs. -
Fixed a timing problem in replication that could delay sending an update to the client until a new update was done.
-
Don't convert field names when using
mysql_list_fields(). This is to keep this code compatible withSHOW FIELDS. -
MERGEtables didn't work on Windows. -
Fixed problem with
SET PASSWORD=...on Windows. -
Added missing
my_config.hto RPM distribution. -
TRIM("foo" from "foo")didn't return an empty string. -
Added
--with-version-suffixoption toconfigure. -
Fixed core dump when client aborted connection without
mysql_close(). -
Fixed a bug in
RESTORE TABLEwhen trying to restore from a non-existent directory. -
Fixed a bug which caused a core dump on the slave when replicating
SET PASSWORD. -
Added
MASTER_POS_WAIT().
-
The test suite now tests all reachable
BDBinterface code. During testing we found and fixed many errors in the interface code. -
Using
HAVINGon an empty table could produce one result row when it shouldn't. -
Fixed the MySQL RPM so it no longer depends on Perl5.
-
Fixed some problems with
HEAPtables on Windows. -
SHOW TABLE STATUSdidn't show correct average row length for tables larger than 4G. -
CHECK TABLE ... EXTENDEDdidn't check row links for fixed size tables. -
Added option
MEDIUMtoCHECK TABLE. -
Fixed problem when using
DECIMAL()keys on negative numbers. -
HOUR()(and some otherTIMEfunctions) on aCHARcolumn always returnedNULL. -
Fixed security bug in something (please upgrade if you are using an earlier MySQL 3.23 version).
-
Fixed buffer overflow bug when writing a certain error message.
-
Added usage of
setrlimit()on Linux to get-O --open-files-limit=#to work on Linux. -
Added
bdb_versionvariable tomysqld. -
Fixed bug when using expression of type:
SELECT ... FROM t1 LEFT JOIN t2 ON (t1.a=t2.a) WHERE t1.a=t2.a
In this case the test in the
WHEREclause was wrongly optimized away. -
Fixed bug in
MyISAMwhen deleting keys with possibleNULLvalues, but the first key-column was not a prefix-compressed text column. -
Fixed
mysql.serverto read the[mysql.server]option file group rather than the[mysql_server]group. -
Fixed
safe_mysqldandmysql.serverto also read theserveroption section. -
Added
Threads_createdstatus variable tomysqld.
-
Added
SHOW OPEN TABLEScommand. -
Fixed that
myisamdumpworks against oldmysqldservers. -
Fixed
myisamchk -k#so that it works again. -
Fixed a problem with replication when the binary log file went over 2G on 32-bit systems.
-
LOCK TABLESwill now automatically start a new transaction. -
Changed
BDBtables to not use internal subtransactions and reuse open files to get more speed. -
Added
--mysqld=#option tosafe_mysqld. -
Allow hex constants in the
--fields-*-byand--lines-terminated-byoptions tomysqldumpandmysqlimport. By Paul DuBois. -
Added
--safe-show-databaseoption tomysqld. -
Added
have_bdb,have_gemini,have_innobase,have_raidandhave_openssltoSHOW VARIABLESto make it easy to test for supported extensions. -
Added
--open-files-limitoption tomysqld. -
Changed
--open-filesoption to--open-files-limitinsafe_mysqld. -
Fixed a bug where some rows were not found with
HEAPtables that had many keys. -
Fixed that
--bdb-no-syncworks. -
Changed
--bdb-recoverto--bdb-no-recoveras recover should be on by default. -
Changed the default number of
BDBlocks to 10000. -
Fixed a bug from 3.23.29 when allocating the shared structure needed for
BDBtables. -
Changed
mysqld_multi.shto use configure variables. Patch by Christopher McCrory. -
Added fixing of include files for Solaris 2.8.
-
Fixed bug with
--skip-networkingon Debian Linux. -
Fixed problem that some temporary files where reported as having the name
UNOPENEDin error messages. -
Fixed bug when running two simultaneous
SHOW LOGSqueries.
-
Configure updates for Tru64, large file support, and better TCP wrapper support. By Albert Chin-A-Young.
-
Fixed bug in
<=>operator. -
Fixed bug in
REPLACEwithBDBtables. -
LPAD()andRPAD()will shorten the result string if it's longer than the length argument. -
Added
SHOW LOGScommand. -
Remove unused
BDBlogs on shutdown. -
When creating a table, put
PRIMARYkeys first, followed byUNIQUEkeys. -
Fixed a bug in
UPDATEinvolving multi-part keys where one specified all key parts both in the update and theWHEREpart. In this case MySQL could try to update a record that didn't match the wholeWHEREpart. -
Changed drop table to first drop the tables and then the
.frmfile. -
Fixed a bug in the hostname cache which caused
mysqldto report the hostname as''in some error messages. -
Fixed a bug with
HEAPtype tables; the variablemax_heap_table_sizewasn't used. Now eitherMAX_ROWSormax_heap_table_sizecan be used to limit the size of aHEAPtype table. -
Changed the default server-id to 1 for masters and 2 for slaves to make it easier to use the binary log.
-
Renamed
bdb_lock_maxvariable tobdb_max_lock. -
Added support for
AUTO_INCREMENTon sub-fields forBDBtables. -
Added
ANALYZEofBDBtables. -
In
BDBtables, we now store the number of rows; this helps to optimize queries when we need an approximation of the number of rows. -
If we get an error in a multi-row statement, we now only roll back the last statement, not the entire transaction.
-
If you do a
ROLLBACKwhen you have updated a non-transactional table you will get an error as a warning. -
Added
--bdb-shared-dataoption tomysqld. -
Added
Slave_open_temp_tablesstatus variable tomysqld -
Added
binlog_cache_sizeandmax_binlog_cache_sizevariables tomysqld. -
DROP TABLE,RENAME TABLE,CREATE INDEXandDROP INDEXare now transaction endpoints. -
If you do a
DROP DATABASEon a symbolically linked database, both the link and the original database is deleted. -
Fixed
DROP DATABASEto work on OS/2. -
Fixed bug when doing a
SELECT DISTINCT ... table1 LEFT JOIN table2 ...whentable2was empty. -
Added
--abort-slave-event-countand--disconnect-slave-event-countoptions tomysqldfor debugging and testing of replication. -
Fixed replication of temporary tables. Handles everything except slave server restart.
-
SHOW KEYSnow shows whether key isFULLTEXT. -
New script
mysqld_multi. See Section 5.1.5, «mysqld_multi, un programme pour gérer plusieurs serveurs MySQL ». -
Added new script,
mysql-multi.server.sh. Thanks to Tim Bunce<Tim.Bunce@ig.co.uk>for modifyingmysql.serverto easily handle hosts running manymysqldprocesses. -
safe_mysqld,mysql.server, andmysql_install_dbhave been modified to usemysql_print_defaultsinstead of various hacks to read themy.cnffiles. In addition, the handling of various paths has been made more consistent with howmysqldhandles them by default. -
Automatically remove Berkeley DB transaction logs that no longer are in use.
-
Fixed bug with several
FULLTEXTindexes in one table. -
Added a warning if number of rows changes on
REPAIR/OPTIMIZE. -
Applied patches for OS/2 by
Yuri Dario. -
FLUSH TABLES tbl_namedidn't always flush the index tree to disk properly. -
--bootstrapis now run in a separate thread. This fixes a problem that causedmysql_install_dbto core dump on some Linux machines. -
Changed
mi_create()to use less stack space. -
Fixed bug with optimizer trying to over-optimize
MATCH()when used withUNIQUEkey. -
Changed
crash-meand the MySQL benchmarks to also work with FrontBase. -
Allow
RESTRICTandCASCADEafterDROP TABLEto make porting easier. -
Reset status variable which could cause problem if one used
--slow-log. -
Added
connect_timeoutvariable tomysqlandmysqladmin. -
Added
connect-timeoutas an alias fortimeoutfor option files read bymysql_options().
-
Added new options
--pager[=...],--no-pager,--tee=...and--no-teeto themysqlclient. The new corresponding interactive commands arepager,nopager,teeandnotee. See Section 8.3, «mysql, l'outil en ligne de commande »,mysql --helpand the interactive help for more information. -
Fixed crash when automatic repair of
MyISAMtable failed. -
Fixed a major performance bug in the table locking code when one constantly had a lot of
SELECT,UPDATEandINSERTstatements running. The symptom was that theUPDATEandINSERTqueries were locked for a long time while newSELECTstatements were executed before the updates. -
When reading
options_fileswithmysql_options()thereturn-found-rowsoption was ignored. -
One can now specify
interactive-timeoutin the option file that is read bymysql_options(). This makes it possible to force programs that run for a long time (likemysqlhotcopy) to use theinteractive_timeouttime instead of thewait_timeouttime. -
Added to the slow query log the time and the user name for each logged query. If you are using
--log-long-formatthen also queries that do not use an index are logged, even if the query takes less thanlong_query_timeseconds. -
Fixed a problem in
LEFT JOINwhich caused all columns in a reference table to beNULL. -
Fixed a problem when using
NATURAL JOINwithout keys. -
Fixed a bug when using a multi-part keys where the first part was of type
TEXTorBLOB. -
DROPof temporary tables wasn't stored in the update/binary log. -
Fixed a bug where
SELECT DISTINCT * ... LIMIT row_countonly returned one row. -
Fixed a bug in the assembler code in
strstr()for SPARC and cleaned up theglobal.hheader file to avoid a problem with bad aliasing with the compiler submitted with Red Hat 7.0. (Reported by Trond Eivind Glomsrød) -
The
--skip-networkingoption now works properly on NT. -
Fixed a long outstanding bug in the
ISAMtables when a row with a length of more than 65K was shortened by a single byte. -
Fixed a bug in
MyISAMwhen running multiple updating processes on the same table. -
Allow one to use
FLUSH TABLE tbl_name. -
Added
--replicate-ignore-table,--replicate-do-table,--replicate-wild-ignore-table, and--replicate-wild-do-tableoptions tomysqld. -
Changed all log files to use our own
IO_CACHEmechanism instead ofFILEto avoid OS problems when there are many files open. -
Added
--open-filesand--timezoneoptions tosafe_mysqld. -
Fixed a fatal bug in
CREATE TEMPORARY TABLE ... SELECT .... -
Fixed a problem with
CREATE TABLE ... SELECT NULL. -
Added variables
large_file_support,net_read_timeout,net_write_timeoutandquery_buffer_sizetoSHOW VARIABLES. -
Added status variables
created_tmp_filesandsort_merge_passestoSHOW STATUS. -
Fixed a bug where we didn't allow an index name after the
FOREIGN KEYdefinition. -
Added
TRUNCATE table_nameas a synonym forDELETE FROM table_name. -
Fixed a bug in a
BDBkey compare function when comparing part keys. -
Added
bdb_lock_maxvariable tomysqld. -
Added more tests to the benchmark suite.
-
Fixed an overflow bug in the client code when using overly long database names.
-
mysql_connect()now aborts on Linux if the server doesn't answer intimeoutseconds. -
SLAVE STARTdid not work if you started with--skip-slave-startand had not explicitly runCHANGE MASTER TO. -
Fixed the output of
SHOW MASTER STATUSto be consistent withSHOW SLAVE STATUS. (It now has no directory in the log name.) -
Added
PURGE MASTER LOGS TO. -
Added
SHOW MASTER LOGS. -
Added
--safemalloc-mem-limitoption tomysqldto simulate memory shortage when compiled with the--with-debug=fulloption. -
Fixed several core dumps in out-of-memory conditions.
-
SHOW SLAVE STATUSwas using an uninitialized mutex if the slave had not been started yet. -
Fixed bug in
ELT()andMAKE_SET()when the query used a temporary table. -
CHANGE MASTER TOwithout specifyingMASTER_LOG_POSwould set it to 0 instead of 4 and hit the magic number in the master binlog. -
ALTER TABLE ... ORDER BY ...syntax added. This will create the new table with the rows in a specific order.
-
Fixed a bug where the automatic repair of
MyISAMtables sometimes failed when the datafile was corrupt. -
Fixed a bug in
SHOW CREATEwhen usingAUTO_INCREMENTcolumns. -
Changed
BDBtables to use new compare function in Berkeley DB 3.2.3. -
You can now use Unix sockets with MIT-pthreads.
-
Added the
latin5(turkish) character set. -
Small portability fixes.
-
Renamed
FLUSH MASTERandFLUSH SLAVEtoRESET MASTERandRESET SLAVE. -
Fixed
<>to work properly withNULL. -
Fixed a problem with
SUBSTRING_INDEX()andREPLACE(). (Patch by Alexander Igonitchev) -
Fix
CREATE TEMPORARY TABLE IF NOT EXISTSnot to produce an error if the table exists. -
If you don't create a
PRIMARY KEYin aBDBtable, a hiddenPRIMARY KEYwill be created. -
Added read-only-key optimization to
BDBtables. -
LEFT JOINin some cases preferred a full table scan when there was noWHEREclause. -
When using
--log-slow-queries, don't count the time waiting for a lock. -
Fixed bug in lock code on Windows which could cause the key cache to report that the key file was crashed even if it was okay.
-
Automatic repair of
MyISAMtables if you startmysqldwith--myisam-recover. -
Removed the
TYPE=keyword fromCHECKandREPAIR. AllowCHECKoptions to be combined. (You can still useTYPE=, but this usage is deprecated.) -
Fixed mutex bug in the binary replication log --- long update queries could be read only in part by the slave if it did it at the wrong time, which was not fatal, but resulted in a performance-degrading reconnect and a scary message in the error log.
-
Changed the format of the binary log --- added magic number, server version, binlog version. Added the server ID and query error code for each query event.
-
Replication thread from the slave now will kill all the stale threads from the same server.
-
Long replication user names were not being handled properly.
-
Added
--replicate-rewrite-dboption tomysqld. -
Added
--skip-slave-startoption tomysqld. -
Updates that generated an error code (such as
INSERT INTO foo(some_key) values (1),(1)) erroneously terminated the slave thread. -
Added optimization of queries where
DISTINCTis only used on columns from some of the tables. -
Allow floating-point numbers where there is no sign after the exponent (like
1e1). -
SHOW GRANTSdidn't always show all column grants. -
Added
--default-extra-file=#option to all MySQL clients. -
Columns referenced in
INSERTstatements now are initialized properly. -
UPDATEdidn't always work when used with a range on a timestamp that was part of the key that was used to find rows. -
Fixed a bug in
FULLTEXTindex when inserting aNULLcolumn. -
Changed to use
mkstemp()instead oftempnam(). Based on a patch from John Jones.
-
Fixed that
databasenameworks as second argument tomysqlhotcopy. -
The values for the
UMASKandUMASK_DIRenvironment variables now can be specified in octal by beginning the value with a zero. -
Added
RIGHT JOIN. This makesRIGHTa reserved word. -
Added
@@IDENTITYas a synonym forLAST_INSERT_ID(). (This is for MSSQL compatibility.) -
Fixed a bug in
myisamchkandREPAIRwhen usingFULLTEXTindex. -
LOAD DATA INFILEnow works with FIFOs. (Patch by Toni L. Harbaugh-Blackford.) -
FLUSH LOGSbroke replication if you specified a log name with an explicit extension as the value of thelog-binoption. -
Fixed a bug in
MyISAMwith packed multi-part keys. -
Fixed crash when using
CHECK TABLEon Windows. -
Fixed a bug where
FULLTEXTindex always used thekoi8_ukrcharacter set. -
Fixed privilege checking for
CHECK TABLE. -
The
MyISAMrepair/reindex code didn't use the--tmpdiroption for its temporary files. -
Added
BACKUP TABLEandRESTORE TABLE. -
Fixed core dump on
CHANGE MASTER TOwhen the slave did not have the master to start with. -
Fixed incorrect
Timein the processlist forConnectof the slave thread. -
The slave now logs when it connects to the master.
-
Fixed a core dump bug when doing
FLUSH MASTERif you didn't specify a filename argument to--log-bin. -
Added missing
ha_berkeley.xfiles to the MySQL Windows distribution. -
Fixed some mutex bugs in the log code that could cause thread blocks if new log files couldn't be created.
-
Added lock time and number of selected processed rows to slow query log.
-
Added
--memlockoption tomysqldto lockmysqldin memory on systems with themlockall()call (as in Solaris). -
HEAPtables didn't use keys properly. (Bug from 3.23.23.) -
Added better support for
MERGEtables (keys, mapping, creation, documentation...). See Section 14.2, « Tables assembléesMERGE». -
Fixed bug in
mysqldumpfrom 3.23 which caused someCHARcolumns not to be quoted. -
Merged
analyze,check,optimizeand repair code. -
OPTIMIZE TABLEis now mapped toREPAIRwith statistics and sorting of the index tree. This means that for the moment it only works onMyISAMtables. -
Added a pre-alloced block to root_malloc to get fewer mallocs.
-
Added a lot of new statistics variables.
-
Fixed
ORDER BYbug withBDBtables. -
Removed warning that
mysqldcouldn't remove the.pidfile under Windows. -
Changed
--log-isamto logMyISAMtables instead of isam tables. -
Fixed
CHECK TABLEto work on Windows. -
Added file mutexes to make
pwrite()safe on Windows.
-
Added
created_tmp_disk_tablesvariable tomysqld. -
To make it possible to reliably dump and restore tables with
TIMESTAMP(X)columns, MySQL now reports columns withXother than 14 or 8 to be strings. -
Changed sort order for
latin1as it was before MySQL Version 3.23.23. Any table that was created or modified with 3.23.22 must be repaired if it hasCHARcolumns that may contain characters with ASCII values greater than 128! -
Fixed small memory leak introduced from 3.23.22 when creating a temporary table.
-
Fixed problem with
BDBtables and reading on a unique (not primary) key. -
Restored the
win1251character set (it's now only marked deprecated).
-
Changed sort order for 'German'; all tables created with 'German' sortorder must be repaired with
REPAIR TABLEormyisamchkbefore use! -
Added
--core-fileoption tomysqldto get a core file on Linux ifmysqlddies on theSIGSEGVsignal. -
MySQL client
mysqlnow starts with option--no-named-commands(-g) by default. This option can be disabled with--enable-named-commands(-G). This may cause incompatibility problems in some cases, for example, in SQL scripts that use named commands without a semicolon, etc.! Long format commands still work from the first line. -
Fixed a problem when using many pending
DROP TABLEstatements at the same time. -
Optimizer didn't use keys properly when using
LEFT JOINon an empty table. -
Added shorter help text when invoking
mysqldwith incorrect options. -
Fixed non-fatal
free()bug inmysqlimport. -
Fixed bug in
MyISAMindex handling ofDECIMAL/NUMERICkeys. -
Fixed a bug in concurrent insert in
MyISAMtables. In some contexts, usage ofMIN(key_part)orMAX(key_part)returned an empty set. -
Updated
mysqlhotcopyto use the newFLUSH TABLES table_listsyntax. Only tables which are being backed up are flushed now. -
Changed behavior of
--enable-thread-safe-clientso that both non-threaded (-lmysqlclient) and threaded (-lmysqlclient_r) libraries are built. Users who linked against a threaded-lmysqlclientwill need to link against-lmysqlclient_rnow. -
Added atomic
RENAME TABLEcommand. -
Don't count
NULLvalues inCOUNT(DISTINCT ...). -
Changed
ALTER TABLE,LOAD DATA INFILEon empty tables andINSERT ... SELECT ...on empty tables to create non-unique indexes in a separate batch with sorting. This will make the above calls much faster when you have many indexes. -
ALTER TABLEnow logs the first used insert_id correctly. -
Fixed crash when adding a default value to a
BLOBcolumn. -
Fixed a bug with
DATE_ADD/DATE_SUBwhere it returned a datetime instead of a date. -
Fixed a problem with the thread cache which made some threads show up as
***DEAD***inSHOW PROCESSLIST. -
Fixed a lock in our thr_rwlock code, which could make selects that run at the same time as concurrent inserts crash. This only affects systems that don't have the
pthread_rwlock_rdlockcode. -
When deleting rows with a non-unique key in a
HEAPtable, all rows weren't always deleted. -
Fixed bug in range optimizer for
HEAPtables for searches on a part index. -
Fixed
SELECTon part keys to work withBDBtables. -
Fixed
INSERT INTO bdb_table ... SELECTto work withBDBtables. -
CHECK TABLEnow updates key statistics for the table. -
ANALYZE TABLEwill now only update tables that have been changed since the lastANALYZE. Note that this is a new feature and tables will not be marked to be analysed until they are updated in any way with 3.23.23 or newer. For older tables, you have to doCHECK TABLEto update the key distribution. -
Fixed some minor privilege problems with
CHECK,ANALYZE,REPAIRandSHOW CREATEcommands. -
Added
CHANGE MASTER TOstatement. -
Added
FAST,QUICKEXTENDEDcheck types toCHECK TABLES. -
Changed
myisamchkso that--fastand--check-only-changedare also honored with--sort-indexand--analyze. -
Fixed fatal bug in
LOAD TABLE FROM MASTERthat did not lock the table during index re-build. -
LOAD DATA INFILEbroke replication if the database was excluded from replication. -
More variables in
SHOW SLAVE STATUSandSHOW MASTER STATUS. -
SLAVE STOPnow will not return until the slave thread actually exits. -
Full-text search via the
MATCH()function andFULLTEXTindex type (forMyISAMfiles). This makesFULLTEXTa reserved word.
-
Fixed that
lex_hash.his created properly for each MySQL distribution. -
Fixed that
MASTERandCOLLECTIONare not reserved words. -
The log generated by
--slow-query-logdidn't contain the whole queries. -
Fixed that open transactions in
BDBtables are rolled back if the connection is closed unexpectedly. -
Added workaround for a bug in
gcc2.96 (intel) andgcc2.9 (IA-64) ingen_lex_hash.c. -
Fixed memory leak in the client library when using
host=in themy.cnffile. -
Optimized functions that manipulate the hours/minutes/seconds.
-
Fixed bug when comparing the result of
DATE_ADD()/DATE_SUB()against a number. -
Changed the meaning of
-F, --fastformyisamchk. Added-C, --check-only-changedoption tomyisamchk. -
Added
ANALYZE tbl_nameto update key statistics for tables. -
Changed binary items
0x...to be regarded as integers by default. -
Fix for SCO and
SHOW PROCESSLIST. -
Added
auto-rehashon reconnect for themysqlclient. -
Fixed a newly introduced bug in
MyISAM, where the index file couldn't get bigger than 64M. -
Added
SHOW MASTER STATUSandSHOW SLAVE STATUS.
-
Added
mysql_character_set_name()function to the MySQL C API. -
Made the update log ASCII 0 safe.
-
Added the
mysql_configscript. -
Fixed problem when using
<or>with a char column that was only partly indexed. -
One would get a core dump if the log file was not readable by the MySQL user.
-
Changed
mysqladminto useCREATE DATABASEandDROP DATABASEstatements instead of the old deprecated API calls. -
Fixed
chownwarning insafe_mysqld. -
Fixed a bug in
ORDER BYthat was introduced in 3.23.19. -
Only optimize the
DELETE FROM tbl_nameto do a drop+create of the table if we are inAUTOCOMMITmode (needed forBDBtables). -
Added extra checks to avoid index corruption when the
ISAM/MyISAMindex files get full during anINSERT/UPDATE. -
myisamchkdidn't correctly update row checksum when used with-ro(this only gave a warning in subsequent runs). -
Fixed bug in
REPAIR TABLEso that it works with tables without indexes. -
Fixed buffer overrun in
DROP DATABASE. -
LOAD TABLE FROM MASTERis sufficiently bug-free to announce it as a feature. -
MATCHandAGAINSTare now reserved words.
-
Fixed bug in 3.23.19;
DELETE FROM tbl_nameremoved the.frmfile. -
Added
SHOW CREATE TABLE.
-
Changed copyright for all files to GPL for the server code and utilities and to LGPL for the client libraries. See http://www.fsf.org/licenses/.
-
Fixed bug where all rows matching weren't updated on a
MyISAMtable when doing update based on key on a table with many keys and some key changed values. -
The Linux MySQL RPMs and binaries are now statically linked with a linuxthread version that has faster mutex handling when used with MySQL.
-
ORDER BYcan now useREFkeys to find subsets of the rows that need to be sorted. -
Changed name of
print_defaultsprogram tomy_print_defaultsto avoid name confusion. -
Fixed
NULLIF()to work as required by standard SQL. -
Added
net_read_timeoutandnet_write_timeoutas startup parameters tomysqld. -
Fixed bug that destroyed index when doing
myisamchk --sort-recordson a table with prefix compressed index. -
Added
pack_isamandmyisampackto the standard MySQL distribution. -
Added the syntax
BEGIN WORK(the same asBEGIN). -
Fixed core dump bug when using
ORDER BYon aCONV()expression. -
Added
LOAD TABLE FROM MASTER. -
Added
FLUSH MASTERandFLUSH SLAVE. -
Fixed big/little endian problem in the replication.
-
Fixed a problem from 3.23.17 when choosing character set on the client side.
-
Added
FLUSH TABLES WITH READ LOCKto make a global lock suitable for making a copy of MySQL datafiles. -
CREATE TABLE ... SELECT ... PROCEDUREnow works. -
Internal temporary tables will now use compressed index when using
GROUP BYonVARCHAR/CHARcolumns. -
Fixed a problem when locking the same table with both a
READand aWRITElock. -
Fixed problem with
myisamchkandRAIDtables.
-
Fixed a bug in
FIND_IN_SET()when the first argument wasNULL. -
Added table locks to Berkeley DB.
-
Fixed a bug with
LEFT JOINandORDER BYwhere the first table had only one matching row. -
Added 4 sample
my.cnfexample files in thesupport-filesdirectory. -
Fixed
duplicated keyproblem when doing bigGROUP BYoperations. (This bug was probably introduced in 3.23.15.) -
Changed syntax for
INNER JOINto match SQL-99. -
Added
NATURAL JOINsyntax. -
A lot of fixes in the
BDBinterface. -
Added handling of
--no-defaultsand--defaults-filetosafe_mysqld.shandmysql_install_db.sh. -
Fixed bug in reading compressed tables with many threads.
-
Fixed that
USE INDEXworks withPRIMARYkeys. -
Added
BEGINstatement to start a transaction inAUTOCOMMITmode. -
Added support for symbolic links for Windows.
-
Changed protocol to let client know if the server is in
AUTOCOMMITmode and if there is a pending transaction. If there is a pending transaction, the client library will give an error before reconnecting to the server to let the client know that the server did a rollback. The protocol is still backward-compatible with old clients. -
KILLnow works on a thread that is locked on a 'write' to a dead client. -
Fixed memory leak in the replication slave thread.
-
Added new
log-slave-updatesoption tomysqld, to allow daisy-chaining the slaves. -
Fixed compile error on FreeBSD and other systems where
pthread_tis not the same asint. -
Fixed master shutdown aborting the slave thread.
-
Fixed a race condition in
INSERT DELAYEDcode when doingALTER TABLE. -
Added deadlock detection sanity checks to
INSERT DELAYED.
-
Added
SLAVE STARTandSLAVE STOPstatements. -
Added
TYPE=QUICKoption toCHECKand toREPAIR. -
Fixed bug in
REPAIR TABLEwhen the table was in use by other threads. -
Added a thread cache to make it possible to debug MySQL with
gdbwhen one does a lot of reconnects. This will also improve systems where you can't use persistent connections. -
Lots of fixes in the Berkeley DB interface.
-
UPDATE IGNOREwill not abort if an update results in aDUPLICATE_KEYerror. -
Put
CREATE TEMPORARY TABLEcommands in the update log. -
Fixed bug in handling of masked IP numbers in the privilege tables.
-
Fixed bug with
delay_key_writetables andCHECK TABLE. -
Added
replicate-do-dbandreplicate-ignore-dboptions tomysqld, to restrict which databases get replicated. -
Added
SQL_LOG_BINoption.
-
To start
mysqldasroot, you must now use the--user=rootoption. -
Added interface to Berkeley DB. (This is not yet functional; play with it at your own risk!)
-
Replication between master and slaves.
-
Fixed bug that other threads could steal a lock when a thread had a lock on a table and did a
FLUSH TABLEScommand. -
Added the
slow_launch_timevariable and theSlow_launch_threadsstatus variable tomysqld. These can be examined withmysqladmin variablesandmysqladmin extended-status. -
Added functions
INET_NTOA()andINET_ATON(). -
The default type of
IF()now depends on the second and third arguments and not only on the second argument. -
Fixed case when
myisamchkcould go into a loop when trying to repair a crashed table. -
Don't write
INSERT DELAYEDto update log ifSQL_LOG_UPDATE=0. -
Fixed problem with
REPLACEonHEAPtables. -
Added possible character sets and time zone to
SHOW VARIABLESoutput. -
Fixed bug in locking code that could result in locking problems with concurrent inserts under high load.
-
Fixed a problem with
DELETEof many rows on a table with compressed keys where MySQL scanned the index to find the rows. -
Fixed problem with
CHECKon table with deleted keyblocks. -
Fixed a bug in reconnect (at the client side) where it didn't free memory properly in some contexts.
-
Fixed problems in update log when using
LAST_INSERT_ID()to update a table with anAUTO_INCREMENTkey. -
Added
NULLIF()function. -
Fixed bug when using
LOAD DATA INFILEon a table withBLOB/TEXTcolumns. -
Optimized
MyISAMto be faster when inserting keys in sorted order. -
EXPLAIN SELECT ...now also prints out whether MySQL needs to create a temporary table or use file sorting when resolving theSELECT. -
Added optimization to skip
ORDER BYparts where the part is a constant expression in theWHEREpart. Indexes can now be used even if theORDER BYdoesn't match the index exactly, as long as all the unused index parts and all the extraORDER BYcolumns are constants in theWHEREclause. See Section 7.4.5, « Comment MySQL utilise les index ». -
UPDATEandDELETEon a whole unique key in theWHEREpart are now faster than before. -
Changed
RAID_CHUNKSIZEto be in 1024-byte increments. -
Fixed core dump in
LOAD_FILE(NULL).
-
Added
mysqlbinlogprogram for displaying binary log files in text format. -
Added
mysql_real_escape_string()function to the MySQL C API. -
Fixed a bug in
CONCAT()where one of the arguments was a function that returned a modified argument. -
Fixed a critical bug in
myisamchk, where it updated the header in the index file when one only checked the table. This confused themysqlddaemon if it updated the same table at the same time. Now the status in the index file is only updated if one uses--update-state. With oldermyisamchkversions you should use--read-onlywhen only checking tables, if there is the slightest chance that themysqldserver is working on the table at the same time! -
Fixed that
DROP TABLEis logged in the update log. -
Fixed problem when searching on
DECIMAL()key field where the column data contained leading zeros. -
Fix bug in
myisamchkwhen theAUTO_INCREMENTcolumn isn't the first key. -
Allow
DATETIMEin ISO8601 format: 2000-03-12T12:00:00 -
Dynamic character sets. A
mysqldbinary can now handle many different character sets (you can choose which when startingmysqld). -
Added command
REPAIR TABLE. -
Added
mysql_thread_safe()function to the MySQL C API. -
Added the
UMASK_DIRenvironment variable. -
Added
CONNECTION_ID()function to return the client connection thread ID. -
When using
=onBLOBorVARCHAR BINARYkeys, where only a part of the column was indexed, the whole column of the result row wasn't compared. -
Fix for
sjischaracter set andORDER BY. -
When running in ANSI mode, don't allow columns to be used that aren't in the
GROUP BYpart.
-
Fixed problem when doing locks on the same table more than 2 times in the same
LOCK TABLEcommand; this fixed the problem one got when running the test-ATIS test with--fastor--check-only-changed. -
Added
SQL_BUFFER_RESULToption toSELECT. -
Removed end space from double/float numbers in results from temporary tables.
-
Added
CHECK TABLEcommand. -
Added changes for
MyISAMin 3.23.12 that didn't get into the source distribution because of CVS problems. -
Fixed bug so that
mysqladmin shutdownwill wait for the local server to close down. -
Fixed a possible endless loop when calculating timestamp.
-
Added
print_defaultsprogram to the.rpmfiles. Removedmysqlbugfrom the client.rpmfile.
-
Fixed bug in
MyISAMinvolvingREPLACE ... SELECT ...which could give a corrupted table. -
Fixed bug in
myisamchkwhere it incorrectly reset theAUTO_INCREMENTvalue. -
LOTS of patches for Linux Alpha. MySQL now appears to be relatively stable on Alpha.
-
Changed
DISTINCTonHEAPtemporary tables to use hashed keys to quickly find duplicated rows. This mostly concerns queries of typeSELECT DISTINCT ... GROUP BY .... This fixes a problem where not all duplicates were removed in queries of the above type. In addition, the new code is MUCH faster. -
Added patches to make MySQL compile on Mac OS X.
-
Added
IF NOT EXISTSclause toCREATE DATABASE. -
Added
--all-databasesand--databasesoptions tomysqldumpto allow dumping of many databases at the same time. -
Fixed bug in compressed
DECIMAL()index inMyISAMtables. -
Fixed bug when storing 0 into a timestamp.
-
When doing
mysqladmin shutdownon a local connection,mysqladminnow waits until the PID file is gone before terminating. -
Fixed core dump with some
COUNT(DISTINCT ...)queries. -
Fixed that
myisamchkworks properly with RAID tables. -
Fixed problem with
LEFT JOINandkey_field IS NULL. -
Fixed bug in
net_clear()which could give the errorAborted connectionin the MySQL clients. -
Added options
USE INDEX (key_list)andIGNORE INDEX (key_list)as parameters inSELECT. -
DELETEandRENAMEshould now work onRAIDtables.
-
Allow the
ALTER TABLE tbl_name ADD (field_list)syntax. -
Fixed problem with optimizer that could sometimes use incorrect keys.
-
Fixed that
GRANT/REVOKE ALL PRIVILEGESdoesn't affectGRANT OPTION. -
Removed extra ‘
)’ from the output ofSHOW GRANTS. -
Fixed problem when storing numbers in timestamps.
-
Fix problem with timezones that have half hour offsets.
-
Allow the syntax
UNIQUE INDEXinCREATEstatements. -
mysqlhotcopy- fast online hot-backup utility for local MySQL databases. By Tim Bunce. -
New more secure
mysqlaccess. Thanks to Steve Harvey for this. -
Added
--i-am-a-dummyand--safe-updatesoptions tomysql. -
Added
select_limitandmax_join_sizevariables tomysql. -
Added
SQL_MAX_JOIN_SIZEandSQL_SAFE_UPDATESoptions. -
Added
READ LOCALlock that doesn't lock the table for concurrent inserts. (This is used bymysqldump.) -
Changed that
LOCK TABLES ... READno longer allows concurrent inserts. -
Added
--skip-delay-key-writeoption tomysqld. -
Fixed security problem in the protocol regarding password checking.
-
_rowidcan now be used as an alias for an integer type unique indexed column. -
Added back blocking of
SIGPIPEwhen compiling with--thread-safe-clientsto make things safe for old clients.
-
Fixed bug in 3.23.9 where memory wasn't properly freed when using
LOCK TABLES.
-
Fixed problem that affected queries that did arithmetic on group functions.
-
Fixed problem with timestamps and
INSERT DELAYED. -
Fixed that
date_col BETWEEN const_date AND const_dateworks. -
Fixed problem when only changing a 0 to
NULLin a table withBLOB/TEXTcolumns. -
Fixed bug in range optimizer when using many key parts and or on the middle key parts:
WHERE K1=1 and K3=2 and (K2=2 and K4=4 or K2=3 and K4=5) -
Added
sourcecommand tomysqlto allow reading of batch files inside themysqlclient. Original patch by Matthew Vanecek. -
Fixed critical problem with the
WITH GRANT OPTIONoption. -
Don't give an unnecessary
GRANTerror when using tables from many databases in the same query. -
Added VIO wrapper (needed for SSL support; by Andrei Errapart and Tõnu Samuel).
-
Fixed optimizer problem on
SELECTwhen using many overlapping indexes. MySQL should now be able to choose keys even better when there are many keys to choose from. -
Changed optimizer to prefer a range key instead of a ref key when the range key can uses more columns than the ref key (which only can use columns with
=). For example, the following type of queries should now be faster:SELECT * from key_part_1=const and key_part_2 > const2 -
Fixed bug that a change of all
VARCHARcolumns toCHARcolumns didn't change row type from dynamic to fixed. -
Disabled floating-point exceptions for FreeBSD to fix core dump when doing
SELECT FLOOR(POW(2,63)). -
Renamed
mysqldstartup option from--delay-key-writeto--delay-key-write-for-all-tables. -
Added
read-next-on-keytoHEAPtables. This should fix all problems withHEAPtables when using non-UNIQUEkeys. -
Added option to print default arguments to all clients.
-
Added
--log-slow-queriesoption tomysqldto log all queries that take a long time to a separate log file with a time indicating how long the query took. -
Fixed core dump when doing
WHERE key_col=RAND(...). -
Fixed optimization bug in
SELECT ... LEFT JOIN ... key_col IS NULL, whenkey_colcould containNULLvalues. -
Fixed problem with 8-bit characters as separators in
LOAD DATA INFILE.
-
Fixed problem when handling indexfiles larger than 8G.
-
Added latest patches to MIT-pthreads for NetBSD.
-
Fixed problem with timezones that are < GMT - 11.
-
Fixed a bug when deleting packed keys in
NISAM. -
Fixed problem with
ISAMwhen doing someORDER BY ... DESCqueries. -
Fixed bug when doing a join on a text key which didn't cover the whole key.
-
Option
--delay-key-writedidn't enable delayed key writing. -
Fixed update of
TEXTcolumn which involved only case changes. -
Fixed that
INSERT DELAYEDdoesn't update timestamps that are given. -
Added function
YEARWEEK()and optionsx,X,vandVtoDATE_FORMAT(). -
Fixed problem with
MAX(indexed_column)andHEAPtables. -
Fixed problem with
BLOB NULLkeys andLIKE "prefix%". -
Fixed problem with
MyISAMand fixed-length rows < 5 bytes. -
Fixed problem that could cause MySQL to touch freed memory when doing very complicated
GROUP BYqueries. -
Fixed core dump if you got a crashed table where an
ENUMfield value was too big.
-
Fixed workaround under Linux to avoid problems with
pthread_mutex_timedwait(), which is used withINSERT DELAYED. See Section 2.8.1, « Notes relatives à Linux (toutes versions) ». -
Fixed that one will get a 'disk full' error message if one gets disk full when doing sorting (instead of waiting until we got more disk space).
-
Fixed a bug in
MyISAMwith keys > 250 characters. -
In
MyISAMone can now do anINSERTat the same time as other threads are reading from the table. -
Added
max_write_lock_countvariable tomysqldto force aREADlock after a certain number ofWRITElocks. -
Inverted flag
delay_key_writeonshow variables. -
Renamed
concurrencyvariable tothread_concurrency. -
The following functions are now multi-byte-safe:
LOCATE(substr,str),POSITION(substr IN str),LOCATE(substr,str,pos),INSTR(str,substr),LEFT(str,len),RIGHT(str,len),SUBSTRING(str,pos,len),SUBSTRING(str FROM pos FOR len),MID(str,pos,len),SUBSTRING(str,pos),SUBSTRING(str FROM pos),SUBSTRING_INDEX(str,delim,count),RTRIM(str),TRIM([[BOTH | TRAILING] [remstr] FROM] str),REPLACE(str,from_str,to_str),REVERSE(str),INSERT(str,pos,len,newstr),LCASE(str),LOWER(str),UCASE(str)andUPPER(str); patch by Wei He. -
Fix core dump when releasing a lock from a non-existent table.
-
Remove locks on tables before starting to remove duplicates.
-
Added option
FULLtoSHOW PROCESSLIST. -
Added option
--verbosetomysqladmin. -
Fixed problem when automatically converting
HEAPtoMyISAM. -
Fixed bug in
HEAPtables when doing insert + delete + insert + scan the table. -
Fixed bugs on Alpha with
REPLACE()andLOAD DATA INFILE. -
Added
interactive_timeoutvariable tomysqld. -
Changed the argument to
mysql_data_seek()fromulongtoulonglong.
-
Added
-O lower_case_table_names={0|1}option tomysqldto allow users to force table names to lowercase. -
Added
SELECT ... INTO DUMPFILE. -
Added
--ansioption tomysqldto make some functions SQL-99 compatible. -
Temporary table names now start with
#sql. -
Added quoting of identifiers with
`("in--ansimode). -
Changed to use
snprintf()when printing floats to avoid some buffer overflows on FreeBSD. -
Made
FLOOR()overflow safe on FreeBSD. -
Added
--quote-namesoption tomysqldump. -
Fixed bug that one could make a part of a
PRIMARY KEY NOT NULL. -
Fixed
encrypt()to be thread-safe and not reuse buffer. -
Added
mysql_odbc_escape_string()function to support big5 characters in MyODBC. -
Rewrote the storage engine to use classes. This introduces a lot of new code, but will make table handling faster and better.
-
Added patch by Sasha for user-defined variables.
-
Changed that
FLOATandDOUBLE(without any length modifiers) no longer are fixed decimal point numbers. -
Changed the meaning of
FLOAT(X): Now this is the same asFLOATifX<= 24 and aDOUBLEif 24 <X<= 53. -
DECIMAL(X)is now an alias forDECIMAL(X,0)andDECIMALis now an alias forDECIMAL(10,0). The same goes forNUMERIC. -
Added option
ROW_FORMAT={DEFAULT | DYNAMIC | FIXED | COMPRESSED}toCREATE_TABLE. -
DELETE FROM table_namedidn't work on temporary tables. -
Changed function
CHAR_LENGTH()to be multi-byte character safe. -
Added function
ORD(string).
-
Fixed some Y2K problems in the new date handling in 3.23.
-
Fixed problem with
SELECT DISTINCT ... ORDER BY RAND(). -
Added patches by Sergei A. Golubchik for text searching on the
MyISAMlevel. -
Fixed cache overflow problem when using full joins without keys.
-
Fixed some configure issues.
-
Some small changes to make parsing faster.
-
Adding a column after the last field with
ALTER TABLEdidn't work. -
Fixed problem when using an
AUTO_INCREMENTcolumn in two keys -
With
MyISAM, you now can have anAUTO_INCREMENTcolumn as a key sub part:CREATE TABLE foo (a INT NOT NULL AUTO_INCREMENT, b CHAR(5), PRIMARY KEY (b,a)) -
Fixed bug in
MyISAMwith packed char keys that could beNULL. -
ASon field name withCREATE TABLE table_name SELECT ...didn't work. -
Allow use of
NATIONALandNCHARwhen defining character columns. This is the same as not usingBINARY. -
Don't allow
NULLcolumns in aPRIMARY KEY(only inUNIQUEkeys). -
Clear
LAST_INSERT_ID()if one uses this in ODBC:WHERE auto_increment_column IS NULL. This seems to fix some problems with Access. -
SET SQL_AUTO_IS_NULL=0|1now turns on/off the handling of searching after the last inserted row withWHERE auto_increment_column IS NULL. -
Added new variable
concurrencytomysqldfor Solaris. -
Added
--relativeoption tomysqladminto makeextended-statusmore useful to monitor changes. -
Fixed bug when using
COUNT(DISTINCT ...)on an empty table. -
Added support for the Chinese character set GBK.
-
Fixed problem with
LOAD DATA INFILEandBLOBcolumns. -
Added bit operator
~(negation). -
Fixed problem with
UDFfunctions.
-
Inserting a
DATETIMEinto aTIMEcolumn no longer will try to store 'days' in it. -
Fixed problem with storage of float/double on little endian machines. (This affected
SUM().) -
Added connect timeout on TCP/IP connections.
-
Fixed problem with
LIKE "%"on an index that may haveNULLvalues. -
REVOKE ALL PRIVILEGESdidn't revoke all privileges. -
Allow creation of temporary tables with same name as the original table.
-
When granting a user a
GRANToption for a database, he couldn't grant privileges to other users. -
New command:
SHOW GRANTS FOR user(by Sinisa). -
New
date_addsyntax:date/datetime + INTERVAL # interval_type. By Joshua Chamas. -
Fixed privilege check for
LOAD DATA REPLACE. -
Automatic fixing of broken include files on Solaris 2.7
-
Some configure issues to fix problems with big filesystem detection.
-
REGEXPis now case-insensitive if you use non-binary strings.
-
Added patches for MIT-pthreads on NetBSD.
-
Fixed range bug in
MyISAM. -
ASCis now the default again forORDER BY. -
Added
LIMITtoUPDATE. -
Added
mysql_change_user()function to the MySQL C API. -
Added character set to
SHOW VARIABLES. -
Added support of
--[whitespace]comments. -
Allow
INSERT into tbl_name VALUES (), that is, you may now specify an empty value list to insert a row in which each column is set to its default value. -
Changed
SUBSTRING(text FROM pos)to conform to SQL-99. (Before this construct returned the rightmostposcharacters.) -
SUM()withGROUP BYreturned 0 on some systems. -
Changed output for
SHOW TABLE STATUS. -
Added
DELAY_KEY_WRITEoption toCREATE TABLE. -
Allow
AUTO_INCREMENTon any key part. -
Fixed problem with
YEAR(NOW())andYEAR(CURDATE()). -
Added
CASEconstruct. -
New function
COALESCE().
-
Fixed range optimizer bug:
SELECT * FROM table_name WHERE key_part1 >= const AND (key_part2 = const OR key_part2 = const). The bug was that some rows could be duplicated in the result. -
Running
myisamchkwithout-aupdated the index distribution incorrectly. -
SET SQL_LOW_PRIORITY_UPDATES=1was causing a parse error. -
You can now update index columns that are used in the
WHEREclause.UPDATE tbl_name SET KEY=KEY+1 WHERE KEY > 100 -
Date handling should now be a bit faster.
-
Added handling of fuzzy dates (dates where day or month is 0), such as
'1999-01-00'. -
Fixed optimization of
SELECT ... WHERE key_part1=const1 AND key_part_2=const2 AND key_part1=const4 AND key_part2=const4; indextype should berangeinstead ofref. -
Fixed
egcs1.1.2 optimizer bug (when usingBLOBvalues) on Linux Alpha. -
Fixed problem with
LOCK TABLEScombined withDELETE FROM table. -
MyISAMtables now allow keys onNULLandBLOB/TEXTcolumns. -
The following join is now much faster:
SELECT ... FROM t1 LEFT JOIN t2 ON ... WHERE t2.not_null_column IS NULL. -
ORDER BYandGROUP BYcan be done on functions. -
Changed handling of 'const_item' to allow handling of
ORDER BY RAND(). -
Indexes are now used for
WHERE key_column = function. -
Indexes are now used for
WHERE key_column = col_nameeven if the columns are not identically packed. -
Indexes are now used for
WHERE col_name IS NULL. -
Changed heap tables to be stored in low_byte_first order (to make it easy to convert to
MyISAMtables) -
Automatic change of
HEAPtemporary tables toMyISAMtables in case of ``table is full'' errors. -
Added
--init-file=file_nameoption tomysqld. -
Added
COUNT(DISTINCT value, [value, ...]). -
CREATE TEMPORARY TABLEnow creates a temporary table, in its own namespace, that is automatically deleted if connection is dropped. -
New reserved words (required for
CASE):CASE, THEN, WHEN, ELSE and END. -
New functions
EXPORT_SET()andMD5(). -
Support for the GB2312 Chinese character set.
-
A new storage engine library (
MyISAM) with a lot of new features. See Section 14.1, « Le moteur de tablesMyISAM». -
You can create in-memory
HEAPtables which are extremely fast for lookups. -
Support for big files (63-bit) on OSs that support big files.
-
New function
LOAD_FILE(filename)to get the contents of a file as a string value. -
New
<=>operator that acts as=but returns TRUE if both arguments areNULL. This is useful for comparing changes between tables. -
Added the ODBC 3.0
EXTRACT(interval FROM datetime)function. -
Columns defined as
FLOAT(X)are not rounded on storage and may be in scientific notation (1.0 E+10) when retrieved. -
REPLACEis now faster than before. -
Changed
LIKEcharacter comparison to behave as=; This means that'e' LIKE 'é'is now true. (If the line doesn't display correctly, the latter 'e' is a French 'e' with an acute accent above.) -
SHOW TABLE STATUSreturns a lot of information about the tables. -
Added
LIKEto theSHOW STATUScommand. -
Added
Privilegescolumn toSHOW COLUMNS. -
Added
PackedandCommentcolumns toSHOW INDEX. -
Added comments to tables (with
CREATE TABLE ... COMMENT "xxx"). -
Added
UNIQUE, as inCREATE TABLE tbl_name (col INT not null UNIQUE) -
New create syntax:
CREATE TABLE tbl_name SELECT ... -
New create syntax:
CREATE TABLE IF NOT EXISTS ... -
Allow creation of
CHAR(0)columns. -
DATE_FORMAT()now requires ‘%’ before any format character. -
DELAYEDis now a reserved word (sorry about that :( ). -
An example procedure is added:
analyse, file:sql_analyse.c. This will describe the data in your query. Try the following:SELECT ... FROM ... WHERE ... PROCEDURE ANALYSE([max elements,[max memory]])
This procedure is extremely useful when you want to check the data in your table!
-
BINARYcast to force a string to be compared in case-sensitive fashion. -
Added
--skip-show-databaseoption tomysqld. -
Check whether a row has changed in an
UPDATEnow also works withBLOB/TEXTcolumns. -
Added the
INNERjoin syntax. Note: This madeINNERa reserved word! -
Added support for netmasks to the hostname in the MySQL grant tables. You can specify a netmask using the
IP/NETMASKsyntax. -
If you compare a
NOT NULL DATE/DATETIMEcolumn withIS NULL, this is changed to a compare against0to satisfy some ODBC applications. (By<shreeve@uci.edu>.) -
NULL IN (...)now returnsNULLinstead of0. This will ensure thatnull_column NOT IN (...)doesn't matchNULLvalues. -
Fix storage of floating-point values in
TIMEcolumns. -
Changed parsing of
TIMEstrings to be more strict. Now the fractional second part is detected (and currently skipped). The following formats are supported:-
[[DAYS] [H]H:]MM:]SS[.fraction]
-
[[[[[H]H]H]H]MM]SS[.fraction]
-
-
Detect (and ignore) fractional second part from
DATETIME. -
Added the
LOW_PRIORITYattribute toLOAD DATA INFILE. -
The default index name now uses the same case as the column name on which the index name is based.
-
Changed default number of connections to 100.
-
Use bigger buffers when using
LOAD DATA INFILE. -
DECIMAL(x,y)now works according to standard SQL. -
Added aggregate
UDFfunctions. Thanks to Andreas F. Bobak (<bobak@relog.ch>) for this! -
LAST_INSERT_ID()is now updated forINSERT INTO ... SELECT. -
Some small changes to the join table optimizer to make some joins faster.
-
SELECT DISTINCTis much faster; it uses the newUNIQUEfunctionality inMyISAM. One difference compared to MySQL 3.22 is that the output ofDISTINCTis no longer sorted. -
All C client API macros are now functions to make shared libraries more reliable. Because of this, you can no longer call
mysql_num_fields()on aMYSQLobject, you must usemysql_field_count()instead. -
Added use of
LIBWRAP; patch by Henning P. Schmiedehausen. -
Don't allow
AUTO_INCREMENTfor other than numerical columns. -
Using
AUTO_INCREMENTwill now automatically make the columnNOT NULL. -
Show
NULLas the default value forAUTO_INCREMENTcolumns. -
Added
SQL_BIG_RESULT;SQL_SMALL_RESULTis now default. -
Added a shared library RPM. This enhancement was contributed by David Fox (
<dsfox@cogsci.ucsd.edu>). -
Added
--enable-large-filesand--disable-large-filesoptions toconfigure. Seeconfigure.infor some systems where this is automatically turned off because of broken implementations. -
Upgraded
readlineto 4.0. -
New
CREATE TABLEoptions:PACK_KEYSandCHECKSUM. -
Added
--default-table-typeoption tomysqld.
- C.5.1. Changements de la version 3.22.35
- C.5.2. Changements de la version 3.22.34
- C.5.3. Changements de la version 3.22.33
- C.5.4. Changements de la version 3.22.32 (14 février 2000)
- C.5.5. Changements de la version 3.22.31
- C.5.6. Changements de la version 3.22.30
- C.5.7. Changements de la version 3.22.29 (02 janvier 2000)
- C.5.8. Changements de la version 3.22.28 (20 octobre 1999)
- C.5.9. Changements de la version 3.22.27
- C.5.10. Changements de la version 3.22.26 (16 septembre 1999)
- C.5.11. Changements de la version 3.22.25
- C.5.12. Changements de la version 3.22.24 (05 juillet 1999)
- C.5.13. Changements de la version 3.22.23 (08 juin 1999)
- C.5.14. Changements de la version 3.22.22 (30 avril 1999)
- C.5.15. Changements de la version 3.22.21
- C.5.16. Changements de la version 3.22.20 (18 mars 1999)
- C.5.17. Changements de la version 3.22.19 (Mar 1999: Production)
- C.5.18. Changements de la version 3.22.18
- C.5.19. Changements de la version 3.22.17
- C.5.20. Changements de la version 3.22.16 (Feb 1999: Gamma)
- C.5.21. Changements de la version 3.22.15
- C.5.22. Changements de la version 3.22.14
- C.5.23. Changements de la version 3.22.13
- C.5.24. Changements de la version 3.22.12
- C.5.25. Changements de la version 3.22.11
- C.5.26. Changements de la version 3.22.10
- C.5.27. Changements de la version 3.22.9
- C.5.28. Changements de la version 3.22.8
- C.5.29. Changements de la version 3.22.7 (Sep 1998: Beta)
- C.5.30. Changements de la version 3.22.6
- C.5.31. Changements de la version 3.22.5
- C.5.32. Changements de la version 3.22.4
- C.5.33. Changements de la version 3.22.3
- C.5.34. Changements de la version 3.22.2
- C.5.35. Changements de la version 3.22.1 (Jun 1998: Alpha)
- C.5.36. Changements de la version 3.22.0
The 3.22 version has faster and safer connect code than version 3.21, as well as a lot of new nice enhancements. As there aren't really any major changes, upgrading from 3.21 to 3.22 should be very easy and painless. See Section 2.6.5, « Passer de la version 3.21 à la version 3.22 ».
-
Fixed problem with
STD(). -
Merged changes from the newest
ISAMlibrary from 3.23. -
Fixed problem with
INSERT DELAYED. -
Fixed a bug core dump when using a
LEFT JOIN/STRAIGHT_JOINon a table with only one row.
-
Fixed problem with
GROUP BYonTINYBLOBcolumns; this caused bugzilla to not show rows in some queries. -
Had to do total recompile of the Windows binary version as VC++ didn't compile all relevant files for 3.22.33 :(
-
Fixed problems in Windows when locking tables with
LOCK TABLE. -
Quicker kill of
SELECT DISTINCTqueries.
-
Fixed problem when storing numbers in timestamps.
-
Fix problem with timezones that have half hour offsets.
-
Added
mysqlhotcopy, a fast online hot-backup utility for local MySQL databases. By Tim Bunce. -
New more secure
mysqlaccess. Thanks to Steve Harvey for this. -
Fixed security problem in the protocol regarding password checking.
-
Fixed problem that affected queries that did arithmetic on
GROUPfunctions. -
Fixed a bug in the
ISAMcode when deleting rows on tables with packed indexes.
-
Fixed optimizer problem on
SELECTwhen using many overlapping indexes. -
Disabled floating-point exceptions for FreeBSD to fix core dump when doing
SELECT FLOOR(POW(2,63)). -
Added print of default arguments options to all clients.
-
Fixed critical problem with the
WITH GRANT OPTIONoption. -
Fixed non-critical Y2K problem when writing short date to log files.
-
Upgraded the configure and include files to match the latest 3.23 version. This should increase portability and make it easier to build shared libraries.
-
Added latest patches to MIT-pthreads for NetBSD.
-
Fixed problem with timezones that are < GMT -11.
-
Fixed a bug when deleting packed keys in NISAM.
-
Fixed problem that could cause MySQL to touch freed memory when doing very complicated
GROUP BYqueries. -
Fixed core dump if you got a crashed table where an
ENUMfield value was too big. -
Added
mysqlshutdown.exeandmysqlwatch.exeto the Windows distribution. -
Fixed problem when doing
ORDER BYon a reference key. -
Fixed that
INSERT DELAYEDdoesn't update timestamps that are given.
-
Fixed problem with
LEFT JOINandCOUNT()on a column which was declaredNULL+ and it had aDEFAULTvalue. -
Fixed core dump problem when using
CONCAT()in aWHEREclause. -
Fixed problem with
AVG()andSTD()withNULLvalues.
-
Fixed prototype in
my_ctype.hwhen using other character sets. -
Some configure issues to fix problems with big filesystem detection.
-
Fixed problem when sorting on big
BLOBcolumns. -
ROUND()will now work on Windows.
-
Fixed core dump with empty
BLOB/TEXTcolumn argument toREVERSE(). -
Extended
/*! */with version numbers. -
Changed
SUBSTRING(text FROM pos)to conform to SQL-99. (Before this construct returned the rightmost 'pos' characters.) -
Fixed problem with
LOCK TABLEScombined withDELETE FROM table -
Fixed problem that
INSERT ... SELECTdidn't useBIG_TABLES. -
SET SQL_LOW_PRIORITY_UPDATES=#didn't work. -
Password wasn't updated correctly if privileges didn't change on:
GRANT ... IDENTIFIED BY -
Fixed range optimizer bug in
SELECT * FROM table_name WHERE key_part1 >= const AND (key_part2 = const OR key_part2 = const). -
Fixed bug in compression key handling in
ISAM.
-
DATAis no longer a reserved word. -
Fixed optimizer bug with tables with only one row.
-
Fixed bug when using
LOCK TABLES table_name READ; FLUSH TABLES; -
Applied some patches for HP-UX.
-
isamchkshould now work on Windows. -
Changed
configureto not use big file handling on Linux as this crashes some Red Hat 6.0 systems
-
Upgraded to use Autoconf 2.13, Automake 1.4 and
libtool1.3.2. -
Better support for SCO in
configure. -
Added option
--defaults-file=file_nameto option file handling to force use of only one specific option file. -
Extended
CREATEsyntax to ignore MySQL Version 3.23 keywords. -
Fixed deadlock problem when using
INSERT DELAYEDon a table locked withLOCK TABLES. -
Fixed deadlock problem when using
DROP TABLEon a table that was locked by another thread. -
Add logging of
GRANT/REVOKEcommands in the update log. -
Fixed
isamchkto detect a new error condition. -
Fixed bug in
NATURAL LEFT JOIN.
-
Fixed problem in the C API when you called
mysql_close()directly aftermysql_init(). -
Better client error message when you can't open socket.
-
Fixed
delayed_insert_threadcounting when you couldn't create a new delayed_insert thread. -
Fixed bug in
CONCAT()with many arguments. -
Added patches for DEC 3.2 and SCO.
-
Fixed path-bug when installing MySQL as a service on NT.
-
MySQL on Windows is now compiled with VC++ 6.0 instead of with VC++ 5.0.
-
New installation setup for MySQL on Windows.
-
Fixed problem with
DELETE FROM TABLEwhen table was locked by another thread. -
Fixed bug in
LEFT JOINinvolving empty tables. -
Changed the
mysql.dbcolumn fromCHAR(32)toCHAR(60). -
MODIFYandDELAYEDare no longer reserved words. -
Fixed a bug when storing days in a
TIMEcolumn. -
Fixed a problem with
Host '...' is not allowed to connect to this MySQL serverafter one had inserted a new MySQL user with aGRANTcommand. -
Changed to use
TCP_NODELAYalso on Linux (should give faster TCP/IP connections).
-
Fixed
STD()for big tables when result should be 0. -
The update log didn't have newlines on some operating systems.
-
INSERT DELAYEDhad some garbage at end in the update log.
-
Fixed bug in
mysql_install_db(from 3.22.17). -
Changed default key cache size to 8M.
-
Fixed problem with queries that needed temporary tables with
BLOBcolumns.
-
Fixes a fatal problem in 3.22.17 on Linux; after
shutdownnot all threads died properly. -
Added option
-O flush_time=#tomysqld. This is mostly useful on Windows and tells how often MySQL should close all unused tables and flush all updated tables to disk. -
Fixed problem that a
VARCHARcolumn compared withCHARcolumn didn't use keys efficiently.
-
Fixed a core dump problem when using
--log-updateand connecting without a default database. -
Fixed some
configureand portability problems. -
Using
LEFT JOINon tables that had circular dependencies causedmysqldto hang forever.
-
mysqladmin processlistcould kill the server if a new user logged in. -
DELETE FROM tbl_name WHERE key_column=col_namedidn't find any matching rows. Fixed. -
DATE_ADD(column, ...)didn't work. -
INSERT DELAYEDcould deadlock with statusupgrading lock. -
Extended
ENCRYPT()to take longer salt strings than 2 characters. -
longlong2stris now much faster than before. ForIntel x86platforms, this function is written in optimized assembler. -
Added the
MODIFYkeyword toALTER TABLE.
-
GRANTused withIDENTIFIED BYdidn't take effect until privileges were flushed. -
Name change of some variables in
SHOW STATUS. -
Fixed problem with
ORDER BYwith 'only index' optimization when there were multiple key definitions for a used column. -
DATEandDATETIMEcolumns are now up to 5 times faster than before. -
INSERT DELAYEDcan be used to let the client do other things while the server inserts rows into a table. -
LEFT JOIN USING (col1,col2)didn't work if one used it with tables from 2 different databases. -
LOAD DATA LOCAL INFILEdidn't work in the Unix version because of a missing file. -
Fixed problems with
VARCHAR/BLOBon very short rows (< 4 bytes); error 127 could occur when deleting rows. -
Updating
BLOB/TEXTthrough formulas didn't work for short (< 256 char) strings. -
When you did a
GRANTon a new host,mysqldcould die on the first connect from this host. -
Fixed bug when one used
ORDER BYon column name that was the same name as an alias. -
Added
BENCHMARK(loop_count,expression)function to time expressions.
-
Allow empty arguments to
mysqldto make it easier to start from shell scripts. -
Setting a
TIMESTAMPcolumn toNULLdidn't record the timestamp value in the update log. -
Fixed lock handler bug when one did
INSERT INTO TABLE ... SELECT ... GROUP BY. -
Added a patch for
localtime_r()on Windows so that it will no lonher crash if your date is > 2039, but instead will return a time of all zero. -
Names for user-defined functions are no longer case-sensitive.
-
Added escape of
^Z(ASCII 26) to\Zas^Zdoesn't work with pipes on Windows. -
mysql_fix_privilegesadds a new column to themysql.functo support aggregateUDFfunctions in future MySQL releases.
-
Saving
NOW(),CURDATE()orCURTIME()directly in a column didn't work. -
SELECT COUNT(*) ... LEFT JOIN ...didn't work with noWHEREpart. -
Updated
config.guessto allow MySQL to configure on UnixWare 7.1.x. -
Changed the implementation of
pthread_cond()on the Windows version.get_lock()now correctly times out on Windows!
-
Fixed problem when using
DATE_ADD()andDATE_SUB()in aWHEREclause. -
You can now set the password for a user with the
GRANT ... TO user IDENTIFIED BY 'password'syntax. -
Fixed bug in
GRANTchecking withSELECTon many tables. -
Added missing file
mysql_fix_privilege_tablesto the RPM distribution. This is not run by default because it relies on the client package. -
Added option
SQL_SMALL_RESULTtoSELECTto force use of fast temporary tables when you know that the result set will be small. -
Allow use of negative real numbers without a decimal point.
-
Day number is now adjusted to maximum days in month if the resulting month after
DATE_ADD/DATE_SUB()doesn't have enough days. -
Fix that
GRANTcompares columns in case-insensitive fashion. -
Fixed a bug in
sql_list.hthat madeALTER TABLEdump core in some contexts. -
The hostname in
user@hostnamecan now include ‘.’ and ‘-’ without quotes in the context of theGRANT,REVOKEandSET PASSWORD FOR ...statements. -
Fix for
isamchkfor tables which need big temporary files.
-
Important: You must run the
mysql_fix_privilege_tablesscript when you upgrade to this version! This is needed because of the newGRANTsystem. If you don't do this, you will getAccess deniedwhen you try to useALTER TABLE,CREATE INDEX, orDROP INDEX. -
GRANTto allow/deny users table and column access. -
Changed
USER()to return a value inuser@hostformat. Formerly it returned onlyuser. -
Changed the syntax for how to set
PASSWORDfor another user. -
New command
FLUSH STATUSthat resets most status variables to zero. -
New status variables:
aborted_threads,aborted_connects. -
New option variable:
connection_timeout. -
Added support for Thai sorting (by Pruet Boonma
<pruet@ds90.intanon.nectec.or.th>). -
Slovak and Japanese error messages.
-
Configuration and portability fixes.
-
Added option
SET SQL_WARNINGS=1to get a warning count also for simple (single-row) inserts. -
MySQL now uses
SIGTERMinstead ofSIGQUITwith shutdown to work better on FreeBSD. -
Added option
\G(print vertically) tomysql. -
SELECT HIGH_PRIORITY ...killedmysqld. -
IS NULLon aAUTO_INCREMENTcolumn in aLEFT JOINdidn't work as expected. -
New function
MAKE_SET().
-
mysql_install_dbno longer starts the MySQL server! You should startmysqldwithsafe_mysqldafter installing it! The MySQLRPMwill, however, start the server as before. -
Added
--bootstrapoption tomysqldand recodedmysql_install_dbto use it. This will make it easier to install MySQL withRPMs. -
Changed
+,-(sign and minus),*,/,%,ABS()andMOD()to beBIGINTaware (64-bit safe). -
Fixed a bug in
ALTER TABLEthat causedmysqldto crash. -
MySQL now always reports the conflicting key values when a duplicate key entry occurs. (Before this was only reported for
INSERT.) -
New syntax:
INSERT INTO tbl_name SET col_name=value, col_name=value, ... -
Most errors in the
.errlog are now prefixed with a time stamp. -
Added option
MYSQL_INIT_COMMANDtomysql_options()to make a query on connect or reconnect. -
Added option
MYSQL_READ_DEFAULT_FILEandMYSQL_READ_DEFAULT_GROUPtomysql_options()to read the following parameters from the MySQL option files:port,socket,compress,password,pipe,timeout,user,init-command,hostanddatabase. -
Added
maybe_nullto theUDFstructure. -
Added option
IGNOREtoINSERTstatements with many rows. -
Fixed some problems with sorting of the
koi8character sets; users ofkoi8must runisamchk -rqon each table that has an index on aCHARorVARCHARcolumn. -
New script
mysql_setpermission, by Luuk de Boer. It allows easy creation of new users with permissions for specific databases. -
Allow use of hexadecimal strings (0x...) when specifying a constant string (like in the column separators with
LOAD DATA INFILE). -
Ported to OS/2 (thanks to Antony T. Curtis
<antony.curtis@olcs.net>). -
Added more variables to
SHOW STATUSand changed format of output to be likeSHOW VARIABLES. -
Added
extended-statuscommand tomysqladminwhich will show the new status variables.
-
SET SQL_LOG_UPDATE=0caused a lockup of the server. -
New SQL command:
FLUSH [ TABLES | HOSTS | LOGS | PRIVILEGES ] [, ...] -
New SQL command:
KILLthread_id. -
Added casts and changed include files to make MySQL easier to compile on AIX and DEC OSF/1 4.x
-
Fixed conversion problem when using
ALTER TABLEfrom aINTto a shortCHAR()column. -
Added
SELECT HIGH_PRIORITY; this will get a lock for theSELECTeven if there is a thread waiting for anotherSELECTto get aWRITE LOCK. -
Moved
wild_compare()to string class to be able to useLIKEonBLOB/TEXTcolumns with\0. -
Added
ESCAPEoption toLIKE. -
Added a lot more output to
mysqladmin debug. -
You can now start
mysqldon Windows with the--flushoption. This will flush all tables to disk after each update. This makes things much safer on the Windows platforms but also much slower.
-
Czech character sets should now work much better.
-
DATE_ADD()andDATE_SUB()didn't work with group functions. -
mysqlwill now also try to reconnect onUSE databasecommands. -
Fix problem with
ORDER BYandLEFT JOINandconsttables. -
Fixed problem with
ORDER BYif the firstORDER BYcolumn was a key and the rest of theORDER BYcolumns wasn't part of the key. -
Fixed a big problem with
OPTIMIZE TABLE. -
MySQL clients on NT will now by default first try to connect with named pipes and after this with TCP/IP.
-
Fixed a problem with
DROP TABLEandmysqladmin shutdownon Windows (a fatal bug from 3.22.6). -
Fixed problems with
TIME columnsand negative strings. -
Added an extra thread signal loop on shutdown to avoid some error messages from the client.
-
MySQL now uses the next available number as extension for the update log file.
-
Added patches for UNIXWARE 7.
-
Added
LIMITclause for theDELETEstatement. -
You can now use the
/*! ... */syntax to hide MySQL-specific keywords when you write portable code. MySQL will parse the code inside the comments as if the surrounding/*!and*/comment characters didn't exist. -
OPTIMIZE TABLE tbl_namecan now be used to reclaim disk space after many deletes. Currently, this usesALTER TABLEto regenerate the table, but in the future it will use an integratedisamchkfor more speed. -
Upgraded
libtoolto get the configure more portable. -
Fixed slow
UPDATEandDELETEoperations when usingDATETIMEorDATEkeys. -
Changed optimizer to make it better at deciding when to do a full join and when using keys.
-
You can now use
mysqladmin procto display information about your own threads. Only users with thePROCESSprivilege can get information about all threads. (In 4.0.2 one needs theSUPERprivilege for this.) -
Added handling of formats
YYMMDD,YYYYMMDD,YYMMDDHHMMSSfor numbers when usingDATETIMEandTIMESTAMPtypes. (Formerly these formats only worked with strings.) -
Added connect option
CLIENT_IGNORE_SPACEto allow use of spaces after function names and before ‘(’ (Powerbuilder requires this). This will make all function names reserved words. -
Added the
--log-long-formatoption tomysqldto enable timestamps and INSERT_IDs in the update log. -
Added
--whereoption tomysqldump(patch by Jim Faucette). -
The lexical analyzer now uses ``perfect hashing'' for faster parsing of SQL statements.
-
Faster
mysqldump. -
For the
LOAD DATA INFILEstatement, you can now use the newLOCALkeyword to read the file from the client.mysqlimportwill automatically useLOCALwhen importing with the TCP/IP protocol. -
Fixed small optimize problem when updating keys.
-
Changed makefiles to support shared libraries.
-
MySQL-NT can now use named pipes, which means that you can now use MySQL-NT without having to install TCP/IP.
-
All table lock handing is changed to avoid some very subtle deadlocks when using
DROP TABLE,ALTER TABLE,DELETE FROM TABLEandmysqladmin flush-tablesunder heavy usage. Changed locking code to get better handling of locks of different types. -
Updated
DBIto 1.00 andDBDto 1.2.0. -
Added a check that the error message file contains error messages suitable for the current version of
mysqld. (To avoid errors if you accidentally try to use an old error message file.) -
All count structures in the client (
affected_rows(),insert_id(), ...) are now of typeBIGINTto allow 64-bit values to be used. This required a minor change in the MySQL protocol which should affect only old clients when using tables withAUTO_INCREMENTvalues > 16M. -
The return type of
mysql_fetch_lengths()has changed fromuint *toulong *. This may give a warning for old clients but should work on most machines. -
Change
mysysanddbuglibraries to allocate all thread variables in one struct. This makes it easier to make a threadedlibmysql.dlllibrary. -
Use the result from
gethostname()(instead ofuname()) when constructing.pidfile names. -
New better compressed server/client protocol.
-
COUNT(),STD()andAVG()are extended to handle more than 4G rows. -
You can now store values in the range
-838:59:59<= x <=838:59:59in aTIMEcolumn. -
Warning: incompatible change!! If you set a
TIMEcolumn to too short a value, MySQL now assumes the value is given as:[[[D ]HH:]MM:]SSinstead ofHH[:MM[:SS]]. -
TIME_TO_SEC()andSEC_TO_TIME()can now handle negative times and hours up to 32767. -
Added new option
SET SQL_LOG_UPDATE={0|1}to allow users with thePROCESSprivilege to bypass the update log. (Modified patch from Sergey A Mukhin<violet@rosnet.net>.) -
Fixed fatal bug in
LPAD(). -
Initialize line buffer in
mysql.ccto makeBLOBreading from pipes safer. -
Added
-O max_connect_errors=#option tomysqld. Connect errors are now reset for each correct connection. -
Increased the default value of
max_allowed_packetto1Minmysqld. -
Added
--low-priority-updatesoption tomysqld, to give table-modifying operations (INSERT,REPLACE,UPDATE,DELETE) lower priority than retrievals. You can now use{INSERT | REPLACE | UPDATE | DELETE} LOW_PRIORITY ...You can also useSET SQL_LOW_PRIORITY_UPDATES={0|1}to change the priority for one thread. One side effect is thatLOW_PRIORITYis now a reserved word. :( -
Add support for
INSERT INTO table ... VALUES(...),(...),(...), to allow inserting multiple rows with a single statement. -
INSERT INTO tbl_nameis now also cached when used withLOCK TABLES. (Previously onlyINSERT ... SELECTandLOAD DATA INFILEwere cached.) -
Allow
GROUP BYfunctions withHAVING:mysql>
SELECT col FROM table GROUP BY col HAVING COUNT(*)>0; -
mysqldwill now ignore trailing ‘;’ characters in queries. This is to make it easier to migrate from some other SQL servers that require the trailing ‘;’. -
Fix for corrupted fixed-format output generated by
SELECT INTO OUTFILE. -
Warning: incompatible change! Added Oracle
GREATEST()andLEAST()functions. You must now use these instead of theMAX()andMIN()functions to get the largest/smallest value from a list of values. These can now handleREAL,BIGINTand string (CHARorVARCHAR) values. -
Warning: incompatible change!
DAYOFWEEK()had offset 0 for Sunday. Changed the offset to 1. -
Give an error for queries that mix
GROUP BYcolumns and fields when there is noGROUP BYspecification. -
Added
--verticaloption tomysql, for printing results in vertical mode. -
Index-only optimization; some queries are now resolved using only indexes. Until MySQL 4.0, this works only for numeric columns. See Section 7.4.5, « Comment MySQL utilise les index ».
-
Lots of new benchmarks.
-
A new C API chapter and lots of other improvements in the manual.
-
Added
--tmpdiroption tomysqld, for specifying the location of the temporary file directory. -
MySQL now automatically changes a query from an ODBC client:
SELECT ... FROM table WHERE auto_increment_column IS NULL
to:
SELECT ... FROM table WHERE auto_increment_column == LAST_INSERT_ID()
This allows some ODBC programs (Delphi, Access) to retrieve the newly inserted row to fetch the
AUTO_INCREMENTid. -
DROP TABLEnow waits for all users to free a table before deleting it. -
Fixed small memory leak in the new connect protocol.
-
New functions
BIN(),OCT(),HEX()andCONV()for converting between different number bases. -
Added function
SUBSTRING()with 2 arguments. -
If you created a table with a record length smaller than 5, you couldn't delete rows from the table.
-
Added optimization to remove
constreference tables fromORDER BYandGROUP BY. -
mysqldnow automatically disables system locking on Linux and Windows, and for systems that use MIT-pthreads. You can force the use of locking with the--enable-external-lockingoption. -
Added
--consoleoption tomysqld, to force a console window (for error messages) when using Windows. -
Fixed table locks for Windows.
-
Allow ‘
$’ in identifiers. -
Changed name of user-specific configuration file from
my.cnfto.my.cnf(Unix only). -
Added
DATE_ADD()andDATE_SUB()functions.
-
Fixed a lock problem (bug in MySQL Version 3.22.1) when closing temporary tables.
-
Added missing
mysql_ping()to the client library. -
Added
--compressoption to all MySQL clients. -
Changed
bytetocharinmysql.handmysql_com.h.
-
Searching on multiple constant keys that matched more than 30% of the rows didn't always use the best possible key.
-
New functions
<<,>>,RPAD()andLPAD(). -
You can now save default options (like passwords) in a configuration file (
my.cnf). -
Lots of small changes to get
ORDER BYto work when no records are found when using fields that are not inGROUP BY(MySQL extension). -
Added
--chrootoption tomysqld, to startmysqldin a chroot environment (by Nikki Chumakov<nikkic@cityline.ru>). -
Trailing spaces are now ignored when comparing case-sensitive strings; this should fix some problems with ODBC and flag 512!
-
Fixed a core dump bug in the range optimizer.
-
Added
--one-threadoption tomysqld, for debugging withLinuxThreads(orglibc). (This replaces the-T32flag) -
Added
DROP TABLE IF EXISTSto prevent an error from occurring if the table doesn't exist. -
IFandEXISTSare now reserved words (they would have to be sooner or later). -
Added lots of new options to
mysqldump. -
Server error messages are now in
mysqld_error.h. -
The server/client protocol now supports compression.
-
All bug fixes from MySQL Version 3.21.32.
-
Added new C API function
mysql_ping(). -
Added new API functions
mysql_init()andmysql_options(). You now MUST callmysql_init()before you callmysql_real_connect(). You don't have to callmysql_init()if you only usemysql_connect(). -
Added
mysql_options(...,MYSQL_OPT_CONNECT_TIMEOUT,...)so you can set a timeout for connecting to a server. -
Added
--timeoutoption tomysqladmin, as a test ofmysql_options(). -
Added
AFTER columnandFIRSToptions toALTER TABLE ... ADD columns. This makes it possible to add a new column at some specific location within a row in an existing table. -
WEEK()now takes an optional argument to allow handling of weeks when the week starts on Monday (some European countries). By default,WEEK()assumes the week starts on Sunday. -
TIMEcolumns weren't stored properly (bug in MySQL Version 3.22.0). -
UPDATEnow returns information about how many rows were matched and updated, and how many ``warnings'' occurred when doing the update. -
Fixed incorrect result from
FORMAT(-100,2). -
ENUMandSETcolumns were compared in binary (case-sensitive) fashion; changed to be case-insensitive.
-
New (backward-compatible) connect protocol that allows you to specify the database to use when connecting, to get much faster connections to a specific database.
The
mysql_real_connect()call is changed to:mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, uint port, const char *unix_socket, uint client_flag) -
Each connection is handled by its own thread, rather than by the master
accept()thread. This fixes permanently the telnet bug that was a topic on the mail list some time ago. -
All TCP/IP connections are now checked with backward-resolution of the hostname to get better security.
mysqldnow has a local hostname resolver cache so connections should actually be faster than before, even with this feature. -
A site automatically will be blocked from future connections if someone repeatedly connects with an ``improper header'' (like when one uses telnet).
-
You can now refer to tables in different databases with references of the form
tbl_name@db_nameordb_name.tbl_name. This makes it possible to give a user read access to some tables and write access to others simply by keeping them in different databases! -
Added
--useroption tomysqld, to allow it to run as another Unix user (if it is started as the Unixrootuser). -
Added caching of users and access rights (for faster access rights checking)
-
Normal users (not anonymous ones) can change their password with
mysqladmin password "new_password". This uses encrypted passwords that are not logged in the normal MySQL log! -
All important string functions are now coded in assembler for x86 Linux machines. This gives a speedup of 10% in many cases.
-
For tables that have many columns, the column names are now hashed for much faster column name lookup (this will speed up some benchmark tests a lot!)
-
Some benchmarks are changed to get better individual timing. (Some loops were so short that a specific test took < 2 seconds. The loops have been changed to take about 20 seconds to make it easier to compare different databases. A test that took 1-2 seconds before now takes 11-24 seconds, which is much better)
-
Re-arranged
SELECTcode to handle some very specific queries involving group functions (likeCOUNT(*)) without aGROUP BYbut withHAVING. The following now works:mysql>
SELECT COUNT(*) as C FROM table HAVING C > 1; -
Changed the protocol for field functions to be faster and avoid some calls to
malloc(). -
Added
-T32option tomysqld, for running all queries under the main thread. This makes it possible to debugmysqldunder Linux withgdb! -
Added optimization of
not_null_column IS NULL(needed for some Access queries). -
Allow
STRAIGHT_JOINto be used between two tables to force the optimizer to join them in a specific order. -
String functions now return
VARCHARrather thanCHARand the column type is nowVARCHARfor fields saved asVARCHAR. This should make theMyODBCdriver better, but may break some old MySQL clients that don't handleFIELD_TYPE_VARCHARthe same way asFIELD_TYPE_CHAR. -
CREATE INDEXandDROP INDEXare now implemented throughALTER TABLE.CREATE TABLEis still the recommended (fast) way to create indexes. -
Added
--set-variableoptionwait_timeouttomysqld. -
Added time column to
mysqladmin processlistto show how long a query has taken or how long a thread has slept. -
Added lots of new variables to
show variablesand some new toshow status. -
Added new type
YEAR.YEARis stored in 1 byte with allowable values of 0, and 1901 to 2155. -
Added new
DATEtype that is stored in 3 bytes rather than 4 bytes. All new tables are created with the new date type if you don't use the--old-protocoloption tomysqld. -
Fixed bug in record caches; for some queries, you could get
Error from table handler: #on some operating systems. -
Added
--enable-assembleroption toconfigure, for x86 machines (tested on Linux +gcc). This will enable assembler functions for the most important string functions for more speed!
- C.6.1. Changements de la version 3.21.33
- C.6.2. Changements de la version 3.21.32
- C.6.3. Changements de la version 3.21.31
- C.6.4. Changements de la version 3.21.30
- C.6.5. Changements de la version 3.21.29
- C.6.6. Changements de la version 3.21.28
- C.6.7. Changements de la version 3.21.27
- C.6.8. Changements de la version 3.21.26
- C.6.9. Changements de la version 3.21.25
- C.6.10. Changements de la version 3.21.24
- C.6.11. Changements de la version 3.21.23
- C.6.12. Changements de la version 3.21.22
- C.6.13. Changements de la version 3.21.21a
- C.6.14. Changements de la version 3.21.21
- C.6.15. Changements de la version 3.21.20
- C.6.16. Changements de la version 3.21.19
- C.6.17. Changements de la version 3.21.18
- C.6.18. Changements de la version 3.21.17
- C.6.19. Changements de la version 3.21.16
- C.6.20. Changements de la version 3.21.15
- C.6.21. Changements de la version 3.21.14b
- C.6.22. Changements de la version 3.21.14a
- C.6.23. Changements de la version 3.21.13
- C.6.24. Changements de la version 3.21.12
- C.6.25. Changements de la version 3.21.11
- C.6.26. Changements de la version 3.21.10
- C.6.27. Changements de la version 3.21.9
- C.6.28. Changements de la version 3.21.8
- C.6.29. Changements de la version 3.21.7
- C.6.30. Changements de la version 3.21.6
- C.6.31. Changements de la version 3.21.5
- C.6.32. Changements de la version 3.21.4
- C.6.33. Changements de la version 3.21.3
- C.6.34. Changements de la version 3.21.2
- C.6.35. Changements de la version 3.21.0
La version 3.21 est plutôt vieille, et doit être évitée si possible. Les informations de cette section sont conservées à des fins d'archives.
-
Fixed problem when sending
SIGHUPtomysqld;mysqldcore dumped when starting from boot on some systems. -
Fixed problem with losing a little memory for some connections.
-
DELETE FROM tbl_namewithout aWHEREcondition is now done the long way when you useLOCK TABLESor if the table is in use, to avoid race conditions. -
INSERT INTO TABLE (timestamp_column) VALUES (NULL);didn't set timestamp.
-
Fixed some possible race conditions when doing many reopen/close on the same tables under heavy load! This can happen if you execute
mysqladmin refreshoften. This could in some very rare cases corrupt the header of the index file and cause error 126 or 138. -
Fixed fatal bug in
refresh()when running with the--skip-external-lockingoption. There was a ``very small'' time gap after amysqladmin refreshwhen a table could be corrupted if one thread updated a table while another thread didmysqladmin refreshand another thread started a new update ont the same table before the first thread had finished. A refresh (or--flush-tables) will now not return until all used tables are closed! -
SELECT DISTINCTwith aWHEREclause that didn't match any rows returned a row in some contexts (bug only in 3.21.31). -
GROUP BY+ORDER BYreturned one empty row when no rows where found. -
Fixed a bug in the range optimizer that wrote
Use_count: Wrong count for ...in the error log file.
-
Fixed a sign extension problem for the
TINYINTtype on Irix. -
Fixed problem with
LEFT("constant_string",function). -
Fixed problem with
FIND_IN_SET(). -
LEFT JOINcore dumped if the second table is used with a constantWHERE/ONexpression that uniquely identifies one record. -
Fixed problems with
DATE_FORMAT()and incorrect dates.DATE_FORMAT()now ignores'%'to make it possible to extend it more easily in the future.
-
mysqlnow returns an exit code > 0 if the query returned an error. -
Saving of command-line history to file in
mysqlclient. By Tommy Larsen<tommy@mix.hive.no>. -
Fixed problem with empty lines that were ignored in
mysql.cc. -
Save the pid of the signal handler thread in the pid file instead of the pid of the main thread.
-
Added patch by
<tommy@valley.ne.jp>to support Japanese characters SJIS and UJIS. -
Changed
safe_mysqldto redirect startup messages to'hostname'.errinstead of'hostname'.logto reclaim file space onmysqladmin refresh. -
ENUMalways had the first entry as default value. -
ALTER TABLEwrote two entries to the update log. -
sql_acc()now closes themysqlgrant tables after a reload to save table space and memory. -
Changed
LOAD DATAto use less memory with tables andBLOBcolumns. -
Sorting on a function which made a division / 0 produced a wrong set in some cases.
-
Fixed
SELECTproblem withLEFT()when using theczechcharacter set. -
Fixed problem in
isamchk; it couldn't repair a packed table in a very unusual case. -
SELECTstatements with&or|(bit functions) failed on columns withNULLvalues. -
When comparing a field = field, where one of the fields was a part key, only the length of the part key was compared.
-
LOCK TABLES+DELETE from tbl_namenever removed locks properly. -
Fixed problem when grouping on an
ORfunction. -
Fixed permission problem with
umask()and creating new databases. -
Fixed permission problem on result file with
SELECT ... INTO OUTFILE ... -
Fixed problem in range optimizer (core dump) for a very complex query.
-
Fixed problem when using
MIN(integer)orMAX(integer)inGROUP BY. -
Fixed bug on Alpha when using integer keys. (Other keys worked on Alpha.)
-
Fixed bug in
WEEK("XXXX-xx-01").
-
Fixed socket permission (clients couldn't connect to Unix socket on Linux).
-
Fixed bug in record caches; for some queries, you could get
Error from table handler: #on some operating systems.
-
Added user level lock functions
GET_LOCK(string,timeout),RELEASE_LOCK(string). -
Added
Opened_tablestoshow status. -
Changed connect timeout to 3 seconds to make it somewhat harder for crackers to kill
mysqldthrough telnet + TCP/IP. -
Fixed bug in range optimizer when using
WHERE key_part_1 >= something AND key_part_2 <= something_else. -
Changed
configurefor detection of FreeBSD 3.0 9803xx and above -
WHEREwithstring_col_key = constant_stringdidn't always find all rows if the column had many values differing only with characters of the same sort value (like e and e with an accent). -
Strings keys looked up with 'ref' were not compared in case-sensitive fashion.
-
Added
umask()to make log files non-readable for normal users. -
Ignore users with old (8-byte) password on startup if not using
--old-protocoloption tomysqld. -
SELECTwhich matched all key fields returned the values in the case of the matched values, not of the found values. (Minor problem.)
-
FROM_DAYS(0)now returns "0000-00-00". -
In
DATE_FORMAT(), PM and AM were swapped for hours 00 and 12. -
Extended the default maximum key size to 256.
-
Fixed bug when using
BLOB/TEXTinGROUP BYwith many tables. -
An
ENUMfield that is not declaredNOT NULLhasNULLas the default value. (Previously, the default value was the first enumeration value.) -
Fixed bug in the join optimizer code when using many part keys on the same key:
INDEX (Organization,Surname(35),Initials(35)). -
Added some tests to the table order optimizer to get some cases with
SELECT ... FROM many_tablesmuch faster. -
Added a retry loop around
accept()to possibly fix some problems on some Linux machines.
-
Changed
typedef 'string'totypedef 'my_string'for better portability. -
You can now kill threads that are waiting on a disk-full condition.
-
Fixed some problems with
UDFfunctions. -
Added long options to
isamchk. Tryisamchk --help. -
Fixed a bug when using 8 bytes long (alpha);
filesort()didn't work. AffectsDISTINCT,ORDER BYandGROUP BYon 64-bit processors.
-
Dynamic loadable functions. Based on source from Alexis Mikhailov.
-
You couldn't delete from a table if no one had done a
SELECTon the table. -
Fixed problem with range optimizer with many
ORoperators on key parts inside each other. -
Recoded
MIN()andMAX()to work properly with strings andHAVING. -
Changed default umask value for new files from
0664to0660. -
Fixed problem with
LEFT JOINand constant expressions in theONpart. -
Added Italian error messages from
<brenno@dewinter.com>. -
configurenow works better on OSF/1 (tested on 4.0D). -
Added hooks to allow
LIKEoptimization with international character support. -
Upgraded
DBIto 0.93.
-
The following symbols are now reserved words:
TIME,DATE,TIMESTAMP,TEXT,BIT,ENUM,NO,ACTION,CHECK,YEAR,MONTH,DAY,HOUR,MINUTE,SECOND,STATUS,VARIABLES. -
Setting a
TIMESTAMPtoNULLinLOAD DATA INFILE ...didn't set the current time for theTIMESTAMP. -
Fix
BETWEENto recognize binary strings. NowBETWEENis case-sensitive. -
Added
--skip-thread-priorityoption tomysqld, for systems wheremysqld's thread scheduling doesn't work properly (BSDI 3.1). -
Added ODBC functions
DAYNAME()andMONTHNAME(). -
Added function
TIME_FORMAT(). This works likeDATE_FORMAT(), but takes a time string ('HH:MM:SS') as argument. -
Fixed unlikely(?) key optimizer bug when using
ORoperators of key parts insideANDexpressions. -
Added
variablescommand tomysqladmin. -
A lot of small changes to the binary releases.
-
Fixed a bug in the new protocol from MySQL Version 3.21.20.
-
Changed
ALTER TABLEto work with Windows (Windows can't rename open files). Also fixed a couple of small bugs in the Windows version. -
All standard MySQL clients are now ported to MySQL for Windows.
-
MySQL can now be started as a service on NT.
-
Starting with this version, all MySQL distributions will be configured, compiled and tested with
crash-meand the benchmarks on the following platforms: SunOS 5.6 sun4u, SunOS 5.5.1 sun4u, SunOS 4.14 sun4c, SunOS 5.6 i86pc, Irix 6.3 mips5k, HP-UX 10.20 hppa, AIX 4.2.1 ppc, OSF/1 V4.0 alpha, FreeBSD 2.2.2 i86pc and BSDI 3.1 i386. -
Fix
COUNT(*)problems when theWHEREclause didn't match any records. (Bug from 3.21.17.) -
Removed that
NULL = NULLis true. Now you must useIS NULLorIS NOT NULLto test whether a value isNULL. (This is according to SQL-99 but may break old applications that are ported frommSQL.) You can get the old behavior by compiling with-DmSQL_COMPLIANT. -
Fixed bug that core dumped when using many
LEFT OUTER JOINclauses. -
Fixed bug in
ORDER BYon string formula with possibleNULLvalues. -
Fixed problem in range optimizer when using
<=on sub index. -
Added functions
DAYOFYEAR(),DAYOFMONTH(),MONTH(),YEAR(),WEEK(),QUARTER(),HOUR(),MINUTE(),SECOND()andFIND_IN_SET(). -
Added
SHOW VARIABLEScommand. -
Added support of ``long constant strings'' from SQL-99:
mysql>
SELECT 'first ' 'second'; -> 'first second' -
Upgraded Msql-Mysql-modules to 1.1825.
-
Upgraded
mysqlaccessto 2.02. -
Fixed problem with Russian character set and
LIKE. -
Ported to OpenBSD 2.1.
-
New Dutch error messages.
-
Fixed optimizer bug when using
WHERE data_field = date_field2 AND date_field2 = constant. -
Added
SHOW STATUScommand. -
Removed
manual.psfrom the source distribution to make it smaller.
-
Changed the maximum table name and column name lengths from 32 to 64.
-
Aliases can now be of ``any'' length.
-
Fixed
mysqladmin statto return the right number of queries. -
Changed protocol (downward compatible) to mark if a column has the
AUTO_INCREMENTattribute or is aTIMESTAMP. This is needed for the new Java driver. -
Added Hebrew sorting order by Zeev Suraski.
-
Solaris 2.6: Fixed
configurebugs and increased maximum table size from 2G to 4G.
-
Upgraded
DBDto 1.1823. This version implementsmysql_use_resultinDBD-Mysql. -
Benchmarks updated for empress (by Luuk).
-
Fixed a case of slow range searching.
-
Configure fixes (
Docsdirectory). -
Added function
REVERSE()(by Zeev Suraski).
-
Issue error message if client C functions are called in wrong order.
-
Added automatic reconnect to the
libmysql.clibrary. If a write command fails, an automatic reconnect is done. -
Small sort sets no longer use temporary files.
-
Upgraded
DBIto 0.91. -
Fixed a couple of problems with
LEFT OUTER JOIN. -
Added
CROSS JOINsyntax.CROSSis now a reserved word. -
Recoded
yacc/bisonstack allocation to be even safer and to allow MySQL to handle even bigger expressions. -
Fixed a couple of problems with the update log.
-
ORDER BYwas slow when used with key ranges.
-
Changed documentation string of
--with-unix-socket-pathto avoid confusion. -
Added ODBC and SQL-99 style
LEFT OUTER JOIN. -
The following are new reserved words:
LEFT,NATURAL,USING. -
The client library now uses the value of the environment variable
MYSQL_HOSTas the default host if it's defined. -
SELECT col_name, SUM(expr)now returnsNULLforcol_namewhen there are matching rows. -
Fixed problem with comparing binary strings and
BLOBvalues with ASCII characters over 127. -
Fixed lock problem: when freeing a read lock on a table with multiple read locks, a thread waiting for a write lock would have been given the lock. This shouldn't affect data integrity, but could possibly make
mysqldrestart if one thread was reading data that another thread modified. -
LIMIT offset,countdidn't work inINSERT ... SELECT. -
Optimized key block caching. This will be quicker than the old algorithm when using bigger key caches.
-
Added ODBC 2.0 & 3.0 functions
POWER(),SPACE(),COT(),DEGREES(),RADIANS(),ROUND(2 arg)andTRUNCATE(). -
Warning : Incompatible change!
LOCATE()parameters were swapped according to ODBC standard. Fixed. -
Added function
TIME_TO_SEC(). -
In some cases, default values were not used for
NOT NULLfields. -
Timestamp wasn't always updated properly in
UPDATE SET ...statements. -
Allow empty strings as default values for
BLOBandTEXT, to be compatible withmysqldump.
-
Warning: Incompatible change!
mysqlperlis now from Msql-Mysql-modules. This means thatconnect()now takeshost,database,user,passwordarguments! The old version tookhost,database,password,user. -
Allow
DATE '1997-01-01',TIME '12:10:10'andTIMESTAMP '1997-01-01 12:10:10'formats required by SQL-99. Warning: Incompatible change! This has the unfortunate side-effect that you no longer can have columns namedDATE,TIMEorTIMESTAMP. :( Old columns can still be accessed throughtablename.columnname!) -
Changed Makefiles to hopefully work better with BSD systems. Also,
manual.dviis now included in the distribution to avoid having stupidmakeprograms trying to rebuild it. -
readlinelibrary upgraded to version 2.1. -
A new sortorder german-1. That is a normal ISO-Latin1 with a german sort order.
-
Perl
DBI/DBDis now included in the distribution.DBIis now the recommended way to connect to MySQL from Perl. -
New portable benchmark suite with
DBD, with test results frommSQL2.0.3, MySQL, PostgreSQL 6.2.1 and Solid server 2.2. -
crash-meis now included with the benchmarks; this is a Perl program designed to find as many limits as possible in an SQL server. Tested withmSQL, PostgreSQL, Solid and MySQL. -
Fixed bug in range-optimizer that crashed MySQL on some queries.
-
Table and column name completion for
mysqlcommand-line tool, by Zeev Suraski and Andi Gutmans. -
Added new command
REPLACEthat works likeINSERTbut replaces conflicting records with the new record.REPLACE INTO TABLE ... SELECT ...works also. -
Added new commands
CREATE DATABASE db_nameandDROP DATABASE db_name. -
Added
RENAMEoption toALTER TABLE:ALTER TABLE name RENAME TO new_name. -
make_binary_distributionnow includeslibgcc.ainlibmysqlclient.a. This should make linking work for people who don't havegcc. -
Changed
net_write()tomy_net_write()because of a name conflict with Sybase. -
Stack checking and
bisonmemory overrun checking to make MySQL safer with weird queries.
-
Fixed a couple of small
configureproblems on some platforms.
-
Ported to SCO Openserver 5.0.4 with FSU Pthreads.
-
HP-UX 10.20 should work.
-
Added new function
DATE_FORMAT(). -
Added
NOT IN. -
Added automatic removal of 'ODBC function conversions':
{fn now() } -
Handle ODBC 2.50.3 option flags.
-
Fixed comparison of
DATEandTIMEvalues withNULL. -
Changed language name from germany to german to be consistent with the other language names.
-
Fixed sorting problem on functions returning a
FLOAT. Previously, the values were converted toINTvalues before sorting. -
Fixed slow sorting when sorting on key field when using
key_column=constant. -
Sorting on calculated
DOUBLEvalues sorted on integer results instead. -
mysqlno longer requires a database argument. -
Changed the place where
HAVINGshould be. According to the SQL standards, it should be afterGROUP BYbut beforeORDER BY. MySQL Version 3.20 incorrectly had it last. -
Added Sybase command
USE databaseto start using another database. -
Added automatic adjusting of number of connections and table cache size if the maximum number of files that can be opened is less than needed. This should fix that
mysqlddoesn't crash even if you haven't done aulimit -n 256before startingmysqld. -
Added lots of limit checks to make it safer when running with too little memory or when doing weird queries.
-
Added retry of interrupted reads and clearing of
errno. This makes Linux systems much safer! -
Fixed locking bug when using many aliases on the same table in the same
SELECT. -
Fixed bug with
LIKEon number key. -
New error message so you can check whether the connection was lost while the command was running or whether the connection was down from the start.
-
Added
--tableoption tomysqlto print in table format. Moved time and row information after query result. Added automatic reconnect of lost connections. -
Added
!=as a synonym for<>. -
Added function
VERSION()to make easier logs. -
New multi-user test
tests/fork_test.plto put some strain on the thread library.
-
Fixed
ftruncate()call in MIT-pthreads. This madeisamchkdestroy the.ISMfiles on (Free)BSD 2.x systems. -
Fixed broken
__P_patch in MIT-pthreads. -
Many memory overrun checks. All string functions now return
NULLif the returned string should be longer thanmax_allowed_packetbytes. -
Changed the name of the
INTERVALtype toENUM, becauseINTERVALis used in SQL-99. -
In some cases, doing a
JOIN+GROUP+INTO OUTFILE, the result wasn't grouped. -
LIKEwith'_'as last character didn't work. Fixed. -
Added extended SQL-99
TRIM()function. -
Added
CURTIME(). -
Added
ENCRYPT()function by Zeev Suraski. -
Fixed better
FOREIGN KEYsyntax skipping. New reserved words:MATCH,FULL,PARTIAL. -
mysqldnow allows IP number and hostname for the--bind-addressoption. -
Added
SET CHARACTER SET cp1251_koi8to enable conversions of data to and from thecp1251_koi8character set. -
Lots of changes for Windows 95 port. In theory, this version should now be easily portable to Windows 95.
-
Changed the
CREATE COLUMNsyntax ofNOT NULLcolumns to be after theDEFAULTvalue, as specified in the SQL-99 standard. This will makemysqldumpwithNOT NULLand default values incompatible with MySQL Version 3.20. -
Added many function name aliases so the functions can be used with ODBC or SQL-92 syntax.
-
Fixed syntax of
ALTER TABLE tbl_name ALTER COLUMN col_name SET DEFAULT NULL. -
Added
CHARandBITas synonyms forCHAR(1). -
Fixed core dump when updating as a user who has only
SELECTprivilege. -
INSERT ... SELECT ... GROUP BYdidn't work in some cases. AnInvalid use of group functionerror occurred. -
When using
LIMIT,SELECTnow always uses keys instead of record scan. This will give better performance onSELECTand aWHEREthat matches many rows. -
Added Russian error messages.
-
Configure changes.
-
MySQL now works with the new thread library on BSD/OS 3.0.
-
Added new group functions
BIT_OR()andBIT_AND(). -
Added compatibility functions
CHECKandREFERENCES.CHECKis now a reserved word. -
Added
ALLoption toGRANTfor better compatibility. (GRANTis still a dummy function.) -
Added partly translated Dutch error messages.
-
Fixed bug in
ORDER BYandGROUP BYwithNULLcolumns. -
Added function
LAST_INSERT_ID()SQL function to retrieve lastAUTO_INCREMENTvalue. This is intended for clients to ODBC that can't use themysql_insert_id()API function, but can be used by any client. -
Added
--flush-logsoption tomysqladmin. -
Added command
STATUStomysql. -
Fixed problem with
ORDER BY/GROUP BYbecause of bug ingcc. -
Fixed problem with
INSERT ... SELECT ... GROUP BY.
-
New program
mysqlaccess. -
CREATEnow supports all ODBC types and themSQLTEXTtype. All ODBC 2.5 functions are also supported (addedREPEAT). This provides better portability. -
Added text types
TINYTEXT,TEXT,MEDIUMTEXTandLONGTEXT. These are actuallyBLOBtypes, but all searching is done in case-insensitive fashion. -
All old
BLOBfields are nowTEXTfields. This only changes that all searching on strings is done in case-sensitive fashion. You must do anALTER TABLEand change the datatype toBLOBif you want to have tests done in case-sensitive fashion. -
Fixed some
configureissues. -
Made the locking code a bit safer. Fixed very unlikely deadlock situation.
-
Fixed a couple of bugs in the range optimizer. Now the new range benchmark
test-selectworks.
-
Added
--enable-unix-socket=pathnameoption toconfigure. -
Fixed a couple of portability problems with include files.
-
Fixed bug in range calculation that could return empty set when searching on multiple key with only one entry (very rare).
-
Most things ported to FSU Pthreads, which should allow MySQL to run on SCO. See Section 2.8.5.8, « Notes sur SCO ».
-
Works now in Solaris 2.6.
-
Added handling of calculation of
SUM()functions. For example, you can now useSUM(column)/COUNT(column). -
Added handling of trigometric functions:
PI(),ACOS(),ASIN(),ATAN(),COS(),SIN()andTAN(). -
New languages: Norwegian, Norwegian-ny and Portuguese.
-
Fixed parameter bug in
net_print()inprocedure.cc. -
Fixed a couple of memory leaks.
-
Now allow also the old
SELECT ... INTO OUTFILEsyntax. -
Fixed bug with
GROUP BYandSELECTon key with many values. -
mysql_fetch_lengths()sometimes returned incorrect lengths when you usedmysql_use_result(). This affected at least some cases ofmysqldump --quick. -
Fixed bug in optimization of
WHERE const op field. -
Fixed problem when sorting on
NULLfields. -
Fixed a couple of 64-bit (Alpha) problems.
-
Added
--pid-file=#option tomysqld. -
Added date formatting to
FROM_UNIXTIME(), originally by Zeev Suraski. -
Fixed bug in
BETWEENin range optimizer (did only test = of the first argument). -
Added machine-dependent files for MIT-pthreads i386-SCO. There is probably more to do to get this to work on SCO 3.5.
-
Changed
Makefile.amto take advantage of Automake 1.2. -
Added the beginnings of a benchmark suite.
-
Added more secure password handling.
-
Added new client function
mysql_errno(), to get the error number of the error message. This makes error checking in the client much easier. This makes the new server incompatible with the 3.20.x server when running without--old-protocol. The client code is backward-compatible. More information can be found in theREADMEfile! -
Fixed some problems when using very long, illegal names.
-
Fixed more portability issues (incorrect
sigwaitandsigsetdefines). -
configureshould now be able to detect the last argument toaccept().
-
Should now work with FreeBSD 3.0 if used with
FreeBSD-3.0-libc_r-1.0.diff, which can be found at http://www.mysql.com/downloads/os-freebsd.html. -
Added new
-O tmp_table_size=#option tomysqld. -
New function
FROM_UNIXTIME(timestamp)which returns a date string in'YYYY-MM-DD HH:MM:SS'format. -
New function
SEC_TO_TIME(seconds)which returns a string in'HH:MM:SS'format. -
New function
SUBSTRING_INDEX(), originally by Zeev Suraski.
-
Should now configure and compile on OSF/1 4.0 with the DEC compiler.
-
Configuration and compilation on BSD/OS 3.0 works, but due to some bugs in BSD/OS 3.0,
mysqlddoesn't work on it yet. -
Configuration and compilation on FreeBSD 3.0 works, but I couldn't get
pthread_createto work.
-
Added reverse check lookup of hostnames to get better security.
-
Fixed some possible buffer overflows if filenames that are too long are used.
-
mysqlddoesn't accept hostnames that start with digits followed by a'.', because the hostname may look like an IP number. -
Added
--skip-networkingoption tomysqld, to allow only socket connections. (This will not work with MIT-pthreads!) -
Added check of too long table names for alias.
-
Added check if database name is okay.
-
Added check if too long table names.
-
Removed incorrect
free()that killed the server onCREATE DATABASEorDROP DATABASE. -
Changed some
mysqld-Ooptions to better names. -
Added
-O join_cache_size=#option tomysqld. -
Added
-O max_join_size=#option tomysqld, to be able to set a limit how big queries (in this case big = slow) one should be able to handle without specifyingSET SQL_BIG_SELECTS=1. A # = is about 10 examined records. The default is ``unlimited''. -
When comparing a
TIME,DATE,DATETIMEorTIMESTAMPcolumn to a constant, the constant is converted to a time value before performing the comparison. This will make it easier to get ODBC (particularly Access97) to work with the above types. It should also make dates easier to use and the comparisons should be quicker than before. -
Applied patch from Jochen Wiedmann that allows
query()inmysqlperlto take a query with\0in it. -
Storing a timestamp with a 2-digit year (
YYMMDD) didn't work. -
Fix that timestamp wasn't automatically updated if set in an
UPDATEclause. -
Now the automatic timestamp field is the FIRST timestamp field.
-
SELECT * INTO OUTFILE, which didn't correctly if the outfile already existed. -
mysqlnow shows the thread ID when starting or doing a reconnect. -
Changed the default sort buffer size from 2M to 1M.
-
The range optimizer is coded, but only 85% tested. It can be enabled with
--new, but it crashes core a lot yet... -
More portable. Should compile on AIX and alpha-digital. At least the
isamlibrary should be relatively 64-bit clean. -
New
isamchkwhich can detect and fix more problems. -
New options for
isamlog. -
Using new version of Automake.
-
Many small portability changes (from the AIX and alpha-digital port) Better checking of pthread(s) library.
-
czech error messages by
<snajdr@pvt.net>. -
Decreased size of some buffers to get fewer problems on systems with little memory. Also added more checks to handle ``out of memory'' problems.
-
mysqladmin: you can now domysqladmin kill 5,6,7,8to kill multiple threads. -
When the maximum connection limit is reached, one extra connection by a user with the process_acl privilege is granted.
-
Added
-O backlog=#option tomysqld. -
Increased maximum packet size from 512K to 1024K for client.
-
Almost all of the function code is now tested in the internal test suite.
-
ALTER TABLEnow returns warnings from field conversions. -
Port changed to 3306 (got it reserved from ISI).
-
Added a fix for Visual FoxBase so that any schema name from a table specification is automatically removed.
-
New function
ASCII(). -
Removed function
BETWEEN(a,b,c). Use the standard SQL syntax instead:expr BETWEEN expr AND expr. -
MySQL no longer has to use an extra temporary table when sorting on functions or
SUM()functions. -
Fixed bug that you couldn't use
tbl_name.field_nameinUPDATE. -
Fixed
SELECT DISTINCTwhen using 'hidden group'. For example:mysql>
SELECT DISTINCT MOD(some_field,10) FROM test->GROUP BY some_field;Note:
some_fieldis normally in theSELECTpart. Standard SQL should require it.
-
New reserved words used:
INTERVAL,EXPLAIN,READ,WRITE,BINARY. -
Added ODBC function
CHAR(num,...). -
New operator
IN. This uses a binary search to find a match. -
New command
LOCK TABLES tbl_name [AS alias] {READ|WRITE} ... -
Added
--log-updateoption tomysqld, to get a log suitable for incremental updates. -
New command
EXPLAIN SELECT ...to get information about how the optimizer will do the join. -
For easier client code, the client should no longer use
FIELD_TYPE_TINY_BLOB,FIELD_TYPE_MEDIUM_BLOB,FIELD_TYPE_LONG_BLOBorFIELD_TYPE_VAR_STRING(as previously returned bymysql_list_fields). You should instead only useFIELD_TYPE_BLOBorFIELD_TYPE_STRING. If you want exact types, you should use the commandSHOW FIELDS. -
Added varbinary syntax:
0x######which can be used as a string (default) or a number. -
FIELD_TYPE_CHARis renamed toFIELD_TYPE_TINY. -
Changed all fields to C++ classes.
-
Removed FORM struct.
-
Fields with
DEFAULTvalues no longer need to beNOT NULL. -
New field types:
-
ENUMA string which can take only a couple of defined values. The value is stored as a 1-3 byte number that is mapped automatically to a string. This is sorted according to string positions!
-
SETA string which may have one or many string values separated with ','. The string is stored as a 1-, 2-, 3-, 4- or 8-byte number where each bit stands for a specific set member. This is sorted according to the unsigned value of the stored packed number.
-
-
Now all function calculation is done with
doubleorlong long. This will provide the full 64-bit range with bit functions and fix some conversions that previously could result in precision losses. One should avoid usingunsigned long longcolumns with full 64-bit range (numbers bigger than 9223372036854775807) because calculations are done withsigned long long. -
ORDER BYwill now putNULLfield values first.GROUP BYwill also work withNULLvalues. -
Full
WHEREwith expressions. -
New range optimizer that can resolve ranges when some keypart prefix is constant. Example:
mysql>
SELECT * FROM tbl_name->WHERE key_part_1="customer"->AND key_part_2>=10 AND key_part_2<=10;
- C.7.1. Changements de la version 3.20.18
- C.7.2. Changements de la version 3.20.17
- C.7.3. Changements de la version 3.20.16
- C.7.4. Changements de la version 3.20.15
- C.7.5. Changements de la version 3.20.14
- C.7.6. Changements de la version 3.20.13
- C.7.7. Changements de la version 3.20.11
- C.7.8. Changements de la version 3.20.10
- C.7.9. Changements de la version 3.20.9
- C.7.10. Changements de la version 3.20.8
- C.7.11. Changements de la version 3.20.7
- C.7.12. Changements de la version 3.20.6
- C.7.13. Changements de la version 3.20.3
- C.7.14. Changements de la version 3.20.0
La version 3.20 est plutôt vieille, et doit être évitée si possible. Les informations de cette section sont conservées à des fins d'archives.
Les changements des versions 3.20.18 à 3.20.32b ne sont pas documentés ici, car la version 3.21 a commencé ici. Les modifications importantes sont documentés dans l'histoiriqe de la version 3.21.
-
Added
-p#(remove#directories from path) toisamlog. All files are written with a relative path from the database directory Nowmysqldshouldn't crash on shutdown when using the--log-isamoption. -
New
mysqlperlversion. It is now compatible withmsqlperl-0.63. -
New
DBDmodule available. -
Added group function
STD()(standard deviation). -
The
mysqldserver is now compiled by default without debugging information. This will make the daemon smaller and faster. -
Now one usually only has to specify the
--basediroption tomysqld. All other paths are relative in a normal installation. -
BLOBcolumns sometimes contained garbage when used with aSELECTon more than one table andORDER BY. -
Fixed that calculations that are not in
GROUP BYwork as expected (SQL-99 extension). Example:mysql>
SELECT id,id+1 FROM table GROUP BY id; -
The test of using
MYSQL_PWDwas reversed. NowMYSQL_PWDis enabled as default in the default release. -
Fixed conversion bug which caused
mysqldto core dump with Arithmetic error on SPARC-386. -
Added
--unbufferedoption tomysql, for newmysqlaccess. -
When using overlapping (unnecessary) keys and join over many tables, the optimizer could get confused and return 0 records.
-
You can now use
BLOBcolumns and the functionsIS NULLandIS NOT NULLin theWHEREclause. -
All communication packets and row buffers are now allocated dynamically on demand. The default value of
max_allowed_packetis now 64K for the server and 512K for the client. This is mainly used to catch incorrect packets that could trash all memory. The server limit may be changed when it is started. -
Changed stack usage to use less memory.
-
Changed
safe_mysqldto check for running daemon. -
The
ELT()function is renamed toFIELD(). The newELT()function returns a value based on an index:FIELD()is the inverse ofELT()Example:ELT(2,"A","B","C")returns"B".FIELD("B","A","B","C")returns2. -
COUNT(field), wherefieldcould have aNULLvalue, now works. -
A couple of bugs fixed in
SELECT ... GROUP BY. -
Fixed memory overrun bug in
WHEREwith many unoptimizable brace levels. -
Fixed some small bugs in the grant code.
-
If hostname isn't found by
get_hostname, only the IP is checked. Previously, you gotAccess denied. -
Inserts of timestamps with values didn't always work.
-
INSERT INTO ... SELECT ... WHEREcould give the errorDuplicated field. -
Added some tests to
safe_mysqldto make it ``safer''. -
LIKEwas case-sensitive in some places and case-insensitive in others. NowLIKEis always case-insensitive. -
mysql.cc: Allow'#'anywhere on the line. -
New command
SET SQL_SELECT_LIMIT=#. See the FAQ for more details. -
New version of the
mysqlaccessscript. -
Change
FROM_DAYS()andWEEKDAY()to also take a fullTIMESTAMPorDATETIMEas argument. Before they only took a number of typeYYYYMMDDorYYMMDD. -
Added new function
UNIX_TIMESTAMP(timestamp_column).
-
More changes in MIT-pthreads to get them safer. Fixed also some link bugs at least in SunOS.
-
Changed
mysqldto work around a bug in MIT-pthreads. This makes multiple smallSELECToperations 20 times faster. Nowlock_test.plshould work. -
Added
mysql_FetchHash(handle)tomysqlperl. -
The
mysqlbugscript is now distributed built to allow for reporting bugs that appear during the build with it. -
Changed
libmysql.cto prefergetpwuid()instead ofcuserid(). -
Fixed bug in
SELECToptimizer when using many tables with the same column used as key to different tables. -
Added new
latin2and RussianKOI8character tables. -
Added support for a dummy
GRANTcommand to satisfy Powerbuilder.
-
Fixed fatal bug
packets out of orderwhen using MIT-pthreads. -
Removed possible loop when a thread waits for command from client and
fcntl()fails. Thanks to Mike Bretz for finding this bug. -
Changed alarm loop in
mysqld.ccbecause shutdown didn't always succeed in Linux. -
Removed use of
termbitsfrommysql.cc. This conflicted withglibc2.0. -
Fixed some syntax errors for at least BSD and Linux.
-
Fixed bug when doing a
SELECTas superuser without a database. -
Fixed bug when doing
SELECTwith group calculation to outfile.
-
If one gives
-por--passwordoption tomysqlwithout an argument, the user is solicited for the password from the tty. -
Added default password from
MYSQL_PWD(by Elmar Haneke). -
Added command
killtomysqladminto kill a specific MySQL thread. -
Sometimes when doing a reconnect on a down connection this succeeded first on second try.
-
Fixed adding an
AUTO_INCREMENTkey withALTER_TABLE. -
AVG()gave too small value on someSELECTstatements withGROUP BYandORDER BY. -
Added new
DATETIMEtype (by Giovanni Maruzzelli<maruzz@matrice.it>). -
Fixed that defining
DONT_USE_DEFAULT_FIELDSworks. -
Changed to use a thread to handle alarms instead of signals on Solaris to avoid race conditions.
-
Fixed default length of signed numbers. (George Harvey
<georgeh@pinacl.co.uk>.) -
Allow anything for
CREATE INDEX. -
Add prezeros when packing numbers to
DATE,TIMEandTIMESTAMP. -
Fixed a bug in
ORof multiple tables (gave empty set). -
Added many patches to MIT-pthreads. This fixes at least one lookup bug.
-
Added standard SQL-92
DATEandTIMEtypes. -
Fixed bug in
SELECTwithAND-ORlevels. -
Added support for Slovenian characters. The
Contribdirectory contains source and instructions for adding other character sets. -
Fixed bug with
LIMITandORDER BY. -
Allow
ORDER BYandGROUP BYon items that aren't in theSELECTlist. (Thanks to Wim Bonis<bonis@kiss.de>, for pointing this out.) -
Allow setting of timestamp values in
INSERT. -
Fixed bug with
SELECT ... WHERE ... = NULL. -
Added changes for
glibc2.0. To getglibcto work, you should add thegibc-2.0-sigwait-patchbefore compilingglibc. -
Fixed bug in
ALTER TABLEwhen changing aNOT NULLfield to allowNULLvalues. -
Added some SQL-92 synonyms as field types to
CREATE TABLE.CREATE TABLEnow allowsFLOAT(4)andFLOAT(8)to meanFLOATandDOUBLE. -
New utility program
mysqlaccessby<Yves.Carlier@rug.ac.be>. This program shows the access rights for a specific user and the grant rows that determine this grant. -
Added
WHERE const op field(by<bonis@kiss.de>).
-
When using
SELECT ... INTO OUTFILE, all temporary tables are ISAM instead of HEAP to allow big dumps. -
Changed date functions to be string functions. This fixed some ``funny'' side effects when sorting on dates.
-
Extended
ALTER TABLEfor SQL-92 compliance. -
Some minor compatibility changes.
-
Added
--portand--socketoptions to all utility programs andmysqld. -
Fixed
MIT-pthreadsreaddir_r(). Nowmysqladmin create databaseandmysqladmin drop databaseshould work. -
Changed
MIT-pthreadsto use ourtempnam(). This should fix the ``sort aborted'' bug. -
Added sync of records count in
sql_update. This fixed slow updates on first connection. (Thanks to Vaclav Bittner for the test.)
-
New insert type:
INSERT INTO ... SELECT ... -
MEDIUMBLOBfixed. -
Fixed bug in
ALTER TABLEandBLOBvalues. -
SELECT ... INTO OUTFILEnow creates the file in the current database directory. -
DROP TABLEnow can take a list of tables. -
Oracle synonym
DESCRIBE(DESC). -
Changes to
make_binary_distribution. -
Added some comments to installation instructions about
configure's C++ link test. -
Added
--without-perloption toconfigure. -
Lots of small portability changes.
-
ALTER TABLEdidn't copy null bit. As a result, fields that were allowed to haveNULLvalues were alwaysNULL. -
CREATEdidn't take numbers asDEFAULT. -
Some compatibility changes for SunOS.
-
Removed
config.cachefrom old distribution.
-
New commands:
ALTER TABLE,SELECT ... INTO OUTFILEandLOAD DATA INFILE. -
New function:
NOW(). -
Added new field
File_privtomysql/usertable. -
New script
add_file_privwhich adds the new fieldFile_privto theusertable. This script must be executed if you want to use the newSELECT ... INTOandLOAD DATA INFILE ...commands with a version of MySQL earlier than 3.20.7. -
Fixed bug in locking code, which made
lock_test.pltest fail. -
New files
NEWandBUGS. -
Changed
select_test.candinsert_test.cto includeconfig.h. -
Added
statuscommand tomysqladminfor short logging. -
Increased maximum number of keys to 16 and maximum number of key parts to 15.
-
Use of sub keys. A key may now be a prefix of a string field.
-
Added
-koption tomysqlshow, to get key information for a table. -
Added long options to
mysqldump.
-
Portable to more systems because of MIT-pthreads, which will be used automatically if
configurecannot find a-lpthreadslibrary. -
Added GNU-style long options to almost all programs. Test with
program --help. -
Some shared library support for Linux.
-
The FAQ is now in
.texiformat and is available in.html,.txtand.psformats. -
Added new SQL function
RAND([init]). -
Changed
sql_lexto handle\0unquoted, but the client can't send the query through the C API, because it takes a str pointer. You must usemysql_real_query()to send the query. -
Added API function
mysql_get_client_info(). -
mysqldnow uses theN_MAX_KEY_LENGTHfromnisam.has the maximum allowable key length. -
The following now works:
mysql>
SELECT filter_nr,filter_nr FROM filter ORDER BY filter_nr;Previously, this resulted in the error:
Column: 'filter_nr' in order clause is ambiguous. -
mysqlnow outputs'\0','\t','\n'and'\\'when encountering ASCII 0, tab, newline or'\'while writing tab-separated output. This is to allow printing of binary data in a portable format. To get the old behavior, use-r(or--raw). -
Added german error messages (60 of 80 error messages translated).
-
Added new API function
mysql_fetch_lengths(MYSQL_RES *), which returns an array of column lengths (of typeuint). -
Fixed bug with
IS NULLinWHEREclause. -
Changed the optimizer a little to get better results when searching on a key part.
-
Added
SELECToptionSTRAIGHT_JOINto tell the optimizer that it should join tables in the given order. -
Added support for comments starting with
'--'inmysql.cc(Postgres syntax). -
You can have
SELECTexpressions and table columns in aSELECTwhich are not used in the group part. This makes it efficient to implement lookups. The column that is used should be a constant for each group because the value is calculated only once for the first row that is found for a group.mysql>
SELECT id,lookup.text,SUM(*) FROM test,lookup->WHERE test.id=lookup.id GROUP BY id; -
Fixed bug in
SUM(function)(could cause a core dump). -
Changed
AUTO_INCREMENTplacement in the SQL query:INSERT INTO table (auto_field) VALUES (0);
inserted 0, but it should insert an
AUTO_INCREMENTvalue. -
mysqlshow.c: Added number of records in table. Had to change the client code a little to fix this. -
mysqlnow allows doubled''or""within strings for embedded'or". -
New math functions:
EXP(),LOG(),SQRT(),ROUND(),CEILING().
-
The
configuresource now compiles a thread-free client library-lmysqlclient. This is the only library that needs to be linked with client applications. When using the binary releases, you must link with-lmysql -lmysys -ldbug -lmystringsas before. -
New
readlinelibrary frombash-2.0. -
LOTS of small changes to
configureand makefiles (and related source). -
It should now be possible to compile in another directory using
VPATH. Tested with GNU Make 3.75. -
safe_mysqldandmysql.serverchanged to be more compatible between the source and the binary releases. -
LIMITnow takes one or two numeric arguments. If one argument is given, it indicates the maximum number of rows in a result. If two arguments are given, the first argument indicates the offset of the first row to return, the second is the maximum number of rows. With this it's easy to do a poor man's next page/previous page WWW application. -
Changed name of SQL function
FIELDS()toELT(). Changed SQL functionINTERVALL()toINTERVAL(). -
Made
SHOW COLUMNSa synonym forSHOW FIELDS. Added compatibility syntaxFRIEND KEYtoCREATE TABLE. In MySQL, this creates a non-unique key on the given columns. -
Added
CREATE INDEXandDROP INDEXas compatibility functions. In MySQL,CREATE INDEXonly checks if the index exists and issues an error if it doesn't exist.DROP INDEXalways succeeds. -
mysqladmin.c: added client version to version information. -
Fixed core dump bug in
sql_acl(core on new connection). -
Removed
host,useranddbtables from databasetestin the distribution. -
FIELD_TYPE_CHARcan now be signed (-128 to 127) or unsigned (0 to 255) Previously, it was always unsigned. -
Bug fixes in
CONCAT()andWEEKDAY(). -
Changed a lot of source to get
mysqldto be compiled with SunPro compiler. -
SQL functions must now have a
'('immediately after the function name (no intervening space). For example,'USER('is regarded as beginning a function call, and'USER ('is regarded as an identifierUSERfollowed by a'(', not as a function call.
-
The source distribution is done with
configureand Automake. It will make porting much easier. Thereadlinelibrary is included in the distribution. -
Separate client compilation: the client code should be very easy to compile on systems which don't have threads.
-
The old Perl interface code is automatically compiled and installed. Automatic compiling of
DBDwill follow when the newDBDcode is ported. -
Dynamic language support:
mysqldcan now be started with Swedish or English (default) error messages. -
New functions:
INSERT(),RTRIM(),LTRIM()andFORMAT(). -
mysqldumpnow works correctly for all field types (evenAUTO_INCREMENT). The format forSHOW FIELDS FROM tbl_nameis changed so theTypecolumn contains information suitable forCREATE TABLE. In previous releases, someCREATE TABLEinformation had to be patched when re-creating tables. -
Some parser bugs from 3.19.5 (
BLOBandTIMESTAMP) are corrected.TIMESTAMPnow returns different date information depending on its create length. -
Changed parser to allow a database, table or field name to start with a number or
'_'. -
All old C code from Unireg changed to C++ and cleaned up. This makes the daemon a little smaller and easier to understand.
-
A lot of small bug fixes done.
-
New
INSTALLfiles (not final version) and some information regarding porting.
La version 3.19 est plutôt vieille, et doit être évitée si possible. Les informations de cette section sont conservées à des fins d'archives.
-
Some new functions, some more optimization on joins.
-
Should now compile clean on Linux (2.0.x).
-
Added functions
DATABASE(),USER(),POW(),LOG10()(needed for ODBC). -
In a
WHEREwith anORDER BYon fields from only one table, the table is now preferred as first table in a multi-join. -
HAVINGandIS NULLorIS NOT NULLnow works. -
A group on one column and a sort on a group function (
SUM(),AVG()...) didn't work together. Fixed. -
mysqldump: Didn't send password to server.
-
Fixed horrible locking bug when inserting in one thread and reading in another thread.
-
Fixed one-off decimal bug. 1.00 was output as 1.0.
-
Added attribute
'Locked'to process list as information if a query is locked by another query. -
Fixed full magic timestamp. Timestamp length may now be 14, 12, 10, 8, 6, 4 or 2 bytes.
-
Sort on some numeric functions could sort incorrectly on last number.
-
IF(arg,syntax_error,syntax_error)crashed. -
Added functions
CEILING(),ROUND(),EXP(),LOG()andSQRT(). -
Enhanced
BETWEENto handle strings.
-
Fixed
SELECTwith grouping onBLOBcolumns not to return incorrectBLOBinfo. Grouping, sorting and distinct onBLOBcolumns will not yet work as expected (probably it will group/sort by the first 7 characters in theBLOB). Grouping on formulas with a fixed string size (useMID()on aBLOB) should work. -
When doing a full join (no direct keys) on multiple tables with
BLOBfields, theBLOBwas garbage on output. -
Fixed
DISTINCTwith calculated columns.
- C.9.1. MySQL/InnoDB-4.0.21, pas publiée
- C.9.2. MySQL/InnoDB-4.1.4, 31 Août 2004
- C.9.3. MySQL/InnoDB-4.1.3, 28 Juin 2004
- C.9.4. MySQL/InnoDB-4.1.2, pas publiée
- C.9.5. MySQL/InnoDB-4.0.20, 18 mai 2004
- C.9.6. MySQL/InnoDB-4.0.19, 4 mai 2004
- C.9.7. MySQL/InnoDB-4.0.18, 13 février 2004
- C.9.8. MySQL/InnoDB-5.0.0, 24 décembre 2003
- C.9.9. MySQL/InnoDB-4.0.17, 17 décembre 2003
- C.9.10. MySQL/InnoDB-4.1.1, 4 décembre 2003
- C.9.11. MySQL/InnoDB-4.0.16, 22 octobre 2003
- C.9.12. MySQL/InnoDB-3.23.58, 15 septembre 2003
- C.9.13. MySQL/InnoDB-4.0.15, 10 septembre 2003
- C.9.14. MySQL/InnoDB-4.0.14, 22 juillet 2003
- C.9.15. MySQL/InnoDB-3.23.57, 20 juin 2003
- C.9.16. MySQL/InnoDB-4.0.13, 20 mai 2003
- C.9.17. MySQL/InnoDB-4.1.0, 3 avril 2003
- C.9.18. MySQL/InnoDB-3.23.56, 17 mars 2003
- C.9.19. MySQL/InnoDB-4.0.12, 18 mars 2003
- C.9.20. MySQL/InnoDB-4.0.11, 25 février 2003
- C.9.21. MySQL/InnoDB-4.0.10, 4 février 2003
- C.9.22. MySQL/InnoDB-3.23.55, 24 janvier 2003
- C.9.23. MySQL/InnoDB-4.0.9, 14 janvier 2003
- C.9.24. MySQL/InnoDB-4.0.8, 7 janvier 2003
- C.9.25. MySQL/InnoDB-4.0.7, 26 décembre 2002
- C.9.26. MySQL/InnoDB-4.0.6, 19 décembre 2002
- C.9.27. MySQL/InnoDB-3.23.54, 12 dcembre 2003
- C.9.28. MySQL/InnoDB-4.0.5, 18 novembre 2002
- C.9.29. MySQL/InnoDB-3.23.53, 9 octobre 2002
- C.9.30. MySQL/InnoDB-4.0.4, 2 octobre 2002
- C.9.31. MySQL/InnoDB-4.0.3, 28 août 2002
- C.9.32. MySQL/InnoDB-3.23.52, 16 août 2002
- C.9.33. MySQL/InnoDB-4.0.2, 10 juillet 2002
- C.9.34. MySQL/InnoDB-3.23.51, 12 juin 2002
- C.9.35. MySQL/InnoDB-3.23.50, 23 avril 2002
- C.9.36. MySQL/InnoDB-3.23.49, 17 février 2002
- C.9.37. MySQL/InnoDB-3.23.48, 9 février 2002
- C.9.38. MySQL/InnoDB-3.23.47, 28 décembre 2001
- C.9.39. MySQL/InnoDB-4.0.1, 3 décembre 2001
- C.9.40. MySQL/InnoDB-3.23.46, 30 novembre 2001
- C.9.41. MySQL/InnoDB-3.23.45, 23 novembre 2001
- C.9.42. MySQL/InnoDB-3.23.44, 2 novembre 2001
- C.9.43. MySQL/InnoDB-3.23.43, 4 octobre 2001
- C.9.44. MySQL/InnoDB-3.23.42, 9 septembre 2001
- C.9.45. MySQL/InnoDB-3.23.41, 13 août 2001
- C.9.46. MySQL/InnoDB-3.23.40, 16 juillet 2001
- C.9.47. MySQL/InnoDB-3.23.39, 13 juin 2001
- C.9.48. MySQL/InnoDB-3.23.38, 12 mai 2001
Depuis les versions 4.0.22 et 4.1.5, toutes les évolutions de InnoDB sont incluses dans l'historique de MySQL, et cette section ne sera plus gérée indépendamment.
Note : cette section n'est pas traduite en fran¸ais.
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
If you configure
innodb_additional_mem_pool_sizeso small that InnoDB memory allocation spills over from it, then every 4 billionth spill may cause memory corruption. A symptom is a printout like below in the.errlog. The workaround is to makeinnodb_additional_mem_pool_sizebig enough to hold all memory allocation. UseSHOW INNODB STATUSto determine that there is plenty of free space available in the additional mem pool, and the total allocated memory stays rather constant.InnoDB: Error: Mem area size is 0. Possibly a memory overrun of the InnoDB: previous allocated area! InnoDB: Apparent memory corruption: mem dump len 500; hex
Fonctionnalité ajoutée ou modifiée :
-
Important: Made internal representation of
TIMESTAMPvalues inInnoDBin 4.1 to be the same as in 4.0. This difference resulted in incorrect datetime values inTIMESTAMPcolumns inInnoDBtables after an upgrade from 4.0 to 4.1. (Bug#4492) Warning: extra steps during upgrade required! This means that if you are upgrading from 4.1.x, where x <= 3, to 4.1.4 you should usemysqldumpfor saving and then restoring yourInnoDBtables withTIMESTAMPcolumns. No conversion is needed if you upgrade from 3.23 or 4.0 to 4.1.4 or later. -
Added a new startup option
innodb_locks_unsafe_for_binlog. This option forcesInnoDBnot to use next-key locking in searches and index scans. -
Added
innodb_status_filesystem variable to mysqld to control whether output fromSHOW INNODB STATUSis written to ainnodb_status.file in the data directory. By default, the file is not created. To create it, start mysqld with the<pid>--innodb_status_file=1option. -
Changes for NetWare to exit InnoDB gracefully on NetWare even in a case of an assertion failure, instead of intentionally crashing the mysqld server process.
Bogues corrigés :
-
Fixed a bug in
ON DELETE CASCADEandON UPDATE CASCADEforeign key constraints: long chains of cascaded operations would cause a stack overflow and crash the server. Cascaded operations are now limited to 15 levels. (Bug#4446) -
Increment the InnoDB watchdog timeout during
CHECK TABLE. (Bug#2694) -
If you configure
innodb_additional_mem_pool_sizeso small that InnoDB memory allocation spills over from it, then every 4 billionth spill may cause memory corruption. A symptom is a printout like below in the.errlog.InnoDB: Error: Mem area size is 0. Possibly a memory overrun of the InnoDB: previous allocated area! InnoDB: Apparent memory corruption: mem dump len 500; hex
-
Fixed a glitch introduced in 4.0.18 and 4.1.2: in
SHOW TABLE STATUSInnoDB systematically overestimated the row count by 1 if the table fit on a single 16 kB data page. -
InnoDB created temporary files with the C library function
tmpfile(). On Windows, the files would be created in the root directory of the current file system. To correct this behavior, the invocations oftmpfile()were replaced with code that uses the functioncreate_temp_file()in the MySQL portability layer. (Bug#3998) -
If we
RENAMEd a table, InnoDB forgot to load the foreign key constraints that reference the new table name, and forgot to check that they are compatible with the table. -
If there was little file I/O in InnoDB, but the insert buffer was used, it could happen that 'Pending normal aio reads' was bigger than 0, but the I/O handler thread did not get waken up in 600 seconds. This resulted in a hang, and an intentional crashing of mysqld.
Fonctionnalité ajoutée ou modifiée :
-
Important: Starting from MySQL 4.1.3,
InnoDBuses the same character set comparison functions as MySQL for non-latin1_swedish_cicharacter strings that are notBINARY. This changes the sorting order of space and characters < ASCII(32) in those character sets. Forlatin1_swedish_cicharacter strings andBINARYstrings,InnoDBuses its own pad-spaces-at-end comparison method, which stays unchanged. If you have anInnoDBtable created with MySQL 4.1.2 or earlier, with an index on a non-latin1character set (in the case of 4.1.0 and 4.1.1 with any character set)CHAR/VARCHAR/orTEXTcolumn that is notBINARYbut may contain characters < ASCII(32), then you should doALTER TABLEorOPTIMIZEtable on it to regenerate the index, after upgrading to MySQL 4.1.3 or later. -
OPTIMIZE TABLEforInnoDBtables is now mapped toALTER TABLErather than toANALYZE TABLE. -
Added an interface for storing the binlog offset in the InnoDB log and flushing the log.
Bogues corrigés :
-
The critical bug in 4.1.2 (crash recovery skipping all
.ibdfiles if you specifyinnodb_file_per_tableon Unix) has been fixed. The bug was a combination of two bugs. Crash recovery ignored the files, because the attempt to lock them in the wrong mode failed. From now on, locks will only be obtained for regular files opened in read/write mode, and crash recovery will stop if an.ibdfile for a table exists in a database directory but is unaccessible. -
Do not remember the original
select_lock_typeinsideLOCK TABLES. (Bug#4047) -
The special meaning of the table names
innodb_monitor,innodb_lock_monitor,innodb_tablespace_monitor,innodb_table_monitor, andinnodb_validateinCREATE TABLEandDROP TABLEstatements was accidentally removed in MySQL/InnoDB-4.1.2. The diagnostic functions attached to these special table names (see Section 15.12.1, « Le moniteurInnoDB») are accessible again in MySQL/InnoDB-4.1.3. -
When the private SQL parser of InnoDB was modified in MySQL/InnoDB-4.0.19 in order to allow the use of the apostrophe (‘
'’) in table and column names, the fix relied on a previously unused functionmem_realloc(), whose implementation was incorrect. As a result, InnoDB can incorrectly parse column and table names as the empty string. The InnoDBrealloc()implementation has been corrected in MySQL/InnoDB-4.1.3. -
In a clean-up of MySQL/InnoDB-4.1.2, the code for invalidating the query cache was broken. Now the query cache should be correctly invalidated for tables affected by
ON UPDATE CASCADEorON DELETE CASCADEconstraints. -
Fixed a bug : in
LIKE 'abc%', the'%'did not match the empty string if the character set was notlatin1_swedish_ci. This bug was fixed by changing the sorting order in these character sets. See the above note about data conversion in 4.1.3.
Fonctionnalité ajoutée ou modifiée :
-
Do not assert in
log0log.c, line 856 ifib_logfilesare too small forinnodb_thread_concurrency. Instead, print instructions how to adjustmy.cnfand callexit(1). -
If MySQL tries to
SELECTfrom an InnoDB table without setting any table locks, print a descriptive error message and assert; some subquery bugs were of this type. -
Added a missing space to the output format of
SHOW INNODB STATUS; reported by Jocelyn Fournier. -
Support multiple character sets. Note that tables created in other collations than
latin1_swedish_cicannot be accessed in MySQL/InnoDB 4.0. -
Allow a key path length in InnoDB to be up to 3,500 bytes; this is needed so that one can create an index on a column with 255 UTF-8 characters.
Bogues corrigés :
-
Improved portability to 64-bit platforms, especially Win64.
-
Fixed an assertion failure when a purge of a table was not possible because of missing
.ibdfile. -
Fixed a bug : do not retrieve all columns in a table if we only need the 'ref' of the row (usually, the
PRIMARY KEY) to calculate anORDER BY. (Bug#1942) -
On Unix-like systems, obtain an exclusive advisory lock on InnoDB files, to prevent corruption when multiple instances of MySQL are running on the same set of data files. The Windows version of InnoDB already took a mandatory lock on the files. (Bug#3608)
-
All bugfixes from InnoDB-4.0.17, InnoDB-4.0.18, InnoDB-4.0.19 and InnoDB-4.0.20.
Bogues corrigés :
Fonctionnalit ajoute ou modifie :
-
Better error message when the server has to crash because the buffer pool is exhausted by the lock table or the adaptive hash index.
-
Print always the count of pending
pread()andpwrite()calls if there is a long semaphore wait. -
Improve space utilization when rows of 1,500 to 8,000 bytes are inserted in the order of the primary key.
-
Remove potential buffer overflow errors by sending diagnostic output to stderr or files instead of stdout or fixed-size memory buffers. As a side effect, the output of
SHOW INNODB STATUSwill be written to a fileevery 15 seconds.<datadir>/innodb.status.<pid>
Bogues corrigs :
-
Fixed a bug :
DROP DATABASEdid not work ifFOREIGN KEYreferences were defined within the database. (Bug#3058) -
Remove unnecessary files, functions and variables. Many of these were needed in the standalone version of InnoDB. Remove debug functions and variables from non-debug build.
-
Add diagnostic code to analyze an assertion failure in ha_innodb.cc on line 2020 reported by a user. (Bug#2903)
-
Fixed a bug : in a
FOREIGN KEY,ON UPDATE CASCADEwas not triggered if the update changed a string to another value identical in alphabetical ordering, e.g., ‘abc’ -> ‘aBc’. -
Protect the reading of the latest foreign key error explanation buffer with a mutex; in theory, a race condition could cause
SHOW INNODB STATUSprint garbage characters after the error info. -
Fixed a bug : The row count and key cardinality estimate was grossly too small if each clustered index page only contained one record.
-
Parse
CONSTRAINT FOREIGN KEYcorrectly. (Bug#3332) -
Fixed a memory corruption bug on Windows. The bug is present in all InnoDB versions in Windows, but it depends on how the linker places a static array in
srv0srv.c, whether the bug shows itself. 4 bytes were overwritten with a pointer to a statically allocated string 'get windows aio return value'. -
Fix a glitch reported by Philippe Lewicki on the general mailing list: do not print a warning to the
.errlog ifread_keyfails with a lock wait timeout error 146. -
Allow quotes to be embedded in strings in the private SQL parser of InnoDB, so that ‘
'’ can be used in InnoDB table and column names. Display quotes within identifiers properly. -
Debugging: Allow
UNIV_SYNC_DEBUGto be disabled whileUNIV_DEBUGis enabled. -
Debugging: Handle magic numbers in a more consistent way.
-
Do not allow dropping a table referenced by a
FOREIGN KEYconstraint, unless the user doesSET FOREIGN_KEY_CHECKS=0. The error message here is somewhat misleading ``Cannot delete or update a parent row...'', and must be changed in a future version 4.1.x. -
Make
InnoDBto remember theCONSTRAINTname given by a user for aFOREIGN KEY. -
Change the print format of
FOREIGN KEYconstraints spanning multiple databases to`db_name`.`tbl_name`. But when parsing them, we must also accept`db_name.tbl_name`, because that was the output format in < 4.0.18. -
An optimization in locking: If
AUTOCOMMIT=1, then we do not need to make a plainSELECTset shared locks even on theSERIALIZABLEisolation level, because we know that the transaction is read-only. A read-only transaction can always be performed on theREPEATABLE READlevel, and that does not endanger the serializability. -
Implement an automatic downgrade from >= 4.1.1 -> 4.0.18 if the user has not created tables in
.ibdfiles or used other 4.1.x features. Consult the manual section on multiple tablespaces carefully if you want to downgrade! -
Fixed a bug : MySQL should not allow
REPLACEto internally perform anUPDATEif the table is referenced by aFOREIGN KEY. The MySQL manual states thatREPLACEmust resolve a duplicate-key error semantically withDELETE(s) +INSERT, and not by anUPDATE. In versions < 4.0.18 and < 4.1.2, MySQL could resolve a duplicate key conflict inREPLACEby doing anUPDATEon the existing row, andFOREIGN KEYchecks could behave in a semantically wrong way. (Bug#2418) -
Fixed a bug : generate
FOREIGN KEYconstraint identifiers locally for each table, in the formdb_name/tbl_name_ibfk_number. If the user gives the constraint name explicitly, then remember it. These changes should ensure that foreign key id's in a slave are the same as in the master, andDROP FOREIGN KEYdoes not break replication. (Bug#2167) -
Fixed a bug : allow quoting of identifiers in InnoDB's
FOREIGN KEYdefinitions with a backtick (`) and a double quote ("). You can now use also spaces in table and column names, if you quote the identifiers. (Bug#1725, Bug#2424) -
Fixed a bug :
FOREIGN KEY ... ON UPDATE/DELETE NO ACTIONmust check the foreign key constraint, not ignore it. Since we do not have deferred constraints inInnoDB, this bugfix makesInnoDBto checkNO ACTIONconstraints immediately, like it checksRESTRICTconstraints. -
Fixed a bug :
InnoDBcrashed inRENAME TABLEif'db_name.tbl_name'is shorter than 5 characters. (Bug#2689) -
Fixed a bug : in
SHOW TABLE STATUS,InnoDBrow count and index cardinality estimates wrapped around at 512 million in 32-bit computers. Note that unless MySQL is compiled with theBIG_TABLESoption, they will still wrap around at 4 billion. -
Fixed a bug : If there was a
UNIQUEsecondary index, andNULLvalues in that unique index, then with theIS NULLpredicate,InnoDBreturned only the first matching row, though there can be many. This bug was introduced in 4.0.16. (Bug#2483)
-
IMPORTANT NOTE: if you upgrade to InnoDB-4.1.1 or higher, you cannot downgrade to a version lower than 4.1.1 any more! That is because earlier versions of InnoDB are not aware of multiple tablespaces.
-
InnoDB in 5.0.0 is essentially the same as InnoDB-4.1.1 with the bug fixes of InnoDB-4.0.17 included.
-
Fixed a bug : if you created a column prefix secondary index and updated it so that the last characters in the column prefix were spaces, InnoDB would assert in
row0upd.c, line 713. The same assertion failed if you updated a column in an ordinary secondary index so that the new value was alphabetically equivalent, but had a different length. This could happen, for example, in the utf-8 character set if you updated a letter to its accented or umlaut form. -
Fixed a bug : InnoDB could think that a secondary index record was not locked though it had been updated to an alphabetically equivalent value, e.g., 'abc' -> 'aBc'.
-
Fixed a bug : if you updated a secondary index column to an alphabetically equivalent value, and rolled back your update, InnoDB failed to restore the field in the secondary index to its original value.
-
There are still several outstanding non-critical bugs reported in the MySQL bugs database. Their fixing has been delayed, because resources were allocated to the 4.1.1 release.
-
IMPORTANT NOTE: if you upgrade to InnoDB-4.1.1 or higher, you cannot downgrade to a version lower than 4.1.1 any more! That is because earlier versions of InnoDB are not aware of multiple tablespaces.
-
Multiple tablespaces now available for InnoDB. You can store each InnoDB type table and its indexes into a separate
.ibdfile into a MySQL database directory, into the same directory where the.frmfile is stored. -
The MySQL query cache now works for InnoDB tables also if
AUTOCOMMIT=0, or the statements are enclosed insideBEGIN ... COMMIT. -
Reduced InnoDB memory consumption by a few megabytes if one sets the buffer pool size < 8 MB.
-
You can use raw disk partitions also in Windows.
-
Fixed a bug : in contrary to what was said in the manual, in a locking read InnoDB set two record locks if a unique exact match search condition was used on a multi-column unique key. For a single column unique key it worked right.
-
Fixed a bug : if one used the rename trick
#sql... -> rsql...to recover a temporary table, InnoDB asserted inrow_mysql_lock_data_dictionary(). -
There are several outstanding non-critical bugs reported in the MySQL bugs database. Their fixing has been delayed, because resources are allocated to the upcoming 4.1.1 release.
-
Fixed a bug :
InnoDBcould make the index page directory corrupt in the firstB-treepage splits aftermysqldstartup. A symptom would be an assertion failure inpage0page.c, in functionpage_dir_find_slot(). -
Fixed a bug :
InnoDBcould in rare cases return an extraneous row if a rollback, purge, and aSELECTcoincided. -
Fixed a possible hang over the
btr0sea.clatch ifSELECTwas used insideLOCK TABLES. -
Fixed a bug : If a single
DELETEstatement first managed to delete some rows and then failed in aFOREIGN KEYerror or aTable is fullerror, MySQL did not roll back the whole SQL statement as it should.
-
Fixed a bug : if you updated a row so that the 8000 byte maximum length (without
BLOBandTEXT) was exceeded, InnoDB simply removed the record from the clustered index. In a similar insert, InnoDB would leak reserved file space extents, which would only be freed at the next mysqld startup. -
Fixed a bug : if you used big
BLOBvalues, and your log files were relatively small, InnoDB could in a bigBLOBoperation temporarily write over the log produced after the latest checkpoint. If InnoDB would crash at that moment, then the crash recovery would fail, because InnoDB would not be able to scan the log even up to the latest checkpoint. Starting from this version, InnoDB tries to ensure the latest checkpoint is young enough. If that is not possible, InnoDB prints a warning to the.errlog of MySQL and advises you to make the log files bigger. -
Fixed a bug : setting
innodb_fast_shutdown=0had no effect. -
Fixed a bug introduced in 4.0.13: if a
CREATE TABLEended in a comment, that could cause a memory overrun. -
Fixed a bug : If InnoDB printed
Operating system error number .. in a file operationto the.errlog in Windows, the error number explanation was wrong. Workaround: look at section 13.2 of http://www.innodb.com/ibman.php about Windows error numbers. -
Fixed a bug : If you created a column prefix
PRIMARY KEYlike int(a CHAR(200), PRIMARY KEY (a(10)))on a fixed-lengthCHARcolumn, InnoDB would crash even in a simpleSELECT. CCHECK TABLEwould report the table as corrupt, also in the case where the created key was notPRIMARY.
-
InnoDB now supports the
SAVEPOINTandROLLBACK TO SAVEPOINTSQL statements. See http://www.innodb.com/ibman.php#Savepoints for the syntax. -
You can now create column prefix keys like in
CREATE TABLE t (a BLOB, INDEX (a(10))). -
You can also use
O_DIRECTas theinnodb_flush_methodon the latest versions of Linux and FreeBSD. Beware of possible bugs in those operating systems, though. -
Fixed the checksum calculation of data pages. Previously most OS file system corruption went unnoticed. Note that if you downgrade from version >= 4.0.14 to an earlier version < 4.0.14 then in the first startup(s) InnoDB will print warnings:
InnoDB: Warning: an inconsistent page in the doublewrite buffer InnoDB: space id 2552202359 page number 8245, 127'th page in dblwr buf.
but that is not dangerous and can be ignored.
-
Modified the buffer pool replacement algorithm so that it tries to flush modified pages if there are no replaceable pages in the last 10 % of the LRU list. This can reduce disk i/o if the workload is a mixture of reads and writes.
-
The buffer pool checkpoint flush algorithm now tries to flush also close neighbors of the page at the end of the flush list. This can speed up database shutdown, and can also speed up disk writes if InnoDB log files are very small compared to the buffer pool size.
-
In 4.0.13 we made
SHOW INNODB STATUSto print detailed info on the latestUNIQUE KEYerror, but storing that info could slow downREPLACEsignificantly. We no longer store or print the info. -
Fixed a bug :
SET FOREIGN_KEY_CHECKS=0was not replicated properly in the MySQL replication. The fix will not be backported to 3.23. -
Fixed a bug : the parameter
innodb_max_dirty_pages_pctforgot to take into account the free pages in the buffer pool. This could lead to excessive flushing even though there were lots of free pages in the buffer pool. Workaround:SET GLOBAL innodb_max_dirty_pages_pct = 100. -
Fixed a bug : if there were big index scans then a file read request could starve and InnoDB could assert because of a very long semaphore wait.
-
Fixed a bug : if
AUTOCOMMIT=1then insideLOCK TABLESMySQL failed to do the commit after an updating SQL statement if binlogging was not on, and forSELECTstatements did not commit regardless of binlogging state. -
Fixed a bug : InnoDB could make the index page directory corrupt in the first
B-treepage splits after a mysqld startup. A symptom would be an assertion in page0page.c, in function page_dir_find_slot(). -
Fixed a bug : if in a
FOREIGN KEYwith anUPDATE CASCADEclause the parent column was of a different internal storage length than the child column, then a cascaded update would make the column length wrong in the child table and corrupt the child table. Because of MySQL's 'silent column specification changes' a fixed-lengthCHARcolumn can change internally to aVARCHARand cause this error. -
Fixed a bug : if a non-
latin1character set was used and if in aFOREIGN KEYthe parent column was of a different internal storage length than the child column, then all inserts to the child table would fail in a foreign key error. -
Fixed a bug : InnoDB could complain that it cannot find the clustered index record, or in rare cases return an extraneous row if a rollback, purge, and a
SELECTcoincided. -
Fixed a possible hang over the btr0sea.c latch if
SELECTwas used insideLOCK TABLES. -
Fixed a bug : contrary to what the release note of 4.0.13 said, the group commit still did not work if the MySQL binlogging was on.
-
Fixed a bug : os_event_wait() did not work properly in Unix, which might have caused starvation in various log operations.
-
Fixed a bug : if a single
DELETEstatement first managed to delete some rows and then failed in aFOREIGN KEYerror or a 'Table is full error', MySQL did not roll back the whole SQL statement as it should, and also wrote the failed statement to the binlog, reporting there a non-zero error_code. -
Fixed a bug : the maximum allowed number of columns in a table is 1000, but InnoDB did not check that limit in
CREATE TABLE, and a subsequentINSERTorSELECTfrom that table could cause an assertion.
-
Changed the default value of
innodb_flush_log_at_trx_commitfrom 0 to 1. If you have not specified it explicitly in yourmy.cnf, and your application runs much slower with this new release, it is because the value 1 causes a log flush to disk at each transaction commit. -
Fixed a bug : InnoDB forgot to call pthread_mutex_destroy() when a table was dropped. That could cause memory leakage on FreeBSD and other non-Linux Unixes.
-
Fixed a bug : MySQL could erroneously return 'Empty set' if InnoDB estimated an index range size to 0 records though the range was not empty; MySQL also failed to do the next-key locking in the case of an empty index range.
-
Fixed a bug :
GROUP BYandDISTINCTcould treat NULL values inequal.
-
InnoDBnow supportsALTER TABLE DROP FOREIGN KEY. You have to useSHOW CREATE TABLEto find the internally generated foreign key ID when you want to drop a foreign key. -
SHOW INNODB STATUSnow prints detailed information of the latest detectedFOREIGN KEYandUNIQUE KEYerrors. If you do not understand whyInnoDBgives the error 150 from aCREATE TABLE, you can use this statement to study the reason. -
ANALYZE TABLEnow works also forInnoDBtype tables. It makes 10 random dives to each of the index trees and updates index cardinality estimates accordingly. Note that since it is only an estimate, repeated runs ofANALYZE TABLEmay produce different numbers. MySQL uses index cardinality estimates only in join optimization. If some join is not optimized in the right way, you may try usingANALYZE TABLE. -
InnoDBgroup commit capability now works also when MySQL binlogging is switched on. There have to be > 2 client threads for the group commit to become active. -
Changed the default value of
innodb_flush_log_at_trx_commitfrom 0 to 1. If you have not specified it explicitly in yourmy.cnf, and your application runs much slower with this new release, it is because the value 1 causes a log flush to disk at each transaction commit. -
Added a new global settable MySQL system variable
innodb_max_dirty_pages_pct. It is an integer in the range 0 - 100. The default is 90. The main thread inInnoDBtries to flush pages from the buffer pool so that at most this many percents are not yet flushed at any time. -
If
innodb_force_recovery=6, do not letInnoDBdo repair of corrupt pages based on the doublewrite buffer. -
InnoDBstart-up now happens faster because it does not set the memory in the buffer pool to zero. -
Fixed a bug : The
InnoDBparser forFOREIGN KEYdefinitions was confused by the keywords 'foreign key' inside MySQL comments. -
Fixed a bug : If you dropped a table to which there was a
FOREIGN KEYreference, and later created the same table with non-matching column types,InnoDBcould assert indict0load.c, in functiondict_load_table(). -
Fixed a bug :
GROUP BYandDISTINCTcould treatNULLvalues as not equal. MySQL also failed to do the next-key locking in the case of an empty index range. -
Fixed a bug : Do not commit the current transaction when a MyISAM table is updated; this also makes
CREATE TABLEnot to commit anInnoDBtransaction, even when binlogging is enabled. -
Fixed a bug : We did not allow
ON DELETE SET NULLto modify the same table where the delete was made; we can allow it because that cannot produce infinite loops in cascaded operations. -
Fixed a bug : Allow
HANDLER PREVandNEXTalso after positioning the cursor with a unique search on the primary key. -
Fixed a bug : If
MIN()orMAX()resulted in a deadlock or a lock wait timeout, MySQL did not return an error, but returnedNULLas the function value. -
Fixed a bug :
InnoDBforgot to callpthread_mutex_destroy()when a table was dropped. That could cause memory leakage on FreeBSD and other non-Linux Unix systems.
-
InnoDBnow supports up to 64 GB of buffer pool memory in a Windows 32-bit Intel computer. This is possible becauseInnoDBcan use the AWE extension of Windows to address memory over the 4 GB limit of a 32-bit process. A new startup variableinnodb_buffer_pool_awe_mem_mbenables AWE and sets the size of the buffer pool in megabytes. -
Reduced the size of buffer headers and the lock table.
InnoDBuses 2 % less memory.
-
Fixed a major bug in InnoDB query optimization: queries of type SELECT ... WHERE indexcolumn < x and SELECT ... WHERE indexcolumn > x could cause a table scan even if the selectivity would have been very good.
-
Fixed a potential bug if MySQL calls store_lock with TL_IGNORE in the middle of a query.
-
In crash recovery InnoDB now prints the progress in percents of a transaction rollback.
-
Fixed a bug/feature: if your application program used mysql_use_result(), and used >= 2 connections to send SQL queries, it could deadlock on the adaptive hash S-latch in btr0sea.c. Now mysqld releases the S-latch whenever it passes data from a SELECT to the client.
-
Fixed a bug : MySQL could erroneously return 'Empty set' if InnoDB estimated an index range size to 0 records though the range was not empty; MySQL also failed to do the next-key locking in the case of an empty index range.
-
Fixed a bug introduced in 4.0.10: SELECT ... FROM ... ORDER BY ... DESC could hang in an infinite loop.
-
An outstanding bug: SET FOREIGN_KEY_CHECKS=0 is not replicated properly in the MySQL replication.
-
In INSERT INTO t1 SELECT ... FROM t2 WHERE ... MySQL previously set a table level read lock on t2. This lock is now removed.
-
Increased SHOW INNODB STATUS max printed length to 200 KB.
-
Fixed a major bug in InnoDB query optimization: queries of type SELECT ... WHERE indexcolumn < x and SELECT ... WHERE indexcolumn > x could cause a table scan even if the selectivity would have been very good.
-
Fixed a bug : purge could cause a hang in a BLOB table where the primary key index tree was of height 1. Symptom: semaphore waits caused by an X-latch set in btr_free_externally_stored_field().
-
Fixed a bug : using InnoDB HANDLER commands on a fresh handle crashed mysqld in ha_innobase::change_active_index().
-
Fixed a bug : if MySQL estimated a query in the middle of a SELECT statement, InnoDB could hang on the adaptive hash index latch in btr0sea.c.
-
Fixed a bug : InnoDB could report table corruption and assert in page_dir_find_owner_slot() if an adaptive hash index search coincided with purge or an insert.
-
Fixed a bug : some file system snapshot tool in Windows 2000 could cause an InnoDB file write to fail with error 33 ERROR_LOCK_VIOLATION. In synchronous writes InnoDB now retries the write 100 times at 1 second intervals.
-
Fixed a bug : REPLACE INTO t1 SELECT ... did not work if t1 has an auto-inc column.
-
An outstanding bug: SET FOREIGN_KEY_CHECKS=0 is not replicated properly in the MySQL replication.
-
In INSERT INTO t1 SELECT ... FROM t2 WHERE ... MySQL previously set a table level read lock on t2. This lock is now removed.
-
Fixed a bug : if the combined size of InnoDB log files was >= 2 GB in a 32-bit computer, InnoDB would write log in a wrong position. That could make crash recovery and InnoDB Hot Backup to fail in log scan.
-
Fixed a bug : index cursor restoration could theoretically fail.
-
Fixed a bug : an assertion in btr0sea.c, in function btr_search_info_update_slow could theoretically fail in a race of 3 threads.
-
Fixed a bug : purge could cause a hang in a BLOB table where the primary key index tree was of height 1. Symptom: semaphore waits caused by an X-latch set in btr_free_externally_stored_field().
-
Fixed a bug : if MySQL estimated a query in the middle of a SELECT statement, InnoDB could hang on the adaptive hash index latch in btr0sea.c.
-
Fixed a bug : InnoDB could report table corruption and assert in page_dir_find_owner_slot() if an adaptive hash index search coincided with purge or an insert.
-
Fixed a bug : some file system snapshot tool in Windows 2000 could cause an InnoDB file write to fail with error 33 ERROR_LOCK_VIOLATION. In synchronous writes InnoDB now retries the write 100 times at 1 second intervals.
-
An outstanding bug: SET FOREIGN_KEY_CHECKS=0 is not replicated properly in the MySQL replication. The fix will appear in 4.0.11 and will probably not be backported to 3.23.
-
Fixed bug in
InnoDBpage0cur.cfile in function page_cur_search_with_match which causedInnoDBto remain on the same page forever. This bug is evident only in tables with more than one page.
-
Removed the warning message: 'InnoDB: Out of memory in additional memory pool.'
-
Fixed a bug : if the combined size of InnoDB log files was >= 2 GB in a 32-bit computer, InnoDB would write log in a wrong position. That could make crash recovery and InnoDB Hot Backup to fail.
-
Fixed a bug : index cursor restoration could theoretically fail.
-
InnoDB now supports also FOREIGN KEY (...) REFERENCES ...(...) [ON UPDATE CASCADE | ON UPDATE SET NULL | ON UPDATE RESTRICT | ON UPDATE NO ACTION].
-
Tables and indexes now reserve 4 % less space in the tablespace. Also existing tables reserve less space. By upgrading to 4.0.8 you will see more free space in "InnoDB free" in SHOW TABLE STATUS.
-
Fixed bugs: updating the PRIMARY KEY of a row would generate a foreign key error on all FOREIGN KEYs which referenced secondary keys of the row to be updated. Also, if a referencing FOREIGN KEY constraint only referenced the first columns in an index, and there were more columns in that index, updating the additional columns generated a foreign key error.
-
Fixed a bug : if an index contains some column twice, and that column is updated, the table will become corrupt. From now on InnoDB prevents creation of such indexes.
-
Fixed a bug : removed superfluous error 149 and 150 printouts from the .err log when a locking SELECT caused a deadlock or a lock wait timeout.
-
Fixed a bug : an assertion in btr0sea.c, in function btr_search_info_update_slow could theoretically fail in a race of 3 threads.
-
Fixed a bug : one could not switch a session transaction isolation level back to REPEATABLE READ after setting it to something else.
-
Since innodb_log_arch_dir has no relevance under MySQL, there is no need to specify it any more in my.cnf.
-
LOAD DATA INFILE in AUTOCOMMIT=1 mode no longer does implicit commits for each 1 MB of written binlog.
-
Fixed a bug introduced in 4.0.4: LOCK TABLES ... READ LOCAL should not set row locks on the rows read. This caused deadlocks and lock wait timeouts in mysqldump.
-
Fixed two bugs introduced in 4.0.4: in AUTO_INCREMENT, REPLACE could cause the counter to be left 1 too low. A deadlock or a lock wait timeout could cause the same problem.
-
Fixed a bug : TRUNCATE on a TEMPORARY table crashed InnoDB.
-
Fixed a bug introduced in 4.0.5: if binlogging was not switched on, INSERT INTO ... SELECT ... or CREATE TABLE ... SELECT ... could cause InnoDB to hang on a semaphore created in btr0sea.c, line 128. Workaround: switch binlogging on.
-
Fixed a bug : in replication issuing SLAVE STOP in the middle of a multi-statement transaction could cause that SLAVE START would only perform a part of the transaction. A similar error could occur if the slave crashed and was restarted.
-
Fixed a bug : the InnoDB range estimator greatly exaggerated the size of a short index range if the paths to the endpoints of the range in the index tree happened to branch already in the root. This could cause unnecessary table scans in SQL queries.
-
Fixed a bug : ORDER BY could fail if you had not created a primary key to a table, but had defined several indexes of which at least one was a UNIQUE index with all its columns declared as NOT NULL.
-
Fixed a bug : a lock wait timeout in connection with ON DELETE CASCADE could cause corruption in indexes.
-
Fixed a bug : if a SELECT was done with a unique key from a primary index, and the search matched to a delete-marked record, InnoDB could erroneously return the NEXT record.
-
Fixed a bug introduced in 3.23.53: LOCK TABLES ... READ LOCAL should not set row locks on the rows read. This caused deadlocks and lock wait timeouts in mysqldump.
-
Fixed a bug : if an index contains some column twice, and that column is updated, the table will become corrupt. From now on InnoDB prevents creation of such indexes.
-
InnoDB now supports also transaction isolation levels READ COMMITTED and READ UNCOMMITTED. READ COMMITTED more closely emulates Oracle and makes porting of applications from Oracle to MySQL easier.
-
Deadlock resolution is now selective: we try to pick as victims transactions with less modified or inserted rows.
-
FOREIGN KEY definitions are now aware of the lower_case_table_names setting in my.cnf.
-
SHOW CREATE TABLE does not output the database name to a FOREIGN KEY definition if the referred table is in the same database as the table.
-
InnoDB does a consistency check to most index pages before writing them to a datafile.
-
If you set innodb_force_recovery > 0, InnoDB tries to jump over corrupt index records and pages when doing SELECT * FROM table. This helps in dumping.
-
InnoDB now again uses asynchronous unbuffered I/O in Windows 2000 and XP; only unbuffered simulated async I/O in NT, 95/98/ME.
-
Fixed a bug : the InnoDB range estimator greatly exaggerated the size of a short index range if the paths to the endpoints of the range in the index tree happened to branch already in the root. This could cause unnecessary table scans in SQL queries. The fix will also be backported to 3.23.54.
-
Fixed a bug present in 3.23.52, 4.0.3, 4.0.4: InnoDB startup could take very long or even crash on some Windows 95/98/ME computers.
-
Fixed a bug : the AUTO-INC lock was held to the end of the transaction if it was granted after a lock wait. This could cause unnecessary deadlocks.
-
Fixed a bug : if SHOW INNODB STATUS, innodb_monitor, or innodb_lock_monitor had to print several hundred transactions in one report, and the output became truncated, InnoDB would hang, printing to the error log many waits for a mutex created at srv0srv.c, line 1621.
-
Fixed a bug : SHOW INNODB STATUS on Unix always reported average file read size as 0 bytes.
-
Fixed a potential bug in 4.0.4: InnoDB now does ORDER BY ... DESC like MyISAM.
-
Fixed a bug : DROP TABLE could cause crash or a hang if there was a rollback concurrently running on the table. The fix will only be backported to 3.23 if this appears a real problem for users.
-
Fixed a bug : ORDER BY could fail if you had not created a primary key to a table, but had defined several indexes of which at least one was a UNIQUE index with all its columns declared as NOT NULL.
-
Fixed a bug : a lock wait timeout in connection with ON DELETE CASCADE could cause corruption in indexes.
-
Fixed a bug : if a SELECT was done with a unique key from a primary index, and the search matched to a delete-marked record, InnoDB could return the NEXT record.
-
Outstanding bugs: in 4.0.4 two bugs were introduced to AUTO_INCREMENT. REPLACE can cause the counter to be left 1 too low. A deadlock or a lock wait timeout can cause the same problem. These will be fixed in 4.0.6.
-
We again use unbuffered disk I/O to datafiles in Windows. Windows XP and Windows 2000 read performance seems to be very poor with normal I/O.
-
Tuned range estimator so that index range scans are preferred over full index scans.
-
Allow dropping and creating a table even if innodb_force_recovery is set. One can use this to drop a table which would cause a crash in rollback or purge, or if a failed table import causes a runaway rollback in recovery.
-
Fixed a bug present in 3.23.52, 4.0.3, 4.0.4: InnoDB startup could take very long or even crash on some Windows 95/98/ME computers.
-
Fixed a bug : fast shutdown (which is the default) sometimes was slowed down by purge and insert buffer merge.
-
Fixed a bug : doing a big SELECT from a table where no rows were visible in a consistent read could cause a very long (> 600 seconds) semaphore wait in btr0cur.c line 310.
-
Fixed a bug : the AUTO-INC lock was held to the end of the transaction if it was granted after a lock wait. This could cause unnecessary deadlocks.
-
Fixed a bug : if you created a temporary table inside LOCK TABLES, and used that temporary table, that caused an assertion failure in ha_innobase.cc.
-
Fixed a bug : if SHOW INNODB STATUS, innodb_monitor, or innodb_lock_monitor had to print several hundred transactions in one report, and the output became truncated, InnoDB would hang, printing to the error log many waits for a mutex created at srv0srv.c, line 1621.
-
Fixed a bug : SHOW INNODB STATUS on Unix always reported average file read size as 0 bytes.
-
We again use unbuffered disk I/O in Windows. Windows XP and Windows 2000 read performance seems to be very poor with normal I/O.
-
Increased the max key length of InnoDB tables from 500 to 1024 bytes.
-
Increased the table comment field in SHOW TABLE STATUS so that up to 16000 characters of foreign key definitions can be printed there.
-
The auto-increment counter is no longer incremented if an insert of a row immediately fails in an error.
-
Allow dropping and creating a table even if innodb_force_recovery is set. One can use this to drop a table which would cause a crash in rollback or purge, or if a failed table import causes a runaway rollback in recovery.
-
Fixed a bug : Using ORDER BY primarykey DESC in 4.0.3 causes an assertion failure in btr0pcur.c, line 203.
-
Fixed a bug : fast shutdown (which is the default) sometimes was slowed down by purge and insert buffer merge.
-
Fixed a bug : doing a big SELECT from a table where no rows were visible in a consistent read could cause a very long (> 600 seconds) semaphore wait in btr0cur.c line 310.
-
Fixed a bug : if the MySQL query cache was used, it did not get invalidated by a modification done by ON DELETE CASCADE or ...SET NULL.
-
Fixed a bug : if you created a temporary table inside LOCK TABLES, and used that temporary table, that caused an assertion failure in ha_innodb.cc.
-
Fixed a bug : if you set innodb_flush_log_at_trx_commit to 1, SHOW VARIABLES would show its value as 16 million.
-
Removed unnecessary deadlocks when inserts have to wait for a locking read, update, or delete to release its next-key lock.
-
The MySQL
HANDLERSQL commands now work also forInnoDBtype tables.InnoDBdoes theHANDLERreads always as consistent reads.HANDLERis a direct access path to read individual indexes of tables. In some casesHANDLERcan be used as a substitute of server-side cursors. -
Fixed a bug in 4.0.2: even a simple insert could crash the AIX version.
-
Fixed a bug : if you used in a table name characters whose code is > 127, in DROP TABLE InnoDB could assert on line 155 of pars0sym.c.
-
Compilation from source now provides a working version both on HP-UX-11 and HP-UX-10.20. The source of 4.0.2 worked only on 11, and the source of 3.23.52 only on 10.20.
-
Fixed a bug : if compiled on 64-bit Solaris, InnoDB produced a bus error at startup.
-
The feature set of 3.23 will be frozen from this version on. New features will go the 4.0 branch, and only bug fixes will be made to the 3.23 branch.
-
Many CPU-bound join queries now run faster. On Windows also many other CPU-bound queries run faster.
-
A new SQL command SHOW INNODB STATUS returns the output of the InnoDB Monitor to the client. The InnoDB Monitor now prints detailed information on the latest detected deadlock.
-
InnoDB made the SQL query optimizer to avoid too much index-only range scans and choose full table scans instead. This is now fixed.
-
BEGINandCOMMITare now added in the binlog around transactions. The MySQL replication now respects transaction borders: a user will no longer see half transactions in replication slaves. -
A replication slave now prints in crash recovery the last master binlog position it was able to recover to.
-
A new setting innodb_flush_log_at_trx_commit=2 makes InnoDB to write the log to the operating system file cache at each commit. This is almost as fast as the setting innodb_flush_log_at_trx_commit=0, and the setting 2 also has the nice feature that in a crash where the operating system does not crash, no committed transaction is lost. If the operating system crashes or there is a power outage, then the setting 2 is no safer than the setting 0.
-
Added checksum fields to log blocks.
-
SET FOREIGN_KEY_CHECKS=0 helps in importing tables in an arbitrary order which does not respect the foreign key rules.
-
SET UNIQUE_CHECKS=0 speeds up table imports into InnoDB if you have UNIQUE constraints on secondary indexes. This flag should be used only if you are certain that the input records contain no UNIQUE constraint violations.
-
SHOW TABLE STATUS now lists also possible ON DELETE CASCADE or ON DELETE SET NULL in the comment field of the table.
-
When CHECK TABLE is run on any InnoDB type table, it now checks also the adaptive hash index for all tables.
-
If you defined ON DELETE CASCADE or SET NULL and updated the referenced key in the parent row, InnoDB deleted or updated the child row. This is now changed to conform to SQL-92: you get the error 'Cannot delete parent row'.
-
Improved the auto-increment algorithm: now the first insert or SHOW TABLE STATUS initializes the auto-increment counter for the table. This removes almost all surprising deadlocks caused by SHOW TABLE STATUS.
-
Aligned some buffers used in reading and writing to datafiles. This allows using unbuffered raw devices as datafiles in Linux.
-
Fixed a bug : If you updated the primary key of a table so that only the case of characters changed, that could cause assertion failures, mostly in page0page.ic line 515.
-
Fixed a bug : If you delete or update a row referenced in a foreign key constraint and the foreign key check has to wait for a lock, then the check may report an erroneous result. This affects also the ON DELETE... operation.
-
Fixed a bug : A deadlock or a lock wait timeout error in InnoDB causes InnoDB to roll back the whole transaction, but MySQL could still write the earlier SQL statements to the binlog, even though InnoDB rolled them back. This could, for example, cause replicated databases to get out-of-sync.
-
Fixed a bug : If the database happened to crash in the middle of a commit, then the recovery might leak tablespace pages.
-
Fixed a bug : If you specified a non-latin1 character set in my.cnf, then, in contrary to what is stated in the manual, in a foreign key constraint a string type column had to have the same length specification in the referencing table and the referenced table.
-
Fixed a bug : DROP TABLE or DROP DATABASE could fail if there simultaneously was a CREATE TABLE running.
-
Fixed a bug : If you configured the buffer pool bigger than 2 GB in a 32-bit computer, InnoDB would assert in buf0buf.ic line 214.
-
Fixed a bug : on 64-bit computers updating rows which contained the SQL NULL in some column could cause the undo log and the ordinary log to become corrupt.
-
Fixed a bug : innodb_log_monitor caused a hang if it suppressed lock prints for a page.
-
Fixed a bug : in the HP-UX-10.20 version mutexes would leak and cause race conditions and crashes in any part of InnoDB code.
-
Fixed a bug : if you ran in the AUTOCOMMIT mode, executed a SELECT, and immediately after that a RENAME TABLE, then RENAME would fail and MySQL would complain about error 1192.
-
Fixed a bug : if compiled on 64-bit Solaris, InnoDB produced a bus error at startup.
-
InnoDB is essentially the same as InnoDB-3.23.51.
-
If no innodb_data_file_path is specified, InnoDB at the database creation now creates a 10 MB auto-extending datafile ibdata1 to the datadir of MySQL. In 4.0.1 the file was 64 MB and not auto-extending.
-
Fixed a bug : a join could result in a seg fault in copying of a BLOB or TEXT column if some of the BLOB or TEXT columns in the table contained SQL NULL values.
-
Fixed a bug : if you added self-referential foreign key constraints with ON DELETE CASCADE to tables and a row deletion caused InnoDB to attempt the deletion of the same row twice because of a cascading delete, then you got an assertion failure.
-
Fixed a bug : if you use MySQL 'user level locks' and close a connection, then InnoDB may assert in ha_innobase.cc, line 302.
-
InnoDB now supports an auto-extending last datafile. You do not need to preallocate the whole datafile at the database startup.
-
Made several changes to facilitate the use of the InnoDB Hot Backup tool. It is a separate non-free tool you can use to take online backups of your database without shutting down the server or setting any locks.
-
If you want to run the InnoDB Hot Backup tool on an auto-extending datafile you have to upgrade it to version ibbackup-0.35.
-
The log scan phase in crash recovery will now run much faster.
-
Starting from this server version, the hot backup tool truncates unused ends in the backup InnoDB datafiles.
-
To allow the hot backup tool to work, on Windows we no longer use unbuffered I/O or native async I/O; instead we use the same simulated async I/O as on Unix.
-
You can now define the ON DELETE CASCADE or ON DELETE SET NULL clause on foreign keys.
-
FOREIGN KEY constraints now survive ALTER TABLE and CREATE INDEX.
-
We suppress the FOREIGN KEY check if any of the column values in the foreign key or referenced key to be checked is the SQL NULL. This is compatible with Oracle, for example.
-
SHOW CREATE TABLE now lists also foreign key constraints. Also mysqldump no longer forgets about foreign keys in table definitions.
-
You can now add a new foreign key constraint with ALTER TABLE ... ADD CONSTRAINT FOREIGN KEY (...) REFERENCES ... (...).
-
FOREIGN KEY definitions now allow backquotes around table and column names.
-
MySQL command SET TRANSACTION ISOLATION LEVEL ... has now the following effect on InnoDB tables: if a transaction is defined as SERIALIZABLE then InnoDB conceptually adds LOCK IN SHARE MODE to all consistent reads. If a transaction is defined to have any other isolation level, then InnoDB obeys its default locking strategy which is REPEATABLE READ.
-
SHOW TABLE STATUS no longer sets an x-lock at the end of an auto-increment index if the auto-increment counter has already been initialized. This removes in almost all cases the surprising deadlocks caused by SHOW TABLE STATUS.
-
Fixed a bug : in a CREATE TABLE statement the string 'foreign' followed by a non-space character confused the FOREIGN KEY parser and caused table creation to fail with errno 150.
-
Fixed a bug : if you called DROP DATABASE for a database on which there simultaneously were running queries, the MySQL server could crash or hang. Crashes fixed, but a full fix has to wait some changes in the MySQL layer of code.
-
Fixed a bug : on Windows one had to put the database name in lower case for DROP DATABASE to work. Fixed in 3.23.49: case no longer matters on Windows. On Unix the database name remains case-sensitive.
-
Fixed a bug : if one defined a non-latin1 character set as the default character set, then definition of foreign key constraints could fail in an assertion failure in dict0crea.c, reporting an internal error 17.
-
Tuned the SQL optimizer to favor more often index searches over table scans.
-
Fixed a performance problem when several large SELECT queries are run concurrently on a multiprocessor Linux computer. Large CPU-bound SELECT queries will now also generally run faster on all platforms.
-
If MySQL binlogging is used, InnoDB now prints after crash recovery the latest MySQL binlog file name and the position in that file (= byte offset) InnoDB was able to recover to. This is useful, for example, when resynchronizing a master and a slave database in replication.
-
Added better error messages to help in installation problems.
-
One can now recover also MySQL temporary tables which have become orphaned inside the InnoDB tablespace.
-
InnoDB now prevents a FOREIGN KEY declaration where the signedness is not the same in the referencing and referenced integer columns.
-
Fixed a bug : calling SHOW CREATE TABLE or SHOW TABLE STATUS could cause memory corruption and make mysqld to crash. Especially at risk was mysqldump, because it calls frequently SHOW CREATE TABLE.
-
Fixed a bug : if on Unix you did an ALTER TABLE to an InnoDB table and simultaneously did queries to it, mysqld could crash with an assertion failure in row0row.c, line 474.
-
Fixed a bug : if inserts to several tables containing an auto-inc column were wrapped inside one LOCK TABLES, InnoDB asserted in lock0lock.c.
-
In 3.23.47 we allowed several NULLS in a UNIQUE secondary index. But CHECK TABLE was not relaxed: it reports the table as corrupt. CHECK TABLE no longer complains in this situation.
-
Fixed a bug : on Sparc and other high-endian processors SHOW VARIABLES showed innodb_flush_log_at_trx_commit and other boolean-valued startup parameters always OFF even if they were switched on.
-
Fixed a bug : if you ran mysqld-max-nt as a service on Windows NT/2000, the service shutdown did not always wait long enough for the InnoDB shutdown to finish.
-
Recovery happens now faster, especially in a lightly loaded system, because background checkpointing has been made more frequent.
-
InnoDB allows now several similar key values in a UNIQUE secondary index if those values contain SQL NULLs. Thus the convention is now the same as in MyISAM tables.
-
InnoDB gives a better row count estimate for a table which contains BLOBs.
-
In a FOREIGN KEY constraint InnoDB is now case-insensitive to column names, and in Windows also to table names.
-
InnoDB allows a FOREIGN KEY column of CHAR type to refer to a column of VARCHAR type, and vice versa. MySQL silently changes the type of some columns between CHAR and VARCHAR, and these silent changes do not hinder FOREIGN KEY declaration any more.
-
Recovery has been made more resilient to corruption of log files.
-
Unnecessary statistics calculation has been removed from queries which generate a temporary table. Some ORDER BY and DISTINCT queries will now run much faster.
-
MySQL now knows that the table scan of an InnoDB table is done through the primary key. This will save a sort in some ORDER BY queries.
-
The maximum key length of InnoDB tables is again restricted to 500 bytes. The MySQL interpreter is not able to handle longer keys.
-
The default value of innodb_lock_wait_timeout was changed from infinite to 50 seconds, the default value of innodb_file_io_threads from 9 to 4.
-
InnoDB is the same as in 3.23.47.
-
In 4.0.0 the MySQL interpreter did not know the syntax LOCK IN SHARE MODE. This has been fixed.
-
In 4.0.0 multiple-table delete did not work for transactional tables. This has been fixed.
-
This is a bugfix release.
-
In versions 3.23.42-.44 when creating a table on Windows you have to use lower case letters in the database name to be able to access the table. Fixed in 3.23.45.
-
InnoDB now flushes stdout and stderr every 10 seconds: if these are redirected to files, the file contents can be better viewed with an editor.
-
Fixed an assertion failure in .44, in trx0trx.c, line 178 when you drop a table which has the .frm file but does not exist inside InnoDB.
-
Fixed a bug in the insert buffer. The insert buffer tree could get into an inconsistent state, causing a crash, and also crashing the recovery. This bug could appear especially in large table imports or alterations.
-
Fixed a bug in recovery: InnoDB could go into an infinite loop constantly printing a warning message that it cannot find free blocks from the buffer pool.
-
Fixed a bug : when you created a temporary table of the InnoDB type, and then used ALTER TABLE to it, the MySQL server could crash.
-
Prevented creation of MySQL system tables 'mysql.user', 'mysql.host', or 'mysql.db', in the InnoDB type.
-
Fixed a bug which can cause an assertion failure in 3.23.44 in srv0srv.c, line 1728.
-
You can define foreign key constraints on InnoDB tables. An example: FOREIGN KEY (col1) REFERENCES table2(col2).
-
You can create > 4 GB datafiles in those file systems that allow it.
-
Improved InnoDB monitors, including a new innodb_table_monitor which allows you to print the contents of the InnoDB internal data dictionary.
-
DROP DATABASE will now work also for InnoDB tables.
-
Accent characters in the default character set latin1 will be ordered according to the MySQL ordering.<br> NOTE: if you are using latin1 and have inserted characters whose code is > 127 to an indexed CHAR column, you should run CHECK TABLE on your table when you upgrade to 3.23.43, and drop and reimport the table if CHECK TABLE reports an error!
-
InnoDB will calculate better table cardinality estimates.
-
Change in deadlock resolution: in .43 a deadlock rolls back only the SQL statement, in .44 it will roll back the whole transaction.
-
Deadlock, lock wait timeout, and foreign key constraint violations (no parent row, child rows exist) now return native MySQL error codes 1213, 1205, 1216, 1217, respectively.
-
A new my.cnf parameter innodb_thread_concurrency helps in performance tuning in high concurrency environments.
-
A new my.cnf option innodb_force_recovery will help you in dumping tables from a corrupted database.
-
A new my.cnf option innodb_fast_shutdown will speed up shutdown. Normally InnoDB does a full purge and an insert buffer merge at shutdown.
-
Raised maximum key length to 7000 bytes from a previous limit of 500 bytes.
-
Fixed a bug in replication of auto-inc columns with multiline inserts.
-
Fixed a bug when the case of letters changes in an update of an indexed secondary column.
-
Fixed a hang when there are > 24 datafiles.
-
Fixed a crash when MAX(col) is selected from an empty table, and col is a not the first column in a multi-column index.
-
Fixed a bug in purge which could cause crashes.
-
Fixed a bug which corrupted the table if the primary key of a > 8000-byte row was updated.
-
There are now 3 types of InnoDB Monitors: innodb_monitor, innodb_lock_monitor, and innodb_tablespace_monitor. innodb_monitor now prints also buffer pool hit rate and the total number of rows inserted, updated, deleted, read.
-
Fixed a bug in RENAME TABLE.
-
Fixed a bug in replication with an auto-increment column.
-
Support for < 4 GB rows. The previous limit was 8000 bytes.
-
Use the doublewrite file flush method.
-
Raw disk partitions supported as datafiles.
-
InnoDB Monitor.
-
Several hang bugs fixed and an
ORDER BYbug ('Sort aborted') fixed.
-
CHECK TABLEnow works forInnoDBtables. -
A new
my.cnfparameterinnodb_unix_file_flush_methodintroduced. It can be used to tune disk write performance. -
An auto-increment column now gets new values past the transaction mechanism. This saves CPU time and eliminates transaction deadlocks in new value assignment.
-
Several bug fixes, most notably the rollback bug in 3.23.38.
- C.10.1. MySQL Cluster-4.1.11 (01 Apr 2005)
- C.10.2. MySQL Cluster-4.1.10 (12 Feb 2005)
- C.10.3. MySQL Cluster-4.1.9 (13 Jan 2005)
- C.10.4. MySQL Cluster-4.1.8 (14 Dec 2004)
- C.10.5. MySQL Cluster-4.1.7, (23 Octobre 2004)
- C.10.6. MySQL Cluster-4.1.6, 10 octobre 2004
- C.10.7. MySQL Cluster-4.1.5, 16 septembre 2004
- C.10.8. MySQL Cluster-4.1.4, 31 août 2004
- C.10.9. MySQL Cluster-5.0.1, 27 juillet 2004
- C.10.10. MySQL Cluster-4.1.3, 28 juin 2004
Note : cette section n'est pas traduite en fran¸ais.
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
(Bug#9435) TIMESTAMP columns don't update
-
(Bug#8753) Invalid schema object version after dropping index (crash fixed, currently retry required)
-
(Bug#8557) ndbd does not get same nodeid on restart
-
(Bug#8556) corrupt ndb_mgm show printout for certain configurations
-
(Bug#8167) cluster shared memory and mysqld signal usage clash
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
(Bug#8284) Out of fragment memory in DBACC
-
(Bug#8262) Node crash due to bug in DBLQH
-
(Bug#8208) node restart fails on Aix 5.2
-
(Bug#8167) cluster shared memory and mysqld signal usage clash
-
(Bug#8101) unique index and error 4209 while selecting
-
(Bug#8070) (Bug#7937) (Bug#6716) various ndb_restore core dumps on HP-UX
-
(Bug#8010) 4006 forces MySQL Node Restart
-
(Bug#7928) out of connection objects
-
(Bug#7898) mysqld crash with ndb (solaris)
-
(Bug#7864) Not possible to have more than 4.5G data memory
Fonctionnalité ajoutée ou modifiée :
-
New implementation of shared memory transporter.
-
Cluster automatically configures shared memory transporter if possible.
-
Cluster prioritizes usage of transporters with shared memory and localhost TCP
-
Added switches to control the above functions,
ndb-shmandndb-optimized-node-selection.
Bogues corrigés :
-
(Bug#7805) config.ini parsing error
-
(Bug#7798) Running range scan after alter table in different thread causes node failure
-
(Bug#7761) Alter table does not autocommit
-
(Bug#7725) Indexed DATETIME Columns Return Random Results
-
(Bug#7660) START BACKUP does not increment BACKUP-ID (Big Endian machines)
-
(Bug#7593) Cannot Create A Large NDB Data Warehouse
-
(Bug#7480) Mysqld crash in ha_ndbcluster using Query Browser
-
(Bug#7470) shared memory transporter does not connect
-
(Bug#7396) Primary Key not working in NDB Mysql Clustered table (solaris)
-
(Bug#7379) ndb restore fails to handle blobs and multiple databases
-
(Bug#7346) ndb_restore enters infinite loop
-
(Bug#7340) Problem for inserting data into the Text field on utf8
-
(Bug#7124) ndb_mgmd is aborted on startup when using SHM connection
Fonctionnalité ajoutée ou modifiée :
-
Default port for ndb_mgmd was changed to 1186 (from 2200) as this port number was officially assigned to MySQL Cluster by IANA.
-
New command in ndb_mgm, PURGE STALE SESSIONS, as a workaround for cases where nodes fail to allocate a node id even if it is free to use.
-
New command in ndb_mgm, CONNECT.
-
The ndb executables have been changed to make use of the regular MySQL command line option parsing features. See Section 16.5.5, « Options des commandes pour le cluster MySQL » for notes on changes.
-
As bonus of the above you can now specify all command line options in
my.cnfusing the executable names as sections, i.e.[ndbd],[ndb_mgmd],[ndb_mgm],[ndb_restore]etc.[ndbd] ndb-connectstring=myhost.domain.com:1234 [ndb_mgm] ndb-connectstring=myhost.domain.com:1234 -
Added use of section
[mysql_cluster]inmy.cnf. All cluster executables, including mysqld, parse this section. Convenient place to put e.g.ndb-connectstringso that it only needs to be specified once. -
Added cluster log info events on allocation and deallocation of nodeid's.
-
Added cluster log info events on connection refuse as a result of version mismatch.
-
Extended connectstring syntax to allow for leaving the port number out. E.g.
ndb-connectstring|connect-string=myhost1,myhost2,myhost3is a valid connectstring and connect occurs on default port 1186. -
Clear text ndb error messages provided also for error codes that are mapped to corresponding mysql error codes, by executing
SHOW WARNINGSafter an error has occured which relates to the ndb storage engine. -
Significant performance improvements done for read performance, especially for blobs.
-
Added some variables for performance tuning,
ndb_force_sendandndb_use_exact_count. Doshow variables like 'ndb%';in mysql client for listing. Usesetcommand to alter variables. -
Added variables to set some options,
ndb_use_transactionsandndb_autoincrement_prefetch_sz.
Bogues corrigés :
-
(Bug#7303) ndb_mgm: Trying to set CLUSTERLOG for a specific node id core dumps
-
(Bug#7193) start backup gives false error printout
-
(Bug#7153) Cluster nodes don't report error on endianness mismatch
-
(Bug#7152) ndb_mgmd segfaults on incorrect HostName in configuration
-
(Bug#7104) clusterlog filtering and level setting broken
-
(Bug#6995) ndb_recover on varchar fields results in changing case of data
-
(Bug#6919) all status only shows 2 nodes on a 8-node cluster
-
(Bug#6871) DBD execute failed: Got error 897 'Unknown error code' from ndbcluster
-
(Bug#6794) Wrong outcome of update operation of ndb table
-
(Bug#6791) Segmentation fault when config.ini is not correctly set
-
(Bug#6775) failure in acc when running many mysql clients
-
(Bug#6696) ndb_mgm command line options inconsistent with behavior
-
(Bug#6684) ndb_restore doesn't give error messages if inproper command given
-
(Bug#6677) ndb_mgm can crash on "ALL CLUSTERLOG"
-
(Bug#6538) Error code returned when select max() on empty table with index
-
(Bug#6451) failing create table givers "ghost" tables which are impossible to remove
-
(Bug#6435) strange behavior of left join
-
(Bug#6426) update with long pk fails
-
(Bug#6398) update of primary key fails
-
(Bug#6354) mysql does not complain about --ndbcluster option when NDB is not compiled in
-
(Bug#6331) INSERT IGNORE .. SELECT breaks subsequent inserts
-
(Bug#6288) cluster nodes crash on data import
-
(Bug#6031) To drop database you have to execute DROP DATABASE command twice
-
(Bug#6020) LOCK TABLE + delete returns error 208
-
(Bug#6018) REPLACE does not work for BLOBs + NDB
-
(Bug#6016) Strange crash with blobs + different DATABASES
-
(Bug#5973) ndb table belonging to different database shows up in show tables
-
(Bug#5872) ALTER TABLE with blob from ndb table to myisam fails
-
(Bug#5844) Failing mysql-test-run leaves stray NDB processes behind
-
(Bug#5824) HELP text messed up in ndb_mgm
-
(Bug#5786) Duplicate key error after restore
-
(Bug#5785) lock timeout during concurrent update
-
(Bug#5782) Unknown error when using LIMIT with ndb table
-
(Bug#5756) RESTART node from ndb_mgm fails
-
A few more not reported bugs fixed
Fonctionnalités ajoutées ou modifiées :
-
Optimization 1: Improved performance on index scans. Measured 30% performance increase on query which do large amounts of index scans.
-
Optimization 2: Improved performance on primary key lookups. Around double performance for autocommitted primary key lookups.
-
Optimization 3: Improved performance when using blobs by avoiding usage of exclusive locks for blobs.
Bogues corrigés :
-
A few bugs fixed.
Fonctionnalité ajoutée ou modifiée :
-
Limited character set support for storage engine NDBCLUSTER:
Char set Collation big5 big5_chinese_ci big5_bin binary binary euckr euckr_korean_ci euckr_bin gb2312 gb2312_chinese_ci gb2312_bin gbk gbk_chinese_ci gbk_bin latin1 latin1_swedish_ci latin1_bin sjis sjis_japanese_ci sjis_bin tis620 tis620_bin ucs2 ucs2_general_ci ucs2_bin ujis ujis_japanese_ci ujis_bin utf8 utf8_general_ci utf8_bin -
The SCI Transporter has been brought up-to-date with all changes and now works and has been documented as well.
-
Optimizations when several clients to a MySQL Server access ndb tables.
-
Added more checks and warnings for erroneous and unappropriate cluster configurations.
-
SHOW TABLESnow directly shows ndb tables created on a different mysql server, i.e. without a prior table access. -
Enhanced support for starting MySQL Server independently of ndbd and ndb_mgmd.
Bogues corrigés :
-
Quite a few bugs fixed.
Fonctionnalité ajoutée ou modifiée :
-
Many queries in MySQL Cluster are executed as range scans or full table scans. All queries that don't use a unique hash index or the primary hash index will use this access method. In a distributed system it is crucial that batching is properly performed.
In previous version the batch size was fixed to 16 per storage node. In this version it is configurable per MySQL Server. So for queries using lots of large scans it is appropriate to set this parameter rather large and for queries using lots of small scans only fetching a small amount of records it is appropriate to set it low.
The performance of queries can easily change as much as 40% based on how this variable is set.
In future versions more logic will be made to assess the batch size on per query basis. Thus the semantics of this new configuration variable
ScanBatchSizeis likely to change. -
The fixed size overhead of the ndbd process was greatly decreased. Also overhead per operation record was greatly decreased and also overhead per table and index was greatly decreased.
A number of new configuration variables was introduced to be able to configure more buffers in the system. Configuration variables to specify the number of tables, unique hash indexes and ordered indexes was introduced as well.
New configuration variables:
MaxNoOfOrderedIndexes,MaxNoOfUniqueHashIndexesConfiguration variables no longer used:
MaxNoOfIndexes(split into the two above). -
In previous versions
ALTER TABLE,TRUNCATE TABLE, andLOAD DATAwere performed as one big transaction. In this version, all those statements will be automatically separated into a number of transactions.This removes the limitation that one could not change very large tables due to the
MaxNoOfConcurrentOperationsparameter. -
The online backup feature of MySQL Cluster now also backs up the indexes such that the restore ensures that both data and indexes are restored.
-
In previous versions it was not possible to use
NULLin indexes. This is now possible in all indexes. -
Much work has been put onto making
AUTO_INCREMENTfeatures work as for other table handlers. Autoincrements as a partial key is still only supported byMyISAM. -
In previous version,s mysqld would crash if the cluster wasn't started and the
--ndbclusteroption was used. Now mysqld will handle cluster crashes and not started without crashing. -
The
-ioption for initial startup has been removed from ndbd. Initial startup still can be specified by using the--initialoption. The reason is to ensure that it is clearer what takes place when using the--initialoption. This option completely removes all data from the disk and should only be used at initial start, in certain software upgrade cases, and in some cases when node restarts don't work as a workaround. -
The management client (ndb_mgm) now has more commands and more information is printed in some commands such as
show. -
In previous versions, the files were called
ndb_0..when it wasn't possible to allocate a node ID when starting the node. To ensure that files are not so easily overwritten, these files are now namedndb_pid.., where pid is the process ID assigned by the OS. -
The default parameters have changed for ndb_mgmd and ndbd. Yn particular, they are now started as daemons by default. The
-noption was removed since it could confusion as to whether its meaning is nostart or nodaemon. -
In the configuration file, you can now use
[NDBD]as an alias for[DB],[MYSQLD]as an alias for[API], and[NDB_MGMD]as an alias for[MGM]. -
Many more checks of the consistency of the configuration have been introduced to provide quicker feedback on configuration errors.
-
In the connect string, it is now possible to use both ‘
;’ and ‘,’ as the separator between entries. So "nodeid=2,host=localhost:2200" is equivalent to "nodeid=2;host=localhost:2200".In the configuration, it is possible to use ‘
:’ or ‘=’ as the assignment symbol. ThusMaxNoOfOrderedIndexes : 128andMaxNoOfOrderedIndexes = 128are equivalent. -
The configuration variable names are now case insensitive so
MaxNoOfOrderedIndexes: 128is equivalent toMAXNOOFORDEREDINDEXES = 128. -
It is possible now to set the backup directory separately from the
FileSystemPathby using theBackupDirconfig variable.Log files and trace files can now be put in any directory by setting the
DataDirconfiguration variable.FileSystemPathis no longer mandatory and defaults toDataDir. -
It is now supported to perform queries involving tables from different databases in MySQL.
-
It is now possible to update the primary key.
-
The performance of the ordered index has been greatly improved, particularly the maintenance of the index at updates, inserts and deletes.
Bogues corrigés :
-
Quite a few bugs fixed.
Fonctionnalité ajoutée ou modifiée :
-
The names of the log files and trace files created by the ndbd and ndb_mgmd processes have changed.
-
Support for the many
BLOBdata types was introduced in this version.
Bogues corrigés :
-
Quite a few bugs were fixed in the 4.1.4 release.
Fonctionnalité ajoutée ou modifiée :
-
This was the first MySQL Cluster release in 5.0. Actually almost all attention was on getting 4.1 stable so it is not recommended to use MySQL 5.0.1 for MySQL Cluster usage.
Bogues corrigés :
Fonctionnalité ajoutée ou modifiée :
Bogues corrigés :
-
SQLColumns()returned no information for tables that had a column named using a reserved word. (Bug#9539)
Fonctionnalité ajoutée ou modifiée : No changes.
Bogues corrigés :
-
mysql_list_dbcolumns()andinsert_fields()were retrieving all rows from a table. Fixed the queries generated by these functions to return no rows. (Bug#8198) -
SQLGetTypoInfo()returnedtinyblobforSQL_VARBINARYand nothing forSQL_BINARY. Fixed to returnvarbinaryforSQL_VARBINARY,binaryforSQL_BINARY, andlongblobforSQL_LONGVARBINARY. (Bug#8138)
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.
Remonter 
