This issue seems to come up every now and then:
http://stackoverflow.com/questions/11990708/error-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysq
http://stackoverflow.com/questions/34265416/cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock
http://stackoverflow.com/questions/22909060/mysql-job-failed-to-start
http://askubuntu.com/questions/90978/mysql-problem-var-run-mysqld-mysqld-sock

Resolution mostly is about getting mysql to start.
Which translates into finding out why it didn't start.

If you install it freshly you should not (need) to create those directories.
If anything they might conflict with what the preinst/postinst scripts do for 
you.
If you have no data yet (since you install) consider purging and reinstalling 
instead of tweaking the directories it touches.

To resolve your issue I found that sometimes this might be due to an incomplete 
setup of mysql.
That makes the sever fail on start and thereby generate this message.
Now I found in your log:
debconf: no se pudo inicializar la interfaz: Dialog
debconf: (Necesita una pantalla de al menos 13 líneas de alto y 31 columnas de 
ancho para la interfaz «dialog».)
debconf: probando ahora la interfaz: Readline
update-alternatives: utilizando /etc/mysql/mysql.cnf para proveer 
/etc/mysql/my.cnf (my.cnf) en modo automático

The bit that the autotranslator gives me tells me that due to that your
debconf config might be incomplete and that might cause my.cnf to be
incomplete which might be your issue.

And finally in the logs I found:
2017-02-23T01:29:13.097185Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
2017-02-23T01:29:13.097236Z 0 [Note] InnoDB: Check that you do not already have 
another mysqld process using the same InnoDB data or log files.
If there is another instance running that will conflict.
Again please remove/purge and make sure you have a clean setup - then the 
install should work.


Finally in the log is:
mysql.service: Failed with result 'exit-code'.
Now that is not much.

If you happened to resolve your console error, the "other mysql" tht seems to 
run, purged and reinstalled and it still doesn't work.
Would you then mind attaching an output of  "service mysql status"?

** Changed in: mysql-5.7 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667178

Title:
  mysql instalation failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1667178/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to