You must have JavaScript enabled to use the comments.
25-02-2023

Créer un utilisateur et sa base avec mysql

Dans mysql (en ligne de commande ou dans adminer ou phpmyadmin)

CREATE DATABASE mabase;
USE mysql;
DROP user 'user'@'localhost';
FLUSH PRIVILEGES;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'mot_de_passe';
GRANT ALL PRIVILEGES ON mabase.* TO 'user'@'localhost';
FLUSH PRIVILEGES;

Changer de mot de passe

ALTER USER 'user'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password';
FLUSH PRIVILEGES;
Tags: informatique