- Added package.json for project dependencies and scripts - Created setup_mariadb.sql for database setup and user creation - Documented project development plan in taskfile.txt - Implemented test_setup.sh for system requirements and project structure checks - Configured systemd service files for backend and frontend applications - Added ubu-deployment-commands.sh for deployment instructions on Ubu server
21 lines
646 B
SQL
21 lines
646 B
SQL
-- SQL kommandoer til at oprette database og bruger i MariaDB
|
|
-- Kør disse kommandoer som root i din MariaDB server
|
|
|
|
-- Opret database
|
|
CREATE DATABASE IF NOT EXISTS tilbudgivern CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
|
|
-- Opret bruger (vælg dit eget password)
|
|
CREATE USER IF NOT EXISTS 'tilbuduser'@'localhost' IDENTIFIED BY 'your_secure_password_here';
|
|
|
|
-- Giv bruger rettigheder til databasen
|
|
GRANT ALL PRIVILEGES ON tilbudgivern.* TO 'tilbuduser'@'localhost';
|
|
|
|
-- Opdater rettigheder
|
|
FLUSH PRIVILEGES;
|
|
|
|
-- Vis databaser for at verificere
|
|
SHOW DATABASES;
|
|
|
|
-- Vis brugere
|
|
SELECT User, Host FROM mysql.user WHERE User = 'tilbuduser';
|