Community discussions

MikroTik App
 
xavierbt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Thu Jan 22, 2015 11:55 am

Mikrotik Script connect mysql server

Wed Mar 10, 2021 11:44 am

Hi all,

¿Is possible to connect from script to mysql server to retrieve and write data to MySQL database?

xavier
 
User avatar
erkexzcx
Member Candidate
Member Candidate
Posts: 263
Joined: Mon Oct 07, 2019 11:42 pm

Re: Mikrotik Script connect mysql server

Wed Mar 10, 2021 11:54 am

Why not the other way around? Connecting to Mikrotik router to write/read config/data?
 
xavierbt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Thu Jan 22, 2015 11:55 am

Re: Mikrotik Script connect mysql server

Wed Mar 10, 2021 12:10 pm

Because I have no access to any other device in the network to perform this action. I need to read some data from MySQL in a mikrotik script and report via SMS when MySQL service is not online.
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Mikrotik Script connect mysql server

Thu Mar 11, 2021 11:21 pm

You can not do that with RouterOS.

Is it possible to add a simple web service on your database server? You could use the fetch command to monitor that.

Who is online

Users browsing this forum: No registered users and 29 guests