Hello,

I'm quite new to the Nim language, but I started to like it immediately :-) ... 
now, I try to find my way through all the tools / functions which I need every 
day and one is accessing Mysql.

Under Windows, I have the following snippet:
    
    
    import db_mysql
    
    let db = open("someserver", "user", "pwd", "database")
    db.close()
    
    echo "Done."
    
    
    
    Run

But executing the code fails with the error:
    
    
    could not load: (libmysql.dll|libmariadb.dll)
    Error: execution of an external program failed: 
'd:\a-daten\nextcloud\nim\mysql.exe '
    
    
    Run

So I googled around and found some hints, I downloaded the Mysql app and 
unzipped it. Then, I copied the "libmysql.dll" to both the folders where my app 
exists and the folder of the nim executable: but still doesn't work. I also put 
the "lib" folder of the Mysql code into the PATH variable, but still doesn't 
work.

Maybe someone could help me? Please be patient I'm a beginner :-)

Reply via email to