UP | HOME

MySQL Database

Table of Contents

1 Download and start MySQL

  1. Download MySQL for Windows from mysql-essential.
  2. Start MySQL (doubleclick on mysql-essential-X.X.XX-win32.msi).
    • Choose Custom Installation to select installation directory.
    • Choose Include bin directory in Windows PATH (instead Install As Windows Service)
    • Finish install.
  3. Open my.ini (/path/to/MySQL/MySQL Server 5.1/my.ini) and search for rows
    # To run run the server from the command line, execute this in a 
    # command line shell, e.g.
    # mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    
  4. Copy and save the row
    mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    

    in a batch file start-mysql.bat, where the path defaults-file depends on the installation directory.

  5. Start mysql
    start-mysql.bat
    

    To stop the MySQLserver press Crtl-C in the Command tool window.

  6. Connect to database.

    Open a (further) Command-Tool, start the MySQL shell, and create database bookcase as described in section MySQL Server.

Author: Rainer Schuler

Date: 2011-02-11 Fr

HTML generated by org-mode 7.4 in emacs 22