| Bug #31315 | mysql_install_db fails if a default table type of NDB is set in my.cnf | ||
|---|---|---|---|
| Submitted: | 1 Oct 2007 15:41 | Modified: | 2 Sep 11:37 |
| Reporter: | Jim Dowling | ||
| Status: | Patch queued | ||
| Category: | Server: Installing | Severity: | S3 (Non-critical) |
| Version: | 5.1.22 | OS: | Any |
| Assigned to: | Magnus Svensson | Target Version: | 5.1+ |
| Tags: | mysql_install_db default tabletype ndb | ||
| Triage: | D1 (Critical) | ||
[1 Oct 2007 15:41]
Jim Dowling
[1 Oct 2007 16:14]
Miguel Solorzano
Thank you for the bug report.
[12 Oct 2007 18:07]
Konstantin Osipov
Magnus, I believe this is in your hands. The fix is to run mysql_install_db with overriden
default of the default_storage_engine.
Otherwise the following code in the server triggers a failure:
/*
Check that the default storage engine is actually available.
*/
if (default_storage_engine_str)
{
LEX_STRING name= { default_storage_engine_str,
strlen(default_storage_engine_str) };
plugin_ref plugin;
handlerton *hton;
if ((plugin= ha_resolve_by_name(0, &name)))
hton= plugin_data(plugin, handlerton*);
else
{
sql_print_error("Unknown/unsupported table type: %s",
default_storage_engine_str);
unireg_abort(1);
}
[26 Oct 2007 15:39]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/36434 ChangeSet@1.2600, 2007-10-26 15:39:04+02:00, msvensson@pilot.mysql.com +1 -0 Bug#31315 mysql_install_db fails if a default table type of NDB is set in my.cnf - Use myisam as default storage engine when running mysqld in --bootstrap mode
[19 Nov 2007 9:19]
Sveta Smirnova
Bug #32470 was marked as duplicate of this one.
[26 Nov 2007 18:47]
Magnus Svensson
Pushed to mysql-5.1-build
[28 Feb 10:37]
Magnus Svensson
Pushed to 5.1.23 and 6.0.4
[3 Mar 21:47]
Paul DuBois
Noted in 5.1.23, 6.0.4 changelogs. mysql_install_db failed if the default storage engine was NDB. Now it explicitly uses MyISAM as the storage engine when running mysqld --bootstrap.
[12 Mar 22:40]
Sveta Smirnova
Bug still exists in version 5.1.23
[13 Mar 11:38]
Magnus Svensson
Apparently the bug never made it to 5.1.23-rc(just double checked) and it does not look like the patch is in 5.1 repository either. It has probably been removed in a merge.
[2 Sep 11:21]
Magnus Svensson
Recommited patch
[3 Sep 9:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53106 2818 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 9:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53114 2732 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 9:35]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53115 2681 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 10:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53122 2672 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 10:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53131 2744 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 10:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53132 2818 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 10:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53133 2732 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
[3 Sep 10:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/53134 2744 Magnus Svensson 2008-09-02 [merge] Merge bug#31315
