我很久以前安装了Mysql5.7,之后我卸载了它并安装了MariaDB禁用apparmor(mysql)配置文件。
现在我卸载了 MariaDB 并且我正在尝试安装 mysql5.7 并且出现此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.28-0ubuntu0.18.04.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up mysql-server-5.7 (5.7.28-0ubuntu0.18.04.4) ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.7 …Run Code Online (Sandbox Code Playgroud) 如何使用date-fns将以下字符串转换为日期?
Jul-30-2021(格式 MMM-DD-YYYY)。
使用momentjs我可以使用以下方法转换它:
moment('Jul-30-2021', 'MMM-DD-YYYY')
Run Code Online (Sandbox Code Playgroud)