Setup MyLVS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Setup mySQL= At the very step we need to setup the database with all the required tables, please use the import script '''mylvs.sql''' to do so. You'll find the script withi...") |
No edit summary |
||
Line 13: | Line 13: | ||
Then exit mysql on run: | Then exit mysql on run: | ||
mysql -u root -p < lvs.sql | mysql -u root -p < lvs.sql | ||
=Setup Apache= | |||
Get and copy the Apache template to: | |||
/etc/apache2/sites-enabled/mylvs.conf | |||
Run: | |||
a2ensite mylvs.conf |
Revision as of 17:39, 14 June 2015
Setup mySQL
At the very step we need to setup the database with all the required tables, please use the import script mylvs.sql to do so. You'll find the script within the download archive in /scripts or on the reference vm in /var/www/mylvs/scripts
mysql -u root -p < lvs.sql
Create Database and Users
Create the database, login into myslq:
# mysql -u root -p
On the SQL prompt type:
mysql> create database mylvs;
Create the default mylvs user:
GRANT ALL PRIVILEGES ON mylvs.* TO mylvsuser@localhost IDENTIFIED BY 'demo';
Then exit mysql on run:
mysql -u root -p < lvs.sql
Setup Apache
Get and copy the Apache template to:
/etc/apache2/sites-enabled/mylvs.conf
Run:
a2ensite mylvs.conf