Ok, so I have a wp-config.php file, (word press configuration php script) and it needs information regarding the user, mainly mysql username and password.
I have a script that sets up the users database and password for mysql, is there anyway I can copy the wp-config.php file to the newly created users wordpres dir with the variables for their mysql account inside of the wp-config.php?
At a guess I would imagine something like this :-
Quote:
#Script to make new users..
#Part that makes MySQL account
password=`mkpass -s 0 -l 14`
mysql -u root -e
"create user $user;
create database $user;
grant privileges on $user.* to $user@localhost;
flush;"
echo $user > wp-config.php where $user exists
echo $password > wp-config where $password exists
|
Just a guess,...