翻车合集(附解决方法)

1

问题描述:
在源码安装php时出错
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
解决方法:
缺少libtool和libtool-ltdl-devel软件包,yum安装以下即可
yum -y install libtool libtool-ltdl-devel

2

问题描述:
源码安装过mysql后,重新源码安装新版本的mysql,cmake和make && make install正常,mysql初始化时报错
TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-06-22T13:53:05.583807Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2021-06-22T13:53:05.583828Z 0 [ERROR] Aborting
解决方法:
由于/usr/local/mysql目录下存在data目录,删掉即可。
问题后续:
初始化能正常进行,但是出现几个warning
2021-06-22T14:03:01.222449Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-06-22T14:03:01.405220Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-06-22T14:03:01.442107Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-06-22T14:03:01.505562Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 8e727ca6-d362-11eb-a308-000c2929037e.
2021-06-22T14:03:01.506517Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed’ cannot be opened.
2021-06-22T14:03:01.507880Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option
mysql能正常使用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值