create user mysql debian 10
snippet in sql

create user mysql debian 10

user8486

mysql -u root -p
--enter password--
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE `myDB`;
GRANT ALL PRIVILEGES ON myDB . * TO 'user'@'localhost';
FLUSH PRIVILEGES;