MySQL Forums
Forum List  »  Newbie

Re: mysql mysqladmin env. variables
Posted by: Jason Whitener
Date: August 27, 2015 01:05PM

Thanks for the reply. Based on your advice, I changed my startup script to just use one variable like so:

#!/bin/bash
mysqlHome=/opt/EIS-cluster/mysql
export mysqlHome
$mysqlHome/bin/mysqld_safe --defaults-file=$mysqlHome/my.cnf &

In my.cnf

user=mysql
port=3308
basedir=/opt/EIS-cluster/mysql
datadir=/opt/EIS-cluster/mysql/data
log-error=/opt/EIS-cluster/mysql/logs/mysql-safe-error.log
pid-file=/opt/EIS-cluster/mysql/logs/mysqld.pid
socket=/opt/EIS-cluster/mysql/logs/mysql.sock


I get an error, 150827 12:02:51 mysqld_safe Logging to '/opt/EIS-cluster/mysql/logs/mysql-safe-error.log'.
150827 12:02:51 mysqld_safe The file /usr/local/mysql/bin/mysqld
does not exist or is not executable.

It is acting like it ignores the defaults file. Did I typo somewhere?

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql mysqladmin env. variables
August 27, 2015 01:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.