安裝指令集如下:
shell> groupadd mysql
shell> useradd -r -g mysql -s /bin/false mysql
shell> cd /usr/local
shell> tar xvf /path/to/mysql-VERSION-OS.tar.xz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> mkdir mysql-files
shell> chown mysql:mysql mysql-files
shell> chmod 750 mysql-files
shell> bin/mysqld --initialize --user=mysql
shell> bin/mysql_ssl_rsa_setup
shell> bin/mysqld_safe --user=mysql &
1、下載下傳完成mysql源碼包,得到初始密碼後,運作mysqld_safe --user=mysql &,出錯資訊如下“mysqld_safe error: log-error set to ‘/var/log/mariadb/mariadb.log‘, however file don‘t exists, Create writable for user ‘mysql‘. ”
此時需要在/etc/my.cnf檔案中确認.log檔案是否存在
原文:https://www.cnblogs.com/mrnx2004/p/11319269.html