Instructions
Here are the small instructions to make the CRUD system work.
Create database
CREATE DATABASE project;
Create user
CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'new_password'; GRANT ALL ON my_db.* TO 'new_user'@'localhost'; FLUSH PRIVILEGES;
Create table for the database
CREATE TABLE notes ( id INT PRIMARY KEY AUTO_INCREMENT, writer TEXT, time DATETIME, content TEXT );
Update credentials
Remember to update your credentials to config.php -file.