VPS侦探论坛

 找回密码
 注册
查看: 1646|回复: 1

安装lnmp2.0中的mariadb10.11时失败

[复制链接]
发表于 2023-10-13 09:16:25 | 显示全部楼层 |阅读模式

安装lnmp2.0中的mariadb10.11时失败,记录如下——


[+] Installing mariadb-10.11.3 Using Generic Binaries...
Uncompress mariadb-10.11.3-linux-systemd-x86_64.tar.gz...

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
mkdir: cannot create directory ‘/usr/local/mariadb’: File exists
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/docs’ to ‘/usr/local/mariadb/docs’: Directory not empty
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/mysql-test’ to ‘/usr/local/mariadb/mysql-test’: Directory not empty
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/scripts’ to ‘/usr/local/mariadb/scripts’: Directory not empty
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/share’ to ‘/usr/local/mariadb/share’: Directory not empty
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/sql-bench’ to ‘/usr/local/mariadb/sql-bench’: Directory not empty
mv: cannot move ‘mariadb-10.11.3-linux-systemd-x86_64/support-files’ to ‘/usr/local/mariadb/support-files’: Directory not empty
groupadd: group 'mariadb' already exists
useradd: user 'mariadb' already exists
cp: cannot stat ‘/usr/local/mariadb/var/*’: No such file or directory

FATAL ERROR: Could not find my_print_defaults

The following directories were searched:

    /usr/local/mariadb/bin
    /usr/local/mariadb/extra

If you compiled from source, you need to either run 'make install' to
copy the software into the correct location ready for operation.
If you don't want to do a full install, you can use the --srcdir
option to only install the mysql database and privilege tables.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
Add mariadb service at system startup...
Starting mariadb (via systemctl):  [  OK  ]
Restarting mariadb (via systemctl):  [  OK  ]
include/mariadb.sh: line 46: /usr/local/mariadb/bin/mysqladmin: No such file or directory
Restarting mariadb (via systemctl):  [  OK  ]
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
failed, try other way...
Restarting mariadb (via systemctl):  [  OK  ]
include/mariadb.sh: line 61: /usr/local/mariadb/bin/mysql: No such file or directory
Set password failed!
include/mariadb.sh: line 66: /usr/local/mariadb/bin/mysql: No such file or directory
FLUSH PRIVILEGES failed!
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
Remove anonymous users...
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Stopping mariadb (via systemctl):  [  OK  ]
Add mariadb service at system startup...
Clean database src directory...
Error: MariaDB install failed.
英文看不懂,不知道是什么原因

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-10-16 08:41:43 | 显示全部楼层


mariadb文件没有完整下载
rm -rf src/mariadb-10.11.3-linux-systemd-x86_64.tar.gz
后重新安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-22 00:56 , Processed in 0.024967 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表