I want to create a new user in mysql with syntax:
create user \'demo\'@\'localhost\' identified by \'password\';
But it returns an error: <
After running the command sudo mysql_secure_installation.
sudo mysql to enter into the mysql prompt.SELECT user,authentication_string,plugin,host FROM mysql.user; to check for user root to have as plugin auth_socket.uninstall plugin validate_password; to drop priviledges before running
this ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';Be sure to change password to a strong password.NOTE: check out this link https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04 for more help