https://supertokens.com/ logo
s

shorthair_[]

04/10/2022, 9:01 AM
when connecting supertokens to my mysql database im told i have to change it from localhost to my ip
r

rp

04/10/2022, 9:02 AM
That’s if you are using docker for supertokens
Cause if you give localhost to the docker container env var, it will point to inside the image
s

shorthair_[]

04/10/2022, 9:02 AM
oh okay
so
r

rp

04/10/2022, 9:03 AM
I mean inside the container*
s

shorthair_[]

04/10/2022, 9:03 AM
i looked into my settings and found my local ip
i changed it
but it didnt work
r

rp

04/10/2022, 9:03 AM
Is MySQL listening to all interfaces?
Cause be default mysql will only listen to localhost
s

shorthair_[]

04/10/2022, 9:04 AM
dang
how can i change that pls?
r

rp

04/10/2022, 9:04 AM
I think you could google that 😅
s

shorthair_[]

04/10/2022, 9:04 AM
🙈
r

rp

04/10/2022, 9:04 AM
I don’t remember it off the top of my head
s

shorthair_[]

04/10/2022, 9:05 AM
sure
ill get back to you with an update
it also said something about setting the bind-address to 0.0.0.0 using mysqld.cnf
r

rp

04/10/2022, 9:11 AM
Yea. That listens to all interfaces. And that would work
You also need to add a users in mysql that would listen on all ips.
s

shorthair_[]

04/12/2022, 9:57 AM
hey rp
i did it
you have to create a new user
the host has to be your ip address
grant him all priviliges
them
then go to the firewall and allow all connections
r

rp

04/12/2022, 10:34 AM
yes! great!
2 Views