2013-07-01 14:31:53 +00:00
|
|
|
In MySQL 5.5, the InnoDB Plugin is the default version and it's compiled in.
|
|
|
|
In this case, the plugin cannot be uninstalled and we get error when trying
|
|
|
|
to do so:
|
|
|
|
|
|
|
|
mysql> uninstall plugin innodb;
|
|
|
|
ERROR 1305 (42000): PLUGIN innodb does not exist
|
|
|
|
|
|
|
|
But the error message is misleading. The plugin does exist, it just cannot
|
|
|
|
be installed because it's not dynamically loaded.
|
|
|
|
|
|
|
|
MySQL bug report: http://bugs.mysql.com/bug.php?id=51771
|
|
|
|
MariaDB bug report: https://mariadb.atlassian.net/browse/MDEV-4573
|
|
|
|
MariaDB fix: http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3802
|
|
|
|
|
2013-10-09 15:55:08 +00:00
|
|
|
diff -up mysql-5.6.14/include/mysql.h.p34 mysql-5.6.14/include/mysql.h
|
|
|
|
--- mysql-5.6.14/include/mysql.h.p34 2013-09-10 09:38:25.000000000 +0200
|
|
|
|
+++ mysql-5.6.14/include/mysql.h 2013-10-09 15:33:04.523541478 +0200
|
2013-07-01 14:31:53 +00:00
|
|
|
@@ -134,6 +134,7 @@ typedef unsigned long long my_ulonglong;
|
|
|
|
|
|
|
|
/* backward compatibility define - to be removed eventually */
|
|
|
|
#define ER_WARN_DATA_TRUNCATED WARN_DATA_TRUNCATED
|
|
|
|
+#define WARN_PLUGIN_DELETE_BUILTIN ER_PLUGIN_DELETE_BUILTIN
|
|
|
|
|
|
|
|
typedef struct st_mysql_rows {
|
|
|
|
struct st_mysql_rows *next; /* list of rows */
|
2013-10-09 15:55:08 +00:00
|
|
|
diff -up mysql-5.6.14/mysql-test/r/plugin.result.p34 mysql-5.6.14/mysql-test/r/plugin.result
|
|
|
|
--- mysql-5.6.14/mysql-test/r/plugin.result.p34 2013-09-10 09:38:27.000000000 +0200
|
|
|
|
+++ mysql-5.6.14/mysql-test/r/plugin.result 2013-10-09 15:33:04.523541478 +0200
|
|
|
|
@@ -162,3 +162,5 @@ SELECT @@SESSION.example_double_thdvar;
|
2013-08-20 15:28:47 +00:00
|
|
|
@@SESSION.example_double_thdvar
|
|
|
|
1000.500000
|
2013-07-01 14:31:53 +00:00
|
|
|
UNINSTALL PLUGIN example;
|
|
|
|
+UNINSTALL PLUGIN MyISAM;
|
|
|
|
+ERROR HY000: Built-in plugins cannot be deleted
|
2013-10-09 15:55:08 +00:00
|
|
|
diff -up mysql-5.6.14/mysql-test/t/plugin.test.p34 mysql-5.6.14/mysql-test/t/plugin.test
|
|
|
|
--- mysql-5.6.14/mysql-test/t/plugin.test.p34 2013-09-10 09:38:27.000000000 +0200
|
|
|
|
+++ mysql-5.6.14/mysql-test/t/plugin.test 2013-10-09 15:33:04.524541479 +0200
|
|
|
|
@@ -160,3 +160,10 @@ SET SESSION example_double_thdvar = 1000
|
2013-08-20 15:28:47 +00:00
|
|
|
SELECT @@SESSION.example_double_thdvar;
|
2013-07-01 14:31:53 +00:00
|
|
|
|
|
|
|
UNINSTALL PLUGIN example;
|
|
|
|
+
|
|
|
|
+#
|
|
|
|
+# MDEV-4573 UNINSTALL PLUGIN misleading error message for non-dynamic plugins
|
|
|
|
+#
|
|
|
|
+--error ER_PLUGIN_DELETE_BUILTIN
|
|
|
|
+UNINSTALL PLUGIN MyISAM;
|
|
|
|
+
|
2013-10-09 15:55:08 +00:00
|
|
|
diff -up mysql-5.6.14/sql/share/errmsg-utf8.txt.p34 mysql-5.6.14/sql/share/errmsg-utf8.txt
|
|
|
|
--- mysql-5.6.14/sql/share/errmsg-utf8.txt.p34 2013-09-10 09:38:26.000000000 +0200
|
|
|
|
+++ mysql-5.6.14/sql/share/errmsg-utf8.txt 2013-10-09 15:33:04.525541480 +0200
|
|
|
|
@@ -6235,7 +6235,7 @@ WARN_NO_MASTER_INFO
|
2013-07-01 14:31:53 +00:00
|
|
|
WARN_OPTION_IGNORED
|
|
|
|
eng "<%-.64s> option ignored"
|
|
|
|
ger "Option <%-.64s> ignoriert"
|
|
|
|
-WARN_PLUGIN_DELETE_BUILTIN
|
|
|
|
+ER_PLUGIN_DELETE_BUILTIN
|
|
|
|
eng "Built-in plugins cannot be deleted"
|
|
|
|
ger "Eingebaute Plugins können nicht gelöscht werden"
|
|
|
|
WARN_PLUGIN_BUSY
|
2013-10-09 15:55:08 +00:00
|
|
|
diff -up mysql-5.6.14/sql/sql_plugin.cc.p34 mysql-5.6.14/sql/sql_plugin.cc
|
|
|
|
--- mysql-5.6.14/sql/sql_plugin.cc.p34 2013-10-09 15:33:04.527541481 +0200
|
|
|
|
+++ mysql-5.6.14/sql/sql_plugin.cc 2013-10-09 15:34:30.760598323 +0200
|
|
|
|
@@ -1979,9 +1979,7 @@ bool mysql_uninstall_plugin(THD *thd, co
|
2013-07-01 14:31:53 +00:00
|
|
|
}
|
|
|
|
if (!plugin->plugin_dl)
|
|
|
|
{
|
2013-10-09 15:55:08 +00:00
|
|
|
- push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
|
2013-07-01 14:31:53 +00:00
|
|
|
- WARN_PLUGIN_DELETE_BUILTIN, ER(WARN_PLUGIN_DELETE_BUILTIN));
|
|
|
|
- my_error(ER_SP_DOES_NOT_EXIST, MYF(0), "PLUGIN", name->str);
|
|
|
|
+ my_error(ER_PLUGIN_DELETE_BUILTIN, MYF(0));
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
if (plugin->load_option == PLUGIN_FORCE_PLUS_PERMANENT)
|