Jump to content
RAGE Multiplayer Community

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: ""
})

connection.connect(function(e)
{
	if (e) 
		console.log("Verbindung konnte nicht hergestellt werden!. Grund: " + e);
	else
		console.log("Verbindung zur Datenbank hergestellt!");
})

 

Console: https://prnt.sc/ul9al7

Link to post
Share on other sites
  • Xabi locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...