Re: [CentOS] Using environment variables in mariadb

2017-04-04 Thread Nux!
ot; <r...@htt-consult.com> > To: "CentOS mailing list" <centos@centos.org> > Sent: Wednesday, 15 March, 2017 04:07:36 > Subject: Re: [CentOS] Using environment variables in mariadb > On 03/14/2017 06:29 PM, Richard wrote: >> >>> Date: Tuesday, March 14, 2017 1

Re: [CentOS] Using environment variables in mariadb

2017-03-14 Thread Robert Moskowitz
On 03/14/2017 06:29 PM, Richard wrote: Date: Tuesday, March 14, 2017 14:53:01 -0700 From: Robert Moskowitz I want to script a rather simple create database operation. Thing is, I have to provide the password for that database. I would like to do this with an

Re: [CentOS] Using environment variables in mariadb

2017-03-14 Thread Richard
> Date: Tuesday, March 14, 2017 14:53:01 -0700 > From: Robert Moskowitz > > I want to script a rather simple create database operation. Thing > is, I have to provide the password for that database. I would like > to do this with an environment variable, but the simple

[CentOS] Using environment variables in mariadb

2017-03-14 Thread Robert Moskowitz
I want to script a rather simple create database operation. Thing is, I have to provide the password for that database. I would like to do this with an environment variable, but the simple approach dose not work: mailpswd=charlie mysql -u root -p CREATE DATABASE mailfix; CREATE USER