Database Administrators
Q&A for database professionals who wish to improve their database skills
Latest Questions
0
votes
0
answers
1076
views
Can't use ODBC to connect to MariaDB
Linux Mint 20 (Ubuntu 20). MariaDB version: "mariadb Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2" LibreOffice 6.4.7.2. I want to run LibreOffice Base as the front end, using ODBC. I previously had MySQL installed in this OS and managed to get ODBC working for Li...
Linux Mint 20 (Ubuntu 20).
MariaDB version:
"mariadb Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2"
LibreOffice 6.4.7.2.
I want to run LibreOffice Base as the front end, using ODBC. I previously had MySQL installed in this OS and managed to get ODBC working for LibreOffice Base. Now I have removed MySQL and installed MariaDB.
**Incidentally, I am now beginning to wonder whether this a LibreOffice glitch. Wouldn't be the first. Any successful experience of getting ODBC to work with MariaDB (specifically) in Linux could be helpful. Though in fact I seem possibly to have got it working in fact (see below: isql with my configured DSN works!).**
I have tried to follow the MariaDB instructions here .
I have put the file libmaodbc.so in /usr/lib64/. I believe this is the main connector file.
I have made a file /etc/odbcinst.ini as follows:
[MariaDB]
Description=MariaDB Connector/ODBC v.3.0
Driver=/usr/lib/libmaodbc.so
Driver64=/usr/lib64/libmaodbc.so
UsageCount=1
and a file /etc/odbc.ini as follows:
[localdb]
Description = MariaDB connection to database
Driver = MariaDB
Database = localdb
Server = localhost
User = user_mike
Password = user_mike
Port = 3306
Socket = /var/run/mysqld/mysqld.sock
When I try to connect using LO Base, this ODBC entry "localdb" is seen. But then when I test out the connection I get:
> [unixODBC][Driver Manager]Data source name not found, and no default driver specified
"Data source name"? But I *chose* the DSN. "default driver"? How might I specify that, I wonder!
Anyone know what I should do? My theory is that the odbc.ini file references the odbcinst.ini file, which in turn drives the libmaodbc.so file.
NB if I go as far as trying to actually make the connection, i.e. to get a list of tables in the database in LO Base, I get
> The connection to the data source "xxx"* could not be established
[ma-3.1.15]Can't connect to local server through socket '/var/run/mysqld/mysqld.sock' (13) \* i.e. the LO Base filename minus the ".odb" extension. I found this answer . This led me to check my .cnf file(s), NB under /etc/mysql... And also to check my socket (with the MariaDB service running): mike@M17A:~/MariaDB_files$ netstat -ln | grep mysql unix 2 [ ACC ] STREAM LISTENING 263752 /var/run/mysqld/mysqld.sock ... interesting: seems to suggest that the socket is alive and well. Also I **can** connect using
[ma-3.1.15]Can't connect to local server through socket '/var/run/mysqld/mysqld.sock' (13) \* i.e. the LO Base filename minus the ".odb" extension. I found this answer . This led me to check my .cnf file(s), NB under /etc/mysql... And also to check my socket (with the MariaDB service running): mike@M17A:~/MariaDB_files$ netstat -ln | grep mysql unix 2 [ ACC ] STREAM LISTENING 263752 /var/run/mysqld/mysqld.sock ... interesting: seems to suggest that the socket is alive and well. Also I **can** connect using
isql localdb
from the CLI: doesn't this suggest things are set up OK?
So what might be the issue?
mike rodent
(111 rep)
Apr 1, 2022, 12:00 PM
• Last activity: Apr 4, 2022, 06:59 PM
2
votes
0
answers
383
views
mysql stopped working after no free space on file system [corruption]
I am experiencing the following error when launching MySQL. >can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket '/var/run/mysql/mysql.sock' exists!` Basically, I have noticed that there is no free space on the partitio...
I am experiencing the following error when launching MySQL.
>can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket '/var/run/mysql/mysql.sock' exists!`
Basically, I have noticed that there is no free space on the partition where MySQL is installed. I freed some space and rebooted, but same error.
I have also tried other solutions I've found on Google, such as: safe mode, restarting services, changing ip address. But none of these have worked.
By the way, the file
/var/run/mysql/mysql.sock
is not present.
P.S. I am using MariaDB
[EDIT]
From the logs it looks like the DB got corrupted:
[ERROR] InnoDB: Database page corruption on disk or a failed file read of tablespace .... you may have to recover from a backup
zerunio
(21 rep)
Mar 10, 2022, 03:38 PM
• Last activity: Mar 10, 2022, 04:46 PM
4
votes
1
answers
1544
views
Why is the Innodb Memcached plugin being deprecated in MySQL 8.0.22?
I originally used "the handlersocket" plugin for NoSQL access to InnoDB tables, then it eventually couldn't be built on newer versions so I migrated to the "Memcached" plugin which was being baked in by Oracle and seemed like a good long term replacement. Now there is a notice on the [plugin documen...
I originally used "the handlersocket" plugin for NoSQL access to InnoDB tables, then it eventually couldn't be built on newer versions so I migrated to the "Memcached" plugin which was being baked in by Oracle and seemed like a good long term replacement.
Now there is a notice on the plugin documentation that "InnoDB memcached plugin is deprecated as of MySQL 8.0.22".
Does anyone know why, and second, does this just mean that it won't be baked in any more but can still be compiled when required, or that development of the plugin has ceased? If it's the latter, are there newer/different options for socket access to tables that skip the overhead of the Query Optimizer? I don't understand why something that adds so much efficiency and flexibility would be dropped so unceremoniously :(
oucil
(516 rep)
Dec 8, 2021, 03:06 PM
• Last activity: Dec 9, 2021, 02:34 PM
0
votes
1
answers
100
views
handler socket on tokudb engine
I am trying to setup handler socket to work with tokudb engine. Database I am running is percona server and i have got tokudb enabled and the tables all have tokudb engine. I was wondering if anyone knows handler socket is compatible with tokudb aswell. Any advise on this would be appreciated. Thank...
I am trying to setup handler socket to work with tokudb engine. Database I am running is percona server and i have got tokudb enabled and the tables all have tokudb engine.
I was wondering if anyone knows handler socket is compatible with tokudb aswell.
Any advise on this would be appreciated.
Thanks
roger moore
(367 rep)
Sep 8, 2015, 07:15 AM
• Last activity: Apr 4, 2021, 01:05 PM
Showing page 1 of 4 total questions