Hi,
I am trying to setup database in Nim. I am using Xampp server to use Mysql as the database. I have written following code:-
import std/db_mysql
var db = open("localhost","username","password","DB name")
db.close()
But I am getting below error :-
could not load: (libmysql.dll|libmariadb.dll)
Error: execution of an external program failed:......
Please Help.
Hi, I was able to solve above problem by downloading the libmysql.dll file from - https://www.dlldownloader.com/libmysql-dll/.
Then I kept the file in C:WindowsSystem32 folder.
After this the connection to database was established.
Please confirm if this is the right approach??
Yes it kinda is BUT you should get the client dll from official sources, most of these dll downloader sites are malware distributers.
This could be the right download: