Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP Web サイトで Mongo データベースのバージョンを表示する方法が必要です。たとえば、「powered by MongoDB version 2.2.6」のようなものを表示したい
php mongoClient が接続されているデータベースのバージョンを確認する方法が見つかりません。
私はそれがこれを行う方法だと確信しています。誰も方法を知っていますか?
$server_status = db->command(array('serverStatus' => TRUE));
バージョンを含む多くの情報を提供します (実行するには管理者である必要があります)