简体   繁体   中英

How to change user in MySQL Command Line Client

I'm using MySQL 5.5 Command Line Client tool (MySQL CLC) for Windows. When I run this tool, the first thing I'm being asked is:

Enter password:

There is no input for username. So the default user is root . How can I change the root and log in as another user?

mysql -u <non-root-user> should do it. BTW, I find mysql login-path very useful in such cases.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM