Excerpt |
---|
This page describes how to install MySQL Server, create the VCL MySQL database, and import the VCL database schema. |
Prerequisites
Install MySQL Server
- Install MySQL Server
You should have mysql server - 5.x
installed. If mysql server is not installed- :
code
- Configure the MySQL daemon (mysqld) to start automatically:
Your host based firewall (IPTables) should be - Make sure the firewall on the database server is configured to allow traffic from the web server and management
server - node servers to connect to the MySQL daemon TCP port: 3306
(mysqld).
Setting Up the Database for VCL
- . See the firewall documentation for more information:
Create the VCL Database
- Run the MySQL command-line client:
- Create a database:
Panel |
---|
CREATE DATABASE vcl; |
- Create
- start the mysql command line client by running
- create a database in mysql named for use with VCL
Code Block |
---|
CREATE DATABASE vcl;
|
- create
- a user with SELECT, INSERT, UPDATE, and DELETE privileges on the database you just created:
NOTE: Replace 'vcluserpassword' with your own password
!
code
SELECT,INSERT,UPDATE,DELETE |
exit from - Exit the
mysql - MySQL command-line client:
code
locate - Import the vcl.sql file
The - into the database:
Note: The vcl.sql file
should be contained in the release artifact you should have downloaded already. After extracting it, look in the mysql directory. - import vcl.sql file into database
Code Block |
---|
mysql vcl < vcl.sql
|
- is included in the mysql directory within the Apache VCL source code
Panel |
---|
mysql vcl < mysql/vcl.sql |
Next step: VCL 2.2.1 Next step: Web Code Installation