Re: MySQL version & O.S. info???

From: Date: Sat, 28 Oct 2000 05:20:08 +0000
Subject: Re: MySQL version & O.S. info???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22417@lists.php.net to get a copy of this message
On 25 Oct 2000, Kraa de Simon wrote: > Hello, > > I'm still missing the environment vars (or other method) for retrieving the > MySQL version and Operating System info... > > Any idea? > > Info Var/Function/Other Example output > ----------------------------------------------------------------------- > Webserver: $SERVER_SOFTWARE Apache/1.3.12 > PHP version: phpversion() 4.0.2 > MySQL version: select ... from ...??? 3.22.32 > Operating System: ??? Windows NT 5.0 build 2195 > Don't know about the operating system. Under unix you could exec 'uname -a' So perhaps try running 'ver'? C:\CRAP>ver Windows Millennium [Version 4.90.3000] Dunno about NT :-) As for MySQL, you want: mysql> select version(); +-----------+ | version() | +-----------+ | 3.22.32 | +-----------+ 1 row in set (0.00 sec) Hope this helps. -- Michael

« previous php.general (#22417) next »