MySQL Error 1126

Posted by & filed under MySQL.

ERROR 1126 (HY000): Can’t open shared library If you receive the error from MySQL while installing a plugin or a user defined function(UDF) there can be several causes: You mistyped your dll file name, double check the name MySQL can’t find the dll file in the plugin folder Run: mysql> show variables like ‘plugin_dir’; And… Read more »

Raw SQL Queries with NHibernate

Posted by & filed under NHibernate.

If you want to execute a native SQL query and don’t care about the result, just grab the ADO.NET database connection from the NHibernate session and use that to run the query. Here’s the code: // Get the NHibernate Session (this line will change depending how you do it) NHibernate.ISession session = SessionManager.GetInstance(); // Create… Read more »