Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# tesffullstack
# Base de datos

## Ejecutar el comando del archivo "creation_script.sql".

### Crear un usuario llamado "conexion" con su respectivo password.

CREATE USER 'conexion'@'localhost' IDENTIFIED BY 'randompass';

### Asignar permisos al usuario creado

GRANT ALL PRIVILEGES ON conexion.* TO 'db_adame'@'localhost';
44 changes: 0 additions & 44 deletions bd/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions bd/script_creacion_bd.sql

This file was deleted.

12 changes: 12 additions & 0 deletions creation_script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE DATABASE IF NOT EXISTS bd_adame;

USE bd_adame;

CREATE TABLE IF NOT EXISTS person (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
lastname VARCHAR(255) NOT NULL,
bird_date DATE NOT NULL,
position VARCHAR(255) NOT NULL,
salary DECIMAL(10, 2) NOT NULL DEFAULT 0.00
);