Install Mysql client driver linux

From Gestinux Wiki
Jump to navigation Jump to search

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) :
 sudo find / libmysql*.* | grep libmysql
  • if not found, try to install it, and retry.
 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 
  • another way is to register later in Gestinux database configuration the filename found.