Difference between revisions of "Install Mysql client driver linux"

From Gestinux Wiki
Jump to navigation Jump to search
(Created page with "Unfortunately some recent changes in Ubuntu made things a bit more difficult... * First find the driver (something like /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21) : s...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Unfortunately some recent changes in Ubuntu made things a bit more difficult...  
+
{{DISPLAYTITLE:Install MariaDb or MySql client driver on Linux}}
 +
 
 +
First find the driver (something like /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21).
 +
 
 +
It's name and location change depending on Linux versions, so Gestinux can't find it.  
  
* First find the driver (something like /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21) :
 
 
   sudo find / libmysql*.* | grep libmysql
 
   sudo find / libmysql*.* | grep libmysql
* if not found, try to install it, and retry.
+
 
 +
if not found, try to install one, and retry the find :
 +
 
 
   sudo apt-get install libmysqlclient*
 
   sudo apt-get install libmysqlclient*
* then run the command line, replacing the 2nd file by the driver path found before.
+
 
   sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21  /usr/lib/mysqlclient.so  
+
Note the file found. It is possible to register it when you will create or select your Database using Gestinux.
* another way is to register later in Gestinux database configuration the filename found.
+
 
 +
You can also run the command line below, replacing the 2nd file by the driver path found before.
 +
   sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21  /usr/lib/mysqlclient.so
 +
 
 +
 
 +
After that go back to proceed with [[Installing|Gestinux installation]]
 +
 
 +
= Read also =
 +
 
 +
[[Install_Postgresql_client_driver|Install Postgresql client driver]]

Latest revision as of 19:15, 2 December 2020

 Français


First find the driver (something like /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21).

It's name and location change depending on Linux versions, so Gestinux can't find it.

 sudo find / libmysql*.* | grep libmysql

if not found, try to install one, and retry the find :

 sudo apt-get install libmysqlclient*

Note the file found. It is possible to register it when you will create or select your Database using Gestinux.

You can also run the command line below, replacing the 2nd file by the driver path found before.

 sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.21  /usr/lib/mysqlclient.so


After that go back to proceed with Gestinux installation

Read also

Install Postgresql client driver