lgc100 发表于 2023-10-13 09:16:25

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

安装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):
Restarting mariadb (via systemctl):
include/mariadb.sh: line 46: /usr/local/mariadb/bin/mysqladmin: No such file or directory
Restarting mariadb (via systemctl):
include/main.sh: line 1031: /usr/local/mariadb/bin/mysql: No such file or directory
failed, try other way...
Restarting mariadb (via systemctl):
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):
Add mariadb service at system startup...
Clean database src directory...
Error: MariaDB install failed.
英文看不懂,不知道是什么原因

licess 发表于 2023-10-16 08:41:43

mariadb文件没有完整下载
rm -rf src/mariadb-10.11.3-linux-systemd-x86_64.tar.gz
后重新安装
页: [1]
查看完整版本: 安装lnmp2.0中的mariadb10.11时失败