#MySql connection problem

24 messages · Page 1 of 1 (latest)

alpine bear
kind mistBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
alpine bear
hearty void

You need to separate your port and hostname into two properties

alpine bear
hearty void

Exactly like that. Because 3306 is default MySQL port you don’t need to supply it at all. And localhost is the hostname for 127.0.0.1

alpine bear

I think i tried this but the error was same

hearty void

I doubt it was but if it was show the error

alpine bear

well actually it was different

alpine bear
hearty void

Do you actually have a MySQL server running?

alpine bear

not this one wait

alpine bear

this is working right

hearty void

And that is the same server you are running node on?

alpine bear
hearty void

Set host to 127.0.0.1 as it might be that it‘s not listening on ipv6 but only on ipv4

hearty void
alpine bear

I'll try asking the hosting support

drifting badge

??????