From c6665ae8ac7fdd408edd7097c269c13bb8a8059e Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 15 Mar 2025 16:04:10 +0100 Subject: [PATCH] =?UTF-8?q?Aktualisiere=20Datenbankverbindung=20auf=20neue?= =?UTF-8?q?n=20Port=20und=20f=C3=BCge=20SQL-Befehl=20zum=20Erstellen=20der?= =?UTF-8?q?=20Benutzertabelle=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Speicher.txt | 36 +++++++++---------------- backend/src/Database/DataBaseManager.js | 2 +- 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/Speicher.txt b/Speicher.txt index ec5b614..07583d7 100644 --- a/Speicher.txt +++ b/Speicher.txt @@ -1,35 +1,23 @@ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser http://phpmyadmin-ikockwc4sccc8oogoocswgow.100.100.54.2.sslip.io/ -agione.ddns.net:5432 +agione.v6.rocks:3210 root Jonas2007 +UM Tabelle zu erstellen +CREATE TABLE users ( + id INT AUTO_INCREMENT PRIMARY KEY, + username VARCHAR(255) NOT NULL UNIQUE, + email VARCHAR(255), + password VARCHAR(255) NOT NULL, + fullName VARCHAR(255), + createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + /**@param {} x*/ -/**@typeof {} x*/ - - -https://codedamn.com/news/nodejs/use-json-web-token-jwt-in-nodejs - - -
- - -
-
-

Spieler 1

-

test

-
-
-

Spieler 2

-

test

-
-
-
\ No newline at end of file +/**@typeof {} x*/ \ No newline at end of file diff --git a/backend/src/Database/DataBaseManager.js b/backend/src/Database/DataBaseManager.js index 5ea19a0..1af0763 100644 --- a/backend/src/Database/DataBaseManager.js +++ b/backend/src/Database/DataBaseManager.js @@ -5,7 +5,7 @@ class DataBaseManager { constructor(host, database) { this.connection = mySql.createConnection({ host: host, - port: 5432, + port: 3210, user: "root", password: "Jonas2007", database: database