美文网首页Java学习之路
(Mysql安装的时候)解压缩报错tar: Error is n

(Mysql安装的时候)解压缩报错tar: Error is n

作者: 椰子奶糖 | 来源:发表于2019-07-08 22:30 被阅读12次

我在配置Mysql的时候用的时前辈给我的安装包(懒得下),然后第一步就出了问题。。。

解压缩报错tar: Error is not recoverable: exiting now

[root@Gris-11140 FMIS2600bak]# tar -zxvf /home/oradata/FMIS2600DMP.tar.gz

gzip: stdin: not in gzip format

tar: Child returned status 1

tar: Error is not recoverable: exiting now

解决方法:

去掉z参数,使用 tar -xvf 解压正常

安装教程,我是参考以下文章;
https://blog.csdn.net/kshon/article/details/83007473

解决/var/log/mysqld.log 中找不到临时密码问题:

网上文章都说了一条指令

 grep 'temporary password' /var/log/mysqld.log

但是我的mysqld.log中没有temporary password

解决方案(我的是5.7版本)

    //删除原来MySQL的残留数据(我装了不止一遍)
    rm -rf /var/lib/mysql
    //2.重启mysqld服务
    systemctl restart mysqld
     //3.再去找临时密码
    grep 'temporary password' /var/log/mysqld.log  

相关文章

网友评论

    本文标题:(Mysql安装的时候)解压缩报错tar: Error is n

    本文链接:https://www.haomeiwen.com/subject/yigshctx.html