Bug #80642 IF NOT EXISTS or similar for INSTALL PLUGIN
Submitted: 7 Mar 2016 10:33 Modified: 8 Jun 2016 8:40
Reporter: Lars Tangvald Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Errors Severity:S4 (Feature request)
Version:5.7.11 OS:Any
Assigned to: CPU Architecture:Any

[7 Mar 2016 10:33] Lars Tangvald
Description:
INSTALL PLUGIN throws an error if the plugin already exists. This is expected behavior, but it will halt execution of queries. 
This requires fairly ugly workarounds when doing script automation of the server, for instance in the install scripts of Debian/Ubuntu packages.

Being able to run something like INSTALL PLUGIN IF NOT EXISTS would be helpful for this.

How to repeat:
Try to install the same plugin twice, e.g.:
  INSTALL PLUGIN auth_socket soname 'auth_socket.so';