Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeidiSQL Fails to Load dialog.dll Plugin #54

Closed
MattMencel opened this issue Dec 20, 2017 · 8 comments
Closed

HeidiSQL Fails to Load dialog.dll Plugin #54

MattMencel opened this issue Dec 20, 2017 · 8 comments

Comments

@MattMencel
Copy link

Expected behavior

Connect to MariaDB with PAM authentication enabled.

Current behavior

"Error: Authentication plugin 'dialog' cannot be loaded."

Steps to reproduce

  1. Downloaded the latest 64-bit version of HeidiSQL and installed on a Windows 2016 server. Also tested on a Windows 10 desktop with the same result.
  2. Setup a connection to the MariaDB server.
  3. "Error: Authentication plugin 'dialog' cannot be loaded."

Context

  • HeidiSQL version: 9.5.0.5196
  • Database system + version: MariaDB 10.2.11 on CentOS 7
  • Operating system: Win2016 and Win10
@ansgarbecker
Copy link
Collaborator

dialog.dll is normally located in the plugins folder within the HeidiSQL folder. Can you verify it is there?
If it's there, can you have a look at the filesize, to be sure you have the current one: should be 55808 Bytes on a 64bit HeidiSQL install.

@mjmjelde
Copy link

mjmjelde commented Jan 2, 2018

I am getting this same error in HeidiSQL. I am using the same version as he is (even did a clean install by removing all of HeidiSQL). I am also running MariaDB 10.2.11 on CentOS 7.

I have verified that the dialog.dll is in the plugins folder within the HeidiSQL folder. In fact, the only two plugins in the folder are dialog.dll and auth_gssapi_client.dll

@wcwood
Copy link

wcwood commented Mar 3, 2018

I am getting the same error, the dialog.dll is in the plugins folder, saw a few blurbs on the internet that creating a C:\program files\mysql... type path and placing the dialog.dll there is supposed to work with other utilities like mysql workbench, but that is of no help either.

@ansgarbecker
Copy link
Collaborator

Probably the dialog.dll is outdated and should be taken from a newer MariaDB release. You can test yourself, by downloading the 64bit MariaDB, and copying the dialog.dll to HeidiSQL\plugins.

@nerditup1
Copy link

We had this issue with HeidiSQL version 9.5.0.5196 installed on Windows 10. I ran procmon and determined that heidisql.exe was looking for the dialog.dll file in the "C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin" folder. Obviously the dialog.dll file was not there because we are not running the mysql server on this Windows 10 machine. I created a folder named "C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin" and copied the dialog.dll file into that folder. Now HeidiSQL is working as it should.

@ansgarbecker
Copy link
Collaborator

Ok, this lookup into "C:\Program Files..." must be done by libmysql.dll. My code right before connecting to a server looks like this:

PluginDir := AnsiString(ExtractFilePath(ParamStr(0))+'plugins\');
mysql_options(FHandle, MYSQL_PLUGIN_DIR, PAnsiChar(PluginDir));
Connected := mysql_real_connect(...

So HeidiSQL should just look in the plugins folder, nowhere else. When it does so, I suppose that's due to an incompatible dialog.dll.

@wcwood
Copy link

wcwood commented Mar 6, 2018 via email

@ansgarbecker
Copy link
Collaborator

This should be fixed along with #163 - a crude code bug in HeidiSQL which I recently detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants