display users in mysql
#display all user data
select * from mysql.user;
#display username and host
select user, host from mysql.user;
display users in mysql
#display all user data
select * from mysql.user;
#display username and host
select user, host from mysql.user;
mysql current user
-- mysql current user:
SELECT USER();
-- or
SELECT CURRENT_USER();
mysql user
CREATE USER 'pdam'@'localhost' IDENTIFIED BY 'pdamP@ssw0rd'; # create user
GRANT ALL PRIVILEGES ON `pdam_db`.* TO 'pdam'@'localhost'; # set db access
FLUSH PRIVILEGES; # Reload
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us