question

Aravind D avatar image
0 Likes"
Aravind D asked Aravind D commented

DBConnector using codes

Hi,
I’m trying to write my own code (C++) to connect to a database. As of now ‘MYSQL’ is my database.
I have MYSQL Server, and was able to set the database connection successful via FlexScript (Database Connector: the Test Connection button returned "Connection succeeded") and I was able to use the import tab to get the data into a global table.
I would like to use C++ code to connect to this database. Please guide me.
Thank you,

FlexSim 19.2.2
database connectordb
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

tannerp avatar image tannerp commented ·

Hi @Aravind D,
Have you tried using the working, pre-built Database Connector tool that exists within FlexSim already?

0 Likes 0 ·
db-connector.png (54.2 KiB)
Aravind D avatar image Aravind D tannerp commented ·

Hi sir, sorry for the late reply.

Yes sir i have tried using it and imported. i wanted to try using codes without using default connector tool

Thankyou

0 Likes 0 ·

1 Answer

·
Joshua S avatar image
1 Like"
Joshua S answered Aravind D commented

In the user manual here under Communication are all the commands to communicate with a database. The commands you want all start with db...... You can click on each one of them and see how they work in order to do what you want.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Aravind D avatar image Aravind D commented ·

sorry for the delay sir.Thankyou so much for your help sir

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.