Unable to connect to the mysql localhost server using flexsim connector.

Unable to connect to the mysql localhost server using flexsim connector.

ajay13101997
Not applicable
26 Views
15 Replies
Message 1 of 16

Unable to connect to the mysql localhost server using flexsim connector.

ajay13101997
Not applicable

[ FlexSim 22.0.2 ]

please find the flexsim snap, mysql server details snap, mysql db snap.
I am not able to connect to mysql db from flexsim, i am running mysql application and flexsim application on same system.

need support to create connection between mysql db and flexsim.
Thanks in advance.




Flexsim connector view.png

MYSQL DB VIEW.png

MYSQL server details.png

0 Likes
Accepted solutions (1)
27 Views
15 Replies
Replies (15)
Message 2 of 16

Ben_WilsonADSK
Community Manager
Community Manager
Have you tried removing the ",3306" from the database address, so that the only text is localhost?
0 Likes
Message 3 of 16

ajay13101997
Not applicable
Yes i have tried putting only localhost, but still it does not work
0 Likes
Message 4 of 16

jason_lightfootVL7B4
Autodesk
Autodesk
Can you connect with another application like Excel or MSAccess to import data? Is there a confluct on port 3306?
Message 5 of 16

shanice_c
Not applicable

Have you tried type sakila.db in databasename field? I made this mistake a few days ago.

0 Likes
Message 6 of 16

ajay13101997
Not applicable
Hi,

I have tried connecting via MS SQL it has connected successfully, but with mysql it is not working

0 Likes
Message 7 of 16

jason_lightfootVL7B4
Autodesk
Autodesk

So you can't connect excel or MSAccess to mysql either - that suggests it's a MySQL/machine configuration problem. In testing a similar install to yours with the same port numbers FlexSim connects fine just using "localhost". Have you checked the credentials? You could also try shanice.c's suggestion.

Message 8 of 16

ajay13101997
Not applicable
Ok sure jason i will try your and shanice suggestions
0 Likes
Message 9 of 16

sebastian_canas9DYX7
Collaborator
Collaborator
Accepted solution

@TheHero

I also had this issue while trying to connect to MySQL. I am not totally sure why this happens but I fixed it removing the lastest version I installed of MySQL Server (8.0.29) and then installing an older version (in my case I installed 8.0.1)

After that I could connect to the database succesfully

Message 10 of 16

kavika_faleumu
Autodesk
Autodesk

Hi @TheHero, was one of Sebastián Cañas's or shanice.c's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 11 of 16

ajay13101997
Not applicable
i tried it out but having same error
0 Likes
Message 12 of 16

ajay13101997
Not applicable
i am using workbench 8.0.28
0 Likes
Message 13 of 16

shanice_c
Not applicable

Would you try not type port number 3306?

This is my connection.

1651733812188.png

0 Likes
Message 14 of 16

sebastian_canas9DYX7
Collaborator
Collaborator
I also had problems with that version. Try using an older one!
0 Likes
Message 15 of 16

ajay13101997
Not applicable
thanks, let me try with 8.0.1 version


0 Likes
Message 16 of 16

borja_lorenzo4278
Enthusiast
Enthusiast

Hello @TheHero ,
I have experienced the same error with version 22 of FlexSim. I was able to solve it with version 24.1.1 of FlexSim and version 8.0.26 of MySQL.

Have you been able to solve it?

Which version of FlexSim is giving you this problem?

0 Likes