MySQL Database
Table of Contents
1 Download and start MySQL
- Download MySQL for Windows from mysql-essential.
-
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.
-
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"
-
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.
-
Start mysql
start-mysql.bat
To stop the MySQLserver press Crtl-C in the Command tool window.
-
Connect to database.
Open a (further) Command-Tool, start the MySQL shell, and create database bookcase as described in section MySQL Server.
Date: 2011-02-11 Fr
HTML generated by org-mode 7.4 in emacs 22