Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt
hiddentrue

How to install MySQL Server, create the VCL database, and import the VCL database schema

Install & Configure the Database

  1. Download & Extract the Apache VCL Source

    1. If you have not already done so, download and the Apache VCL source to the database server:
      Tip

      wget http://www.apache.org/dist/incubator/vcl/apache-VCL-2.2.1-incubating.tar.bz2

    2. Extract the files:
      Tip

      tar -jxvf apache-VCL-2.2.1-incubating.tar.bz2

  2. Install MySQL Server

    1. Install MySQL Server 5.x:
      Paneltip

      yum install mysql-server -y

    2. Configure the MySQL daemon (mysqld) to start automatically:
      Paneltip

      /sbin/chkconfig --level 345 mysqld on

    3. Start the MySQL daemon:
      Tip

      /sbin/service mysqld start

    4. Make sure the firewall on the database server is configured to allow traffic from the web server and management node servers to connect to the MySQL daemon TCP port: 3306.  See the firewall documentation for more information: .
      Panelinfo

      man iptables

  3. Create the VCL Database

    1. Run the MySQL command-line client:
      Paneltip

      mysql

    2. Create a database:
      Paneltip

      CREATE DATABASE vcl;

    3. Create a user with SELECT, INSERT, UPDATE, DELETE, and DELETE CREATE TEMPORARY TABLES privileges on the database you just created: NOTE: Replace 'vcluserpassword' with your own password
      Paneltip

      GRANT SELECT,INSERT,UPDATE,DELETE,CREATE TEMPORARY TABLES ON vcl.* TO 'vcluser'@'localhost' IDENTIFIED BY 'vcluserpassword';

      Note

      Replace vcluser and vcluserpassword with that of the user you want to use to connect to the database

      Info

      The GRANT command will automatically create the user if it doesn't already exist

    4. Exit the MySQL command-line client:
      Paneltip

      exit

    5. Import the vcl.sql file into the database:
      Tip

      mysql vcl < apache-VCL-2.2.1-incubating/mysql/vcl.sql

      Note: The
      Info

      The

      mysql vcl < mysql/vcl.sql

      vcl.sql file is included in the mysql directory within the Apache VCL source code

      Panel

  4. Install & Configure phpMyAdmin (Optional):

    Excerpt Include
    VCL 2.2.1 phpMyAdmin Installation & Configuration
    VCL 2.2.1 phpMyAdmin Installation & Configuration
    nopaneltrue
    To install phpMyAdmin, follow the instructions on: VCL 2.2.1 phpMyAdmin Installation & Configuration

...

Next step: VCL 2.2.1 Web Code Installation