Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I'm trying to install semi synchronous replication in my mysql 5.5 and trying to execute the below command:

INSTALL PLUGIN 'rpl_semi_sync_master' SONAME 'semisync_master.so' 

but this command is throwing the below error:

Error Code: 1064. You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use near 
''rpl_semi_sync_master' SONAME 'semisync_master.so'' at line 1 

Please help regarding this. We are using Win7 Professional SP1 32-bit OS.

Thank You

share|improve this question
4  
.so is a Unix shared library. You're using Windows? –  Phil Mar 1 '13 at 12:26

1 Answer 1

I think the problem with your attempt is that you put quotes around the plugin name, along with the fact that you used a .so suffix to the library name.

Step-by-step:

Check that your MySQL install is dynamic_loading capable:

mysql> show variables like '%dynamic%';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| have_dynamic_loading | YES   |
+----------------------+-------+
1 row in set (0.00 sec)

mysql>

Check that your plugin directory is set correctly:

mysql> show variables like '%plugin%';
+---------------+-----------------------------------------------------+
| Variable_name | Value                                               |
+---------------+-----------------------------------------------------+
| plugin_dir    | C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\ |
+---------------+-----------------------------------------------------+
1 row in set (0.00 sec)

mysql>

Then verify the .dll exists in that location:

explorer window, showing the .DLL

The plugin install should then work OK:

mysql> INSTALL PLUGIN rpl_semi_sync_master SONAME 'semisync_master.dll';
Query OK, 0 rows affected (0.01 sec)

mysql>
share|improve this answer
    
I dread MySQL for Windows. +1 for your tolerance. –  RolandoMySQLDBA Mar 1 '13 at 16:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.