create new user and connect mysql code example
Example 1: create user mysql
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Example 2: mysql create usaer
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';