Is there any universal command that I can use in the console, for example how to find the mysql version ?
You can use dpkg
to get that info:
dpkg -l mysql-server | grep -E "^ii" | tr -s ' ' | cut -d' ' -f3
This will give you the installed version of the mysql-server
package.
If a package is not installed, it will print out "No packages found matching mysql-server." instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With