Authenticate as a specific user in MySQL

后端 未结 5 1286
离开以前
离开以前 2021-01-14 07:38

I\'m a Brand new User to MySQL DB, have installed the WAMPSERVER and I\'m using MySQL through the MySQL console.

Query_1: Every time that I log in, it directly asks

5条回答
  •  没有蜡笔的小新
    2021-01-14 08:44

    You can specify your username and password like this:

    shell> mysql --user=user_name --password=your_password db_name
    

    As far as I know, there is no way to change user after login without restarting the client.

提交回复
热议问题