天天看点

源码mysql安装问题,Mysql源码安装过程中可能碰到的问题

安装命令集如下:

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