[mysql@ol9 mysql]$ ./bin/mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 9.1.0-ShawnYan Source distribution
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \s -------------- ./bin/mysql Ver 9.1.0-ShawnYan for Linux on x86_64 (Source distribution)
Connection id: 9 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 9.1.0-ShawnYan Source distribution Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: utf8mb4 Db characterset: utf8mb4 Client characterset: utf8mb4 Conn. characterset: utf8mb4 UNIX socket: /tmp/mysql.sock Binary data as: Hexadecimal Uptime: 2 min 56 sec
Threads: 2 Questions: 13 Slow queries: 0 Opens: 147 Flush tables: 3 Open tables: 63 Queries per second avg: 0.073 --------------
mysql>
附:使用源码包构建 RPM 包
除了直接从源码编译之外,MySQL 官网还提供了 RPM 格式的源码包,方便构建整套 MySQL Server 社区版 RPM 包。