N1CK3RS0N Posted April 13, 2009 Share Posted April 13, 2009 Hello, I was wondering if anyone knows any command or a good way to get the version of MySQL a person is using. I tried googling it and didn't find much. Wish PHP had some function built into it to do this. Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/ Share on other sites More sharing options...
Daniel0 Posted April 13, 2009 Share Posted April 13, 2009 1) Post in the right forum. 2) SELECT VERSION(); / mysql_get_server_info Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-808967 Share on other sites More sharing options...
N1CK3RS0N Posted April 13, 2009 Author Share Posted April 13, 2009 1) Post in the right forum. 2) SELECT VERSION(); / mysql_get_server_info Sorry I posted wrong forums, wasn't paying attention. And forgot to mention, there is NO connection established when checking the PHP version. Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-808972 Share on other sites More sharing options...
Daniel0 Posted April 13, 2009 Share Posted April 13, 2009 Well, then you obviously cannot figure it out. That would be like if I wanted to ask my neighbor when his birthday is without ever talking to him. Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-808980 Share on other sites More sharing options...
N1CK3RS0N Posted April 13, 2009 Author Share Posted April 13, 2009 Well, then you obviously cannot figure it out. That would be like if I wanted to ask my neighbor when his birthday is without ever talking to him. Erm.. what? Could have a friend ask him for you. That way you don't have to talk to him. Or could ask someone else who would know. Or could look it up on the internet. Or could look up old newspaper articles. So basically my analogy is "where there is a will, there is a way". There could be a way where you explode phpinfo(). Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-809001 Share on other sites More sharing options...
Mchl Posted April 13, 2009 Share Posted April 13, 2009 There is no information about MySQL version in phpinfo output. There's only MySQL API version which is different thing. How would PHP know what is the MySQL's version, if you do not tell it, which server should be checked? Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-809002 Share on other sites More sharing options...
revraz Posted April 14, 2009 Share Posted April 14, 2009 Then ask the person who installed it or who hosts it. Well, then you obviously cannot figure it out. That would be like if I wanted to ask my neighbor when his birthday is without ever talking to him. Erm.. what? Could have a friend ask him for you. That way you don't have to talk to him. Or could ask someone else who would know. Or could look it up on the internet. Or could look up old newspaper articles. So basically my analogy is "where there is a will, there is a way". There could be a way where you explode phpinfo(). Quote Link to comment https://forums.phpfreaks.com/topic/153924-mysql-version-with-php/#findComment-809658 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.