MariaDB 10.4 编译安装失败

问答中心分类: DatabaseMariaDB 10.4 编译安装失败
老杨 asked 4年 ago
centos 7,1g内存。
自动安装:wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 3 --php_option 8 --phpcache_option 1 --php_extensions fileinfo,redis --phpmyadmin --db_option 5 --dbinstallmethod 2 --dbrootpwd 88888888888 --redis --iptables --ssh_port 88886 --reboot
 
错误日志:
-- Installing: /usr/local/mariadb/support-files/mysql.server
~/oneinstack/src ~/oneinstack ~
[32mMariaDB installed successfully! [0m
~/oneinstack ~
chown: cannot access ‘/auth_pam_tool_dir’: No such file or directory
Cannot change ownership of the '/auth_pam_tool_dir' directory
to the 'mysql' user. Check that you have the necessary permissions and try again.
Starting MariaDB.191013 01:02:18 mysqld_safe Logging to '/data/mariadb/mysql-error.log'.
191013 01:02:19 mysqld_safe Starting mysqld daemon with databases from /data/mariadb
./etc/init.d/mysqld: line 264: kill: (24563) - No such process
[FAILED]

4 Answers
oneinstack answered 4年 ago
1G 内存可能太小,mariadb用二进制吧

老杨 answered 4年 ago
应该不是因为内存太小,亲测4G内存也是失败。
https://www.cnblogs.com/x00479/p/11389777.html

oneinstack answered 4年 ago
参考修改/usr/local/mariadb/scripts/mysql_install_db 是否能正常初始化?

老杨 answered 4年 ago
改了也会被脚本下载文件覆盖,后面就没有再测试了。