MySQL服务器5.5 : unable to set password for the MySQL "root" user

标签 mysql linux wordpress ubuntu

在 Ubuntu 上更新 MySQL 服务器时,安装程​​序询问我是否要更新 root 密码。无论我是否更改它,我都会收到以下错误:

unable to set password for the MySQL "root" user

dpkg 错误:

Setting up mysql-server-5.5 (5.5.44-0ubuntu0.14.04.1) ... 150803 22:14:05 [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. 150803 22:14:05 [Note] /usr/sbin/mysqld (mysqld 5.5.44-0ubuntu0.14.04.1) starting as process 4824 ... 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 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 Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)

cat /proc/version
Linux version 3.13.0-61-generic (buildd@lgw01-50) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015

我已经尝试了我们在互联网上可以看到的所有方法:清除 mysql-server、删除/var/lib/mysql,...但我仍然收到此错误。

有人成功更新mysql(或与Wordpress兼容的替代数据库)吗?

最佳答案

可能是手动安装Mysql服务器不成功造成的。 要求您清除并重新安装。可以按照此处提供的技巧进行操作

https://askubuntu.com/questions/253023/unable-to-set-password-for-the-mysql-root-user

关于MySQL服务器5.5 : unable to set password for the MySQL "root" user,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31796180/

相关文章:

javascript - SSH 命令在终端中工作,但在 nodejs/ssh2 中失败

python 在 linux 上使用 os.system 传递参数

python - 看门狗模块不通知目录重命名?

html - 当窗口调整大小时,我的导航菜单消失了

javascript - 表单提交导致 URL 损坏

mysql - 在 mysql 中更新带有前缀的列

mysql - 无法弄清楚如何使用中间 id 表组合两个表

MySQL ORDER BY > 如果值相等则交换结果

wordpress - 在 metabox 中使用 WordPress 链接插入对话框?

mysql - MariaDB - 更新/删除无提示失败