Jump to content

MYSQL didnt work


Recommended Posts

Hey Guys, i try to connect my gamemode with database. But nothing happen.

OS: Debian 10

I installed nodejs, npm and mysql.


var mysql = require("mysql");

var connection = mysql.createConnection(
	host: "",
	user: "",
	password: "",
	database: ""

	if (e) 
		console.log("Verbindung konnte nicht hergestellt werden!. Grund: " + e);
		console.log("Verbindung zur Datenbank hergestellt!");


Console: https://prnt.sc/ul9al7

Link to comment
Share on other sites

  • Xabi locked this topic
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...