AppSuite:Drop Stored Procedures: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
The following Stored Procedures have to be removed from your configured config database: | The following Stored Procedures have to be removed from your configured config database: | ||
* get_context_id, get_configdb_id | * <code><pre>get_context_id, get_configdb_id</pre></code> | ||
The following Stored Procedures have to be removed from the context schematas: | The following Stored Procedures have to be removed from the context schematas: | ||
* get_attachment_id, get_calendar_id, get_contact_id, get_folder_id, get_forum_id, get_gid_number_id, get_gui_setting_id, get_ical_id, get_infostore_id, get_mail_service_id, get_pinboard_id, get_principal_id, get_project_id, get_resource_group_id, get_resource_id, get_task_id, get_uid_number_id, get_unique_id, get_webdav_id | * <code><pre>get_attachment_id, get_calendar_id, get_contact_id, get_folder_id, get_forum_id, get_gid_number_id, get_gui_setting_id, get_ical_id, get_infostore_id, get_mail_service_id, get_pinboard_id, get_principal_id, get_project_id, get_resource_group_id, get_resource_id, get_task_id, get_uid_number_id, get_unique_id, get_webdav_id</pre></code> | ||
== How to remove affected Stored Procedures? == | == How to remove affected Stored Procedures? == | ||
Line 25: | Line 25: | ||
As there seem to be no routine to remove multiple Stored Procedures for MySQL you have to remove the mentioned procedures one by one. Because of this please execute the following statements with a database user having the appropriate privileges for each procedure that should be removed. Consider executing the command on the correct database (config vs. context db). | As there seem to be no routine to remove multiple Stored Procedures for MySQL you have to remove the mentioned procedures one by one. Because of this please execute the following statements with a database user having the appropriate privileges for each procedure that should be removed. Consider executing the command on the correct database (config vs. context db). | ||
<code><pre> | |||
DROP PROCEDURE <THE_PROCEDURE_NAME>; | DROP PROCEDURE <THE_PROCEDURE_NAME>; | ||
</pre></code> | |||
Revision as of 08:54, 14 September 2015
Summary: This article tells you why and how to remove already existing but obsolete MySQL Stored Procedures from the various databases.
Why to manually remove the existing Stored Procedures?
The Stored Procedures mentioned within the next paragraph aren't needed any more by the Open-Xchange groupware. Because of the reduced privileges Open Xchange recommends with version 7.8.0 (see AppSuite:DB_user_privileges for more information) introduced due to security reasons the existing 'openexchange' database user isn't able to detect the existing Stored Procedures.
Which Stored Procedures are affected?
The following Stored Procedures have to be removed from your configured config database:
get_context_id, get_configdb_id
The following Stored Procedures have to be removed from the context schematas:
get_attachment_id, get_calendar_id, get_contact_id, get_folder_id, get_forum_id, get_gid_number_id, get_gui_setting_id, get_ical_id, get_infostore_id, get_mail_service_id, get_pinboard_id, get_principal_id, get_project_id, get_resource_group_id, get_resource_id, get_task_id, get_uid_number_id, get_unique_id, get_webdav_id
How to remove affected Stored Procedures?
As there seem to be no routine to remove multiple Stored Procedures for MySQL you have to remove the mentioned procedures one by one. Because of this please execute the following statements with a database user having the appropriate privileges for each procedure that should be removed. Consider executing the command on the correct database (config vs. context db).
DROP PROCEDURE <THE_PROCEDURE_NAME>;