On Linux/KDE Akonadi creates a separate instance of MySQL. Runs in the users folder and could be connected to through Konsole with mysql -S /run/user/1000/akonadi/mysql.socket When trying to connect to this socket following error if Base appears: Can't connect to MySQL server on 'localhost' (111) at /home/buildslave/source/libo-core/connectivity/source/drivers/mysqlc/mysqlc_general.cxx:120 Connection settings are only Databasename → Test Socket → /run/user/1000/akonadi/mysql.socket … and nothing else, because there is no user needed … For testing this you will need Linux and KDE. Akonadi will run by default with MariaDB started. Start with the command in Konsole to see it is running. SHOW DATABASES; will show you the databases "test" and "akonadi". Now try to connect by Base with direct connection - impossible.
I gave a try with master sources updated today. I know nothing about socket so just followed step1 and step2 from https://www.jetbrains.com/help/datagrip/how-to-connect-to-mysql-with-unix-sockets.html#step-4-configure-the-mysql-driver-in-ide the only difference was for step2, there was a lacking "d", I had to use: mysql -u root -p -S /var/run/mysqld/mysqld.sock not: mysql -u root -p -S /var/run/mysqld/mysql.sock Then, I launched LO and used "/var/run/mysqld/mysqld.sock" for socket, used "root" for user and used the password associated, I tested the connection, it was ok. So the difference with you is I had to use a user/password.
(In reply to Julien Nabet from comment #1) > > Then, I launched LO and used "/var/run/mysqld/mysqld.sock" for socket, used > "root" for user and used the password associated, I tested the connection, > it was ok. You are connecting to the socket of MySQL/MariaDB, which isn't a separate instance. The only socket I found on my system is the instance through Socket → /run/user/1000/akonadi/mysql.socket Akonadi is running on every system with KDE. You don't need to start MySQK/MariaDB-server for connecting to this socket and connecting (this way) to the separate Akonadi instance. It is impossible to connect to the separate Akonadi instance through the systemwide MySQL/MariaDB-server. Akonadi uses it's own server…
Ok since I don't use kde env (and so akonadi), I won't be able to test this.
Hey, this is a long standing bug, I can confirm this for ages now. I get the same error when trying to connect to a local mariadb instance via a unix socket (non-tcp). The same error shows: "Can't connect to server on 'localhost' (111) at /usr/src/debug/libreoffice-fresh/libreoffice-7.5.3.2/connectivity/source/drivers/mysqlc/mysqlc_general.cxx:120" It seems to me that using the unix socket is totally ignored, it always wants to connect via TCP, which my mariadb instance has disabled.
Can confirm the bug exists in some form using the versions listed below. I'm getting a different error, with different versions of LO, as listed below each version, listed below :-) I can connect to the database directly using mysql on the console, with no password, as a regular user just as described in the original post. Interestingly, with both versions, when the "Test Connection" button is clicked in the setup process, LO confirms the connection test as successful. After setting up the database connection, when LO gets to the Database home page, if the user clicks on an operation, like Queries, the connection error pops up. Also tried each version with a username and password, and got the same errors. Version: 7.5.3.2 (X86_64) Build ID: 50(Build:2) CPU threads: 1; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded --The connection to the data source "akonaditest2" could not be established. --Access denied for user 'adam'@'localhost' (using password: NO) at /builddir/build/BUILD /libreoffice-7.5.3.2/connectivity/source/drivers/mysqlc/mysqlc_general.cxx:12 Version: 7.7.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 5a2c6f4df7149f8c1f543f120fe19bd66abfc189 CPU threads: 1; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded --The connection to the data source "akonaditest2" could not be established. --Plugin sha256_password could not be loaded: at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/connectivity/source/drivers/mysqlc/mysqlc_general.cxx:120
Dear Robert Großkopf, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug is still the same with Version: 25.2.4.3 (X86_64) / LibreOffice Community Build ID: 33e196637044ead23f5c3226cde09b47731f7e27 CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb) Locale: de-DE (de_DE.UTF-8); UI: de-DE Calc: threaded