HomeForumSourceResearchGuide
Sign in to reply to forum posts.
MySQL connection library missing port

I've tried to connect my webserver into a different port from the default, but the port didn't change. So I've looked into the native library and noticed that it was missing the port mapping. This generated a pull request in the native libraries repository in the following url: https://github.com/projectdana/native_libraries/pull/1

Let me know your thoughs.

Hi Arthur,

This sounds like an obvious correction, thanks for spotting it! We don't actually use github to host the live version of our source code any more, it's hosted here instead via the "source" repo system we use which is integrated into the Dana language distribution.

You can either author the source update yourself, as below, or we can take a look at your git commit diff over the next day or so and do this directly. If you want to push an update to source yourself the process is:

Go to your dana_home/components/ directory and type:

dana source get-lib-src MySQLLib

The .c file lands inside resources-ext/

You can then edit the .c file with your changes. Then do:

dana source put -uls resources-ext/MySQLLib.c -n MySQLLib -gni data.mysql.MySQL -apiv 17 -m "reason for update" -u yourUsername

Once approved this would then go into our build system which would generate compiled binary versions overnight.

Update: this change has been applied now. If you have a recent version of Dana you can get it by going to your [dana_home]/components/ directory and typing:

dana source update

Otherwise the distribution release package also now includes this update.