'How can I install lib_mysqludf_sys on Windows?

I need to run a Python code from a mysql trigger and I found out I can use something similar to this:

CREATE TRIGGER Test_Trigger
AFTER INSERT ON SFCRoutingTable
FOR EACH ROW
BEGIN
DECLARE cmd CHAR(255);
DECLARE result int(10);
SET cmd = CONCAT('python /home/triggers.py');
SET result = sys_exec(cmd);
END;

I am having problems to make sys_exec() work. This tutorial seems good, but I can't run it on Windows (https://crazytechthoughts.blogspot.com/2011/12/call-external-program-from-mysql.html?sc=1651234017213#c6161764725603814669).

I have already downloaded the UDF library (https://github.com/mysqludf/lib_mysqludf_sys#readme). I've tried to make this work in so many ways and have read so many tutorials, but none seem to solve my problem. I also have already installed mysqlclient and mysql-connector.

All tutorials are useful for Linux users, but I can't find something for Windows users. Pleease help me! If possible to make an easy step-by-step. I'm a beginner.

Ps: I know it is a dangerous library, but I would like to give it a try anyways.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source