NutzCN Logo
问答 安装mysql报错。
发布于 2505天前 作者 tiankongkm 2262 次浏览 复制 上一个帖子 下一个帖子
标签:
root@JD:/workspace/software# dpkg -i *.deb                                               
(Reading database ... 78594 files and directories currently installed.)
Preparing to unpack libmysqlclient20_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack libmysqlclient-dev_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqlclient-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack libmysqld-dev_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqld-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-client_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-common_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-common (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-client_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-server_5.7.20-1ubuntu16.04_amd64.deb ...
.
Unpacking mysql-community-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-source_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-source (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-test_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-test (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-server_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-testsuite_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-testsuite (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Setting up mysql-common (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-client (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-source (5.7.20-1ubuntu16.04) ...
Setting up libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) ...
Setting up libmysqlclient-dev (5.7.20-1ubuntu16.04) ...
Setting up libmysqld-dev (5.7.20-1ubuntu16.04) ...
Setting up mysql-client (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-server (5.7.20-1ubuntu16.04) ...
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 7: Could not open 'abstractions/mysql'
Setting up mysql-community-test (5.7.20-1ubuntu16.04) ...
Setting up mysql-server (5.7.20-1ubuntu16.04) ...
Setting up mysql-testsuite (5.7.20-1ubuntu16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...

安装mysql时报了个错 请问大佬这是神马原因, ubuntu:16.04

6 回复

只是提示一下,没问题的

@wendal 大叔 我执行 apt-get remove mysql 又把mysql文件夹删掉 之后重新装了一遍 看着没报错 但是/etc/init.d/mysql 却没了。。 神马情况?

oot@JD:/workspace/software/mysql# dpkg -i *.deb (Reading database ... 78594 files and directories currently installed.) Preparing to unpack libmysqlclient20_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack libmysqlclient-dev_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking libmysqlclient-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack libmysqld-dev_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking libmysqld-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-client_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-common_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-common (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-community-client_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-community-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-community-server_5.7.20-1ubuntu16.04_amd64.deb ... . Unpacking mysql-community-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-community-source_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-community-source (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-community-test_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-community-test (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-server_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Preparing to unpack mysql-testsuite_5.7.20-1ubuntu16.04_amd64.deb ... Unpacking mysql-testsuite (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ... Setting up mysql-common (5.7.20-1ubuntu16.04) ... Setting up mysql-community-client (5.7.20-1ubuntu16.04) ... Setting up mysql-community-source (5.7.20-1ubuntu16.04) ... Setting up libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) ... Setting up libmysqlclient-dev (5.7.20-1ubuntu16.04) ... Setting up libmysqld-dev (5.7.20-1ubuntu16.04) ... Setting up mysql-client (5.7.20-1ubuntu16.04) ... Setting up mysql-community-server (5.7.20-1ubuntu16.04) ... AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 7: Could not open 'abstractions/mysql' Setting up mysql-community-test (5.7.20-1ubuntu16.04) ... Setting up mysql-server (5.7.20-1ubuntu16.04) ... Setting up mysql-testsuite (5.7.20-1ubuntu16.04) ... Processing triggers for libc-bin (2.23-0ubuntu5) ... Processing triggers for systemd (229-4ubuntu16) ... Processing triggers for ureadahead (0.100.0-19) ...

oot@JD:/workspace/software/mysql# dpkg -i *.deb     
(Reading database ... 78594 files and directories currently installed.)
Preparing to unpack libmysqlclient20_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack libmysqlclient-dev_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqlclient-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack libmysqld-dev_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking libmysqld-dev (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-client_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-common_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-common (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-client_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-client (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-server_5.7.20-1ubuntu16.04_amd64.deb ...
.
Unpacking mysql-community-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-source_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-source (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-community-test_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-community-test (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-server_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-server (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Preparing to unpack mysql-testsuite_5.7.20-1ubuntu16.04_amd64.deb ...
Unpacking mysql-testsuite (5.7.20-1ubuntu16.04) over (5.7.20-1ubuntu16.04) ...
Setting up mysql-common (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-client (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-source (5.7.20-1ubuntu16.04) ...
Setting up libmysqlclient20:amd64 (5.7.20-1ubuntu16.04) ...
Setting up libmysqlclient-dev (5.7.20-1ubuntu16.04) ...
Setting up libmysqld-dev (5.7.20-1ubuntu16.04) ...
Setting up mysql-client (5.7.20-1ubuntu16.04) ...
Setting up mysql-community-server (5.7.20-1ubuntu16.04) ...
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 7: Could not open 'abstractions/mysql'
Setting up mysql-community-test (5.7.20-1ubuntu16.04) ...
Setting up mysql-server (5.7.20-1ubuntu16.04) ...
Setting up mysql-testsuite (5.7.20-1ubuntu16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...

@wendal 好奇怪奥,第一次安装有/etc/init.d/mysql 第二次没有 但是有/usr/sbin/mysqld 明明是同一个包 而且第二次安装my.cnf内容是空的

添加回复
请先登陆
回到顶部