Nieuws

Huidige artikelen | Zoek | Syndicatie

Nieuwe versie van MySQL

22-4-2003 - Archief, Ed Sonneveld

MySQL Verise 4.1.0Bij de ontwikkelaars van de populaire database MySQL zit men ook niet stil. Veel zaken die al lang op het verlanglijstje stonden van de grote kring enthousiaste gebruikers lijken nu binnen handbereik te komen. MySQL spreekt vooralsnog van een Alpha versie en moedigt gebruikers aan om deze versie intensief te testen.

MySQL 4.1.0, de nieuwe versie van de populaire Open Source Database, is vrijgegeven. Deze versie is nu beschikbaar als broncode en in binaire vorm voor verschillende platforms en kan worden gedownload van MySQL of een van haar mirrors.  Let er hierbij op dat misschien nog niet alle mirrors zijn bijgewerkt.

Het gaat hier om de eerste Alpha release van de 4.1 versie die veel nieuwe zaken toevoegt. Uiteraard wordt het afgeraden om deze versie in een productie-omgeving te gebruiken.

De makers van MySQL hopen echter dat velen de software toch reeds in ontwikkelomgevingen in gebruik willen nemen om de bugs er zo snel mogelijk uit te krijgen. De lijst van toegevoegde features maakt dit meer dan waard. Hieronder een citaat van de website van MySQL:

  • Subqueries:
    SELECT * FROM t1 WHERE t1.a=(SELECT t2.b FROM t2);

    SELECT * FROM t1 WHERE (1,2,3) IN (SELECT a,b,c FROM t2);
  • Derived tables:
    SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;
  • `INSERT ... ON DUPLICATE KEY UPDATE ...' syntax. This allows you
    to `UPDATE' an existing row if the insert would cause a duplicate
    value in a `PRIMARY' or `UNIQUE' key. (`REPLACE' allows you to
    overwrite an existing row, which is something entirely different.)
    (See http://www.mysql.com/doc/en/INSERT.html for more info)
  • A newly designed `GROUP_CONCAT()' aggregate function.
    (See http://www.mysql.com/doc/en/Group_by_functions.html for more info)
  • Extensive Unicode (UTF8) support.
  • Character sets can be defined per column, table and database.
  • `BTREE' index on `HEAP' tables.
  • Support for OpenGIS (Geographical data).
    (See http://www.mysql.com/doc/en/GIS_spatial_extensions_in_MySQL.html
    for more info)
  • `SHOW WARNINGS' shows warnings for the last command.
    (See http://www.mysql.com/doc/en/SHOW_WARNINGS.html for more info)
  • Faster binary protocol with prepared statements and parameter
    binding.
    (See http://www.mysql.com/doc/en/C_API_Prepared_statements.html for
    more info)
  • Multi-line queries: You can now issue several queries at once and
    then read the results in one go. *Note C API multiple queries::.
    (See http://www.mysql.com/doc/en/C_API_multiple_queries.html for more
    info)
  • Create Table: `CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table LIKE
    table'.
  • Server based `HELP command' that can be used in the `mysql'
    command line client (and other clients) to get help for SQL
    commands.

Voor meer details betreffende wijzigingen in MySQL 4.1.0 zie,
http://www.mysql.com/doc/en/News-4.1.0.html en
http://www.mysql.com/doc/en/MySQL_4.1_In_A_Nutshell.html