Ubuntu Pastebin

Paste from liuxg at Thu, 11 Aug 2016 23:20:56 +0000

Download as text
1
2
3
4
5
6
	mysql --defaults-file=$root_option_file <<SQL
ALTER USER 'root'@'localhost' IDENTIFIED BY '$root_password';
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY '$owncloud_password';
CREATE DATABASE owncloud;
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY '$owncloud_password';
SQL
Download as text