MySQL connection not possible?

Good morning,

I've written a Spigot plugin that, so far, is solely intended to connect to my MySQL database. Here's the code.

My problem is this error code . I can't find the Microsoft article describing it or any other help online.

Does anyone have a solution for this?

Thank you in advance.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
ntechde
11 months ago

In short: The computer cannot connect to the database. There is a whole ostrich of reasons:

  • Firewall? – Release port 3306
  • MySQL Server doesn’t listen? – edit my.ini and switch from Sockets to TCPIP
  • DB driver makes mistakes or isn’t installed?

And a few others that are more delicate.

Holzbiene2024
11 months ago

Why “this error code”? That’s a whole novel.

My crystal ball means you must allow_url_fopen in the php.ini of the calling server.