I need to check if mysql is installed on a ubuntu server. Is there a way to determine if mySql has been installed ? Thanks.
In MySQL Command Line Client, enter the following command: SHOW VARIABLES LIKE 'version'; The MySQL version will be shown instantly.
d/mysql does not exist, the MySQL server is not installed. After installing it using sudo apt-get install mysql-server , it will be started automatically (after the installation and on startup). Ubuntu has migrated from traditional initscripts to Upstart. If you run /etc/init.
1) execute "mysql -uroot -p" and check if you are able to connect mysql, 2) check if you are able to connect your db from outside either sqlyog, mysqladmin etc. and share output to check the issue. cnf will be /etc/my. cnf not /root/my.
You can use tool dpkg for managing packages in Debian operating system.
dpkg --get-selections | grep mysql
if it's listed as installed, you got it. Else you need to get it.
"mysql" may be found even if mysql and mariadb is uninstalled, but not "mysqld".
Faster than rpm -qa | grep mysqld is:
which mysqld
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