question

TheHero avatar image
0 Likes"
TheHero asked TheHero commented

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

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

FlexSim 22.0.2
database connector
· 7
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·
Have you tried removing the ",3306" from the database address, so that the only text is localhost?
0 Likes 0 ·
TheHero avatar image TheHero Ben Wilson ♦♦ commented ·
Yes i have tried putting only localhost, but still it does not work
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ TheHero commented ·
Can you connect with another application like Excel or MSAccess to import data? Is there a confluct on port 3306?
1 Like 1 ·
Show more comments
Kavika F avatar image Kavika F ♦ commented ·

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 0 ·
Sebastián Cañas avatar image
2 Likes"
Sebastián Cañas answered TheHero commented

@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

· 3
5 |100000

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

TheHero avatar image TheHero commented ·
i am using workbench 8.0.28
0 Likes 0 ·
Sebastián Cañas avatar image Sebastián Cañas TheHero commented ·
I also had problems with that version. Try using an older one!
0 Likes 0 ·
TheHero avatar image TheHero Sebastián Cañas commented ·
thanks, let me try with 8.0.1 version


0 Likes 0 ·
shanice.c avatar image
0 Likes"
shanice.c answered shanice.c commented

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

· 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.

TheHero avatar image TheHero commented ·
i tried it out but having same error
0 Likes 0 ·
shanice.c avatar image shanice.c TheHero commented ·

Would you try not type port number 3306?

This is my connection.

1651733812188.png

0 Likes 0 ·
1651733812188.png (20.9 KiB)

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.