Upgrade to Pro — share decks privately, control downloads, hide ads and more …

2022年のMySQLerが20年前のMySQL 4.0に触ると何が起きるか

yoku0825
November 24, 2022

2022年のMySQLerが20年前のMySQL 4.0に触ると何が起きるか

2022/11/16 db tech showcase 2022

yoku0825

November 24, 2022
Tweet

More Decks by yoku0825

Other Decks in Technology

Transcript

  1. 2003年がどれくらい昔か Oracle Database 10g Release 1 PostgreSQL 7.4 SQL Server

    2000 https://ja.wikipedia.org/wiki/ 2003%E5%B9%B4%E3%81%AE%E6%97%A5%E6%9C%AC 3/94
  2. What is new in MySQL 4.0 • MySQL 4.0 implemented

    a query cache that can give a major speed boost to applications w ith repetitive queries. See Section 7.5.3, “The MySQL Query Cache”. 4/94
  3. What is new in MySQL 4.0 • MySQL 4.0 further

    increased the speed of MySQL Server in a number of areas, such as bu lk INSERT statements, searching on packed indexes, full-text searching (using FULLTEXT in dexes), and COUNT(DISTINCT) 7/94
  4. What is new in MySQL 4.0 • InnoDB storage engine

    as standard • The InnoDB storage engine began to be offered as a standard feature of the MySQL serv er. This provided full support for ACID transactions, foreign keys with cascading UPDAT E and DELETE, and row-level locking as standard features. See Section 13.2, “The InnoD B Storage Engine” 8/94
  5. What is new in MySQL 4.0 MySQL Server added support

    for the UNION statement, a standard SQL feature. 9/94
  6. What is new in MySQL 4.0 Starting with version 4.0,

    MySQL runs natively on Novell NetWare 6.0 and higher. See Sec tion 2.7, “Installing MySQL on NetWare” 10/94
  7. What is new in MySQL 4.0 Features to simplify migration

    from other database systems to MySQL Server include TRUN CATE TABLE (as in Oracle) and identity as a synonym for automatically incremented keys (a s in Sybase). 12/94
  8. What is new in MySQL 4.0 German-speaking users should note

    that MySQL 4.0 added support for a new character set, l atin1_de, which ensures that words with umlauts are sorted in the same order as in Germ an telephone books. 15/94
  9. What is new in MySQL 4.0 As of version 4.0,

    most mysqld parameters (startup options) can be set without taking do wn the server. This is a convenient feature for database administrators. See Section 12. 4.4, “SET Syntax”. 16/94
  10. What is new in MySQL 4.0 On Windows, symbolic link

    handling at the database level was enabled by default. On Uni x, the MyISAM storage engine added support for symbolic linking at the table level (and n ot just the database level as before). 20/94
  11. What is new in MySQL 4.0 • The addition of

    the SQL_CALC_FOUND_ROWS and FOUND_ROWS() [815] functions made it poss ible to find out the number of rows a SELECT query that includes a LIMIT clause would ha ve returned without that clause. 21/94
  12. What is new in MySQL 8.0 The SQL_CALC_FOUND_ROWS query modifier

    and accompanying FOUND_ROWS() function are depre cated. See the FOUND_ROWS() description for information about an alternative strategy. 23/94
  13. What is new in MySQL 4.0 The embedded server library

    added in this release can easily be used to create standalo ne and embedded applications. The embedded server provides an alternative to using MySQ L in a client/server environment. 24/94
  14. ここまでしても本番のダンプを入れようとすると入らない… $ mysql50 < 20221102_yoku0825_schema.sql Warning: /usr/mysql/5.0.96/bin/mysql: unknown variable 'loose-binary-as-hex=0'

    ERROR 1005 (HY000) at line 102: Can't create table './d1/t22.frm' (errno: 150) $ perror 150 MySQL error code MY-000150 (handler): Foreign key constraint is incorrectly formed 77/94
  15. ところで気が付いたでしょうか? $ mysql50 < 20221102_yoku0825_schema.sql Warning: /usr/mysql/5.0.96/bin/mysql: unknown variable 'loose-binary-as-hex=0'

    ERROR 1005 (HY000) at line 102: Can't create table './d1/t22.frm' (errno: 150) $ perror 150 MySQL error code MY-000150 (handler): Foreign key constraint is incorrectly formed 87/94