Skip to content

fix: fix user name and database name are swapped.#4914

Merged
renecannao merged 1 commit intosysown:v3.0from
msysyamamoto:fix/mysql_status_output
Apr 14, 2025
Merged

fix: fix user name and database name are swapped.#4914
renecannao merged 1 commit intosysown:v3.0from
msysyamamoto:fix/mysql_status_output

Conversation

@msysyamamoto
Copy link
Contributor

I noticed that the displayed Current database and Current user were swapped when running the mysql status command. Consequently, I fixed the affected area.

The output before modification is as follows:

$ mysql -h127.0.0.1 -P6033 -uuser_name -p db_name -e'status'
Enter password:
--------------
mysql  Ver 9.2.0 for macos15.2 on arm64 (Homebrew)

Connection id:          3
Current database:       user_name
Current user:           db_name
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.5.30 (ProxySQL)
Protocol version:       10
Connection:             127.0.0.1 via TCP/IP
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8mb4
Conn.  characterset:    utf8mb4
TCP port:               6033
Binary data as:         Hexadecimal
Uptime:                 11 min 42 sec

Threads: 1  Questions: 14  Slow queries: 0
--------------

@renecannao
Copy link
Contributor

Can one of the admins verify this patch?

@renecannao
Copy link
Contributor

Add to whitelist

@renecannao
Copy link
Contributor

Hi @msysyamamoto , thank you for the fix!

@renecannao renecannao merged commit aff7529 into sysown:v3.0 Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants