praveen cruz praveen cruz - 1 year ago 108
MySQL Question

Unable to install my-sql in Ubuntu after uninstalling it

Error message screen shot

Can anybody help me?

pradeep 22:36:19 pradeep $ dpkg -l | grep mysql | grep ii
ii dbconfig-mysql 2.0.4ubuntu1 all dbconfig-common MySQL/MariaDB support
ii mysql-client-5.7 5.7.15-0ubuntu0.16.04.1 amd64 MySQL database client binaries
ii mysql-client-core-5.7 5.7.15-0ubuntu0.16.04.1 amd64 MySQL database core client binaries
ii mysql-common 5.7.15-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
ii mysql-server 5.7.15-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)
ii mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
ii mysql-server-core-5.7 5.7.15-0ubuntu0.16.04.1 amd64 MySQL database server binaries
ii php-mysql all MySQL module for PHP [default]
ii php7.0-mysql amd64 MySQL module for PHP

Answer Source

When you upgrade the mysql server it has to upgrade the table aslo.

Few possible option to check

  • So you need to run mysql_upgrade.
  • Check either you socket exits or not.
  • Check either you mysqld running or not.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download