Using Windows MySQL Workbench 8.0 with Mariadb and PAM authentication - mysql

I'm currently attempting to get the latest version of MySQL Workbench for Windows to connect to Mariadb v 5.6.10 running on CentOS. With a user authenticated using MySQL's built-in authentication, I can connect fine (I get an incompatibility message, but I can still connect and run queries), but if I try to connect using a PAM-authenticated user, it complains about a missing DLL:
Authentication plugin 'dialog' cannot be loaded.
With procmon, I was able to determine that it is looking for C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin\dialog.dll
Under the pre-8 versions of MySQL Workbench, you could simply extract the DLL from the Windows MariaDB distribution and copy it to the appropriate directory, but this doesn't work with Workbench 8.0 (I tried with the latest Mariadb Windows distribution and it complained about an API incompatibility with the version of dialog.dll I copied in). Are there any DLLs that will allow this to work? Any other workaround?

An alternative is to change the sever configuration and force the client to use mysql_clear_password instead of dialog. However this will not work if PAM service requires multiple questions or challenge-responses.
[mariadb]
....
pam_use_cleartext_plugin

Related

Configure iRedMail to use Mysql instaed of MariaDB on Debian 10

I have a development server with Mysql. I need mysql specifically as I have used the C++ connector API extensively in my code and this API does not work with MariaDB. I need to install a very secure, easily configurable mail server on this server and have chosen to install iRedMail. The thing is, on Buster, mysql gets replaced by MariaDB when you run the iRedMail install script.
Is there a way to configure iRedMail to run with a mysql backend?
I have tried the following tutorial:
https://docs.iredmail.org/install.iredmail.with.remote.mysql.server.html
It did not work. That is the only one I have found.

Installing MySQL 5.7 on Windows

I am struggling to install MySQL 5.7 on Windows 10 after a clean removal of MySQL 8.0. The installer defaults to the version 8.0.12, with no way for me to change it.
When I run the installer (which has the version number 5.7.23.0), I am prompted to the following screen:
... despite the fact that this installer is (supposedly) for specifically the version 5.7.
I am unfamiliar with the manual installation process, so I was wondering if someone could help me install MySQL 5.7 on my PC (preferably all the other MySQL products such as the Connector and the Workbench as well). I've been trying to follow the instructions on the official documentation, but I stopped because I had no idea what I was doing.
I removed my MySQL 8.0.11 installation
Then I removed all the MySQL folders in the program and data folders
I disabled the gateway
Then started the installer for version 5.7.24 and that was oke.
First download all requirements and install them first
Then the installation was done. At the Installation screen, the status was ready to download, but I ignored it first and then I enabled the gateway again and the installation was fine.
At the installation screen it was clearly that version 5.7 would be installed. It only installed some 8.0 products (like the Shell, Router, connectors etc).
After checking, i've got Workbench 8 but MySQL 5.7.24

MySQL connectivity error unable to retrieve list of database

I am trying to connect visual studio to MySQL and get the following error.I looked it up online but couldn't find a solution. Here is the picture of error.
caching_sha2_password is the new default authentication algorithm for MySQL 8.0.4.
In order to connect to a server using that algorithm, you also need your client compiled against a compatible libmysqlclient. I guess the Visual Studio tooling hasn't been upgraded yet.
First I'd try to install the newest Connector/.NET, starting with 8.0.11:
Changes in MySQL Connector/Net 8.0.11 (2018-04-19, General Availability)
Support was added for the new caching_sha2_password padding mechanism introduced in the MySQL 8.0 release series
If that doesn't work, downgrade the authentication for that user, for example to mysql_native_password:
ALTER USER 'root'#'localhost' IDENTIFIED WITH mysql_native_password BY '$yourPasswordHere';
[SOLVED]
Well finally I downloaded the previous version of MySQL which is 5.7.22. After that I downloaded MySQL.Data and MySQL DLLs from nuGet then connected visual studio 2017 with MySQL then it established a successful connection.
Before installing previous version of MySQL you must uninstall currently installed MySQL. Hope it helps someone who is facing the same issue.

Workbench did not install Mysql in services. Should I do it manually? How?

I just installed mysql workbench CE 5.2.
I tried to create and open a connection
and it said "Can't Connect to MYSQL server on '127.0.0.1' (10061)"
I looked around the answers on stackoverflow.
Eventually I found my way on services.
I saw that Mysql was not there.
dev.mysql.com says that I should install it with "mysqld" but it's not found inside the workbench installer.
What should I do?
If there is a way please tell it step by step.
Thank you!
Have you installed MySql server on the local machine? Workbench is just a GUI program to make it easier to access a database - be it on you local machine or a remote machine.
Just install mysql on your local machine. See http://dev.mysql.com/downloads/
There's a MySQL Installer for Windows which does install everything you need in this regard. Including several different server version, connectors, tools like Workbench and more. This installer should be your first attempt.
Of course you can also install the server separately. Download the msi and run the installer. Make sure you name your service properly. mysqld is usually not a name we use on Windows for a service. I recommend something like MySQL56 (for a 5.6 server).

Need Help Installing MySQL

I have downloaded and stalled the MySQL server 5.5 version via .DMG on my Mac.
But I am confused as to what to do next. I have the preference settings bundle and it says that the MySQL server is running. But do I need to download a client separately? I'm trying to access MySQl in terminal to create an account or login but nothing is working.
You need to use the full path to mysql (/var/lib/mysql), or add the mysql directory to your $PATH var.
If you're trying to install LAMP environment on your mac, try a complete solution, such as MAMP (http://www.mamp.info/en/index.html) or XAMP.
These tools are bundled with phpmyadmin, which makes mysql administration easy