解决mysql在ubuntu安装出错

  1. [email protected]:~# apt-get install mysql-server
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following packages were automatically installed and are no longer required:
  6. libjpeg-turbo8 libjpeg8 libxslt1.1 libgd2-noxpm
  7. Use ‘apt-get autoremove‘ to remove them.
  8. The following extra packages will be installed:
  9. libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl
  10. libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
  11. mysql-server-5.5 mysql-server-core-5.5
  12. Suggested packages:
  13. libipc-sharedcache-perl tinyca mailx
  14. The following NEW packages will be installed:
  15. libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl
  16. libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
  17. mysql-server mysql-server-5.5 mysql-server-core-5.5
  18. 0 upgraded, 13 newly installed, 0 to remove and 120 not upgraded.
  19. Need to get 27.3 MB of archives.
  20. After this operation, 97.5 MB of additional disk space will be used.
  21. Do you want to continue [Y/n]? y
  22. Get:1 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-common all 5.5.38-0ubuntu0.12.04.1 [13.2 kB]
  23. Get:2 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.38-0ubuntu0.12.04.1 [949 kB]
  24. Get:3 http://mirrors.tencentyun.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]
  25. Get:4 http://mirrors.tencentyun.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]
  26. Get:5 http://mirrors.tencentyun.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]
  27. Get:6 http://mirrors.tencentyun.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
  28. Get:7 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-client-core-5.5 amd64 5.5.38-0ubuntu0.12.04.1 [1,941 kB]
  29. Get:8 http://mirrors.tencentyun.com/ubuntu/ precise/main libterm-readkey-perl amd64 2.30-4build3 [28.6 kB]
  30. Get:9 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.38-0ubuntu0.12.04.1 [8,342 kB]
  31. Get:10 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-server-core-5.5 amd64 5.5.38-0ubuntu0.12.04.1 [6,090 kB]
  32. Get:11 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-server-5.5 amd64 5.5.38-0ubuntu0.12.04.1 [8,834 kB]
  33. Get:12 http://mirrors.tencentyun.com/ubuntu/ precise/main libhtml-template-perl all 2.10-1 [65.0 kB]
  34. Get:13 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main mysql-server all 5.5.38-0ubuntu0.12.04.1 [11.4 kB]
  35. Fetched 27.3 MB in 0s (40.1 MB/s)
  36. Preconfiguring packages ...
  37. Selecting previously unselected package mysql-common.
  38. (Reading database ... 50553 files and directories currently installed.)
  39. Unpacking mysql-common (from .../mysql-common_5.5.38-0ubuntu0.12.04.1_all.deb) ...
  40. Selecting previously unselected package libmysqlclient18.
  41. Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  42. Selecting previously unselected package libnet-daemon-perl.
  43. Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
  44. Selecting previously unselected package libplrpc-perl.
  45. Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
  46. Selecting previously unselected package libdbi-perl.
  47. Unpacking libdbi-perl (from .../libdbi-perl_1.616-1build2_amd64.deb) ...
  48. Selecting previously unselected package libdbd-mysql-perl.
  49. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...
  50. Selecting previously unselected package mysql-client-core-5.5.
  51. Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  52. Selecting previously unselected package libterm-readkey-perl.
  53. Unpacking libterm-readkey-perl (from .../libterm-readkey-perl_2.30-4build3_amd64.deb) ...
  54. Selecting previously unselected package mysql-client-5.5.
  55. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  56. Selecting previously unselected package mysql-server-core-5.5.
  57. Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  58. Processing triggers for man-db ...
  59. Setting up mysql-common (5.5.38-0ubuntu0.12.04.1) ...
  60. Selecting previously unselected package mysql-server-5.5.
  61. (Reading database ... 50931 files and directories currently installed.)
  62. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.38-0ubuntu0.12.04.1_amd64.deb) ...
  63. Selecting previously unselected package libhtml-template-perl.
  64. Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
  65. Selecting previously unselected package mysql-server.
  66. Unpacking mysql-server (from .../mysql-server_5.5.38-0ubuntu0.12.04.1_all.deb) ...
  67. Processing triggers for man-db ...
  68. Processing triggers for ureadahead ...
  69. ureadahead will be reprofiled on next reboot
  70. Setting up libmysqlclient18 (5.5.38-0ubuntu0.12.04.1) ...
  71. Setting up libnet-daemon-perl (0.48-1) ...
  72. Setting up libplrpc-perl (0.2020-2) ...
  73. Setting up libdbi-perl (1.616-1build2) ...
  74. Setting up libdbd-mysql-perl (4.020-1build2) ...
  75. Setting up mysql-client-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  76. Setting up libterm-readkey-perl (2.30-4build3) ...
  77. Setting up mysql-client-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  78. Setting up mysql-server-core-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  79. Setting up mysql-server-5.5 (5.5.38-0ubuntu0.12.04.1) ...
  80. 140818 13:54:07 [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.
  81. start: Job failed to start
  82. invoke-rc.d: initscript mysql, action "start" failed.
  83. dpkg: error processing mysql-server-5.5 (--configure):
  84. subprocess installed post-installation script returned error exit status 1
  85. Setting up libhtml-template-perl (2.10-1) ...
  86. No apport report written because MaxReports is reached already
  87. dpkg: dependency problems prevent configuration of mysql-server:
  88. mysql-server depends on mysql-server-5.5; however:
  89. Package mysql-server-5.5 is not configured yet.
  90. dpkg: error processing mysql-server (--configure):
  91. dependency problems - leaving unconfigured
  92. No apport report written because MaxReports is reached already
  93. Processing triggers for libc-bin ...
  94. ldconfig deferred processing now taking place
  95. Errors were encountered while processing:
  96. mysql-server-5.5
  97. mysql-server
  98. E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法:

rm -rf /var/lib/mysql/

rm -rf /etc/mysql/

apt-getautoremovemysql*--purge

apt-getremoveapparmor

apt-getinstallmysql-servermysql-common

解决mysql在ubuntu安装出错

时间: 2024-08-28 06:16:03

解决mysql在ubuntu安装出错的相关文章

UBUNTU安装PHP,即所谓得LAMP

Linux+Apache+Mysql/MariaDB+Perl/PHP/Python一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台.随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Net商业软件形成三足鼎立之势,并且该软件开发的项目在软件方面的投资成本较低,因此受到整个IT界的关注.从网站的流量上来说,70%以上的访问流量是LAMP来提供的,LAMP是最强大的网站解决方案.

解决VirtualBox下安装虚拟机(Ubuntu)出错(不能为虚拟电脑Ubuntu打开一个新的任务)的有关问题

[转]http://www.myexception.cn/program/1964906.html 解决VirtualBox下安装虚拟机(Ubuntu)出错(不能为虚拟电脑Ubuntu打开一个新的任务)的问题 图片摘自别人 错误提示如下: Unable to load R3 module D:\Program Files\Oracle\VirtualBox/VBoxDD.dll(VBoxDD):GetLastError=1790(VERR_UNRESOLVED_ERROR) 意思是:出现这样的原

ubuntu安装mysql乱码解决

ubuntu安装mysql乱码解决 1.问题描述: 插入汉字: 乱码显示: 2.解决方法: 执行下面命令: 添加如下粉色区域内容: 即:character-set-server= utf8 保存退出. 重启mysql: 3.验证乱码是否解决: 重新建一个数据库: 进入数据库: 创建表: 插入包含汉字数据: 查询表内容: 汉字正常显示: 更改后,汉字正常显示.

ubuntu安装mysql可以启动,但找不到mysql.sock

ubuntu安装mysql找不到mysql.sock解决办法 重新启动mysql 查看mysql日志 gedit /var/log/mysqld/err.log 可以发现没有mysql.sock 但是有一个mysqld.sock 文件地址目录:/var/run/mysqld/mysqld.sock 将php.ini下面的 mysql.default_socket 改为 mysql.default_socket = /var/run/mysqld/mysqld.sock 重启apache 然后添加

ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages

问题: I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then pressed Enter] export M2=$M2_HOME/bin [Then pressed En

MySQL在Ubuntu设置自启动的一个故障解决

MySQL在Ubuntu设置自启动的一个故障解决 作者:chszs,转载需注明.博客主页:http://blog.csdn.net/chszs 在解决MySQL自启动,执行命令: # chkconfig --list The program 'chkconfig' is currently not installed. You can install it by typing: apt-get install chkconfig 发现没安装chkconfig脚本,安装它: [email prot

【mysql】service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误

service MySQL start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下: [[email protected] ~]# service mysql startmysql: unrecognized service[[email protected] ~]# service mysql restartmysql: unrecognized service [[email protected] ~]# rpm -q mysql   查

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下: [[email protected] ~]# service mysql startmysql: unrecognized service[[email protected] ~]# service mysql restartmysql: unrecognized service [[email protected] ~]# rpm -q mysql 查询发

Ubuntu安装MySQL密码初始化问题

在Ubuntu上使用sudo apt-get install mysql-server mysql-common 命令安装MySQL以后,安装过程中没有提示输入密码.然后使用mysql -u root -p 进行登录,然后要求输入密码,可是不管怎么输入,都提示密码错误,那怎么解决呢? 方案如下: 打开/etc/mysql/debian.cnf文件,在这个文件中有系统默认给我们分配的用户名和密码,通过这个密码就可以直接对MySQL进行操作了. 以debian-sys-maint为用户名登录,密码就