Displaying 3 results from an estimated 3 matches for "mailpswd".
Did you mean:
mailpasswd
2017 Mar 14
2
Using environment variables in mariadb
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 'mailfix'@'localhost' IDENTIFIED BY $mailpswd;
GRANT ALL PRIVILEGES ON `mailfix` . * TO 'mailfix'@'localhost';
Of course the mysql command needs the mysql root password, but that is
as expected. But m...
2017 Mar 15
1
Using environment variables in mariadb
...t htt-consult.com>
>>
>> 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 'mailfix'@'localhost' IDENTIFIED BY $mailpswd;
>> GRANT ALL PRIVILEGES ON `mailfix` . * TO 'mailfix'@'localhost';
>>
>> Of course the mysql co...
2017 Mar 15
0
Using environment variables in mariadb
...Robert Moskowitz <rgm at htt-consult.com>
>
> 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 'mailfix'@'localhost' IDENTIFIED BY $mailpswd;
> GRANT ALL PRIVILEGES ON `mailfix` . * TO 'mailfix'@'localhost';
>
> Of course the mysql command needs the mysql root pa...