Сбои установки MySQL и пароль root не могут быть установлены

Я пытаюсь установить mysql сервер на человечности 14.0.4.

Когда я работал sudo apt-get install mysql-server php5-mysql Я заставил сообщение устанавливать пароль root.

  1. Когда я не установил пароль, это продолжало просить пароль
  2. Когда я установил пароль, он упомянул, что пароль изменился.

Вывод:

start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libhtml-template-perl (2.95-1) ...
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Затем я попробовал следующий шаг, но он перестал работать:

root@jdm:/var/run/mysqld# sudo mysql_install_db
Installing MySQL system tables...
160312  2:14:01 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
160312  2:14:01 [Note] /usr/sbin/mysqld (mysqld 5.5.47-0ubuntu0.14.04.1) starting as process 21095 ...

Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.


root@jdm:/var/run/mysqld# apt-cache policy mysql-server-5.5
mysql-server-5.5:
  Installed: 5.5.47-0ubuntu0.14.04.1
  Candidate: 5.5.47-0ubuntu0.14.04.1
  Version table:
 *** 5.5.47-0ubuntu0.14.04.1 0
0
задан 19 March 2016 в 19:15

1 ответ

Im, не уверенный, почему то, что вы имели эту проблему, но это походит на проблему полномочия с Вашими папками, которые не в состоянии сохранять Вашу настройку, я скопировал бы все важные файлы, Вы имеете и делаете новую установку, потому что на новой установке Вы добираетесь для установки всех паролей и полной среды лампы и сделанного и работающий за чуть более чем час. Надежда, которая помогает

0
ответ дан 29 September 2019 в 10:24

Другие вопросы по тегам:

Похожие вопросы: