{excerpt:hidden=true}How to install MySQL Server, create the VCL database, and import the VCL database schema{excerpt}
the database server: {tip}wget --trust-server-names ‘{nolink:http://vcl.apache.org/downloads/download.cgi?action=download&filename=%2Fvcl%2Fapache-VCL-2.3.tar.bz2}’{tip}
{tip}tar -jxvf apache-VCL-2.3.tar.bz2{tip}
{tip}/sbin/chkconfig --level 345 mysqld on{tip}
{tip}/sbin/service mysqld start{tip}
nodes will be on different machines, port 3306 should be opend up {tip} vi /etc/sysconfig/iptables {tip}
-A RH-Firewall-1-INPUT -m state --state NEW -s <web server IP> -p tcp
--dport 3306 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -s -p tcp --dport 3306 -j ACCEPT service iptables restart
{tip}CREATE DATABASE vcl;{tip}
TABLES privileges on the database you just created: {tip}GRANT SELECT,INSERT,UPDATE,DELETE,CREATE TEMPORARY TABLES ON vcl.* TO ‘vcluser’@‘localhost’ IDENTIFIED BY ‘vcluserpassword’;{tip} {note}Replace vcluser and vcluserpassword with that of the user you want to use to connect to the database{note} {info}The GRANT command will automatically create the user if it doesn't already exist{info}
{tip}mysql vcl < apache-VCL-2.3/mysql/vcl.sql{tip} {info}The vcl.sql file is included in the mysql directory within the Apache VCL source code{info}
Next step: VCL:VCL 2.3 Web Code Installation