I have created a user Sam with password mypass for my database db.
How to login with this user.
I want to check the privileges privided to this user.
I am using MYSQL 5.5
i am using windows 7. mysql command line.
Logging in is as simple as:
mysql -u Sam -p
You should then be prompted for your password. At this point, you'd either have to select a database to do operations on it or you could check your grants in general.
Checking user privileges is as simple as:
SHOW GRANTS FOR CURRENT_USER;
I would highly recommend reading MySQL :: Getting Started with MySQL .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.