MySQL Setup Tutorial
Installation
- Download MySQL Community Server at http://dev.mysql.com/downloads/mysql/, Windows ZIP Archive
- Extract the ZIP Archive to a path, e.g.
C:\Program Files\MySQL(aliased~) - Open
my-default.iniin the MySQL directory and edit it: remove#beforebasedir,datadir,port:
basedir = ~
datadir = ~\data
port = 8888
- Open command line at
~\binand runmysqld --console - Open a new command line at
~\binand runmysql -u root -pto login as root user (no password initially) mysql> statusto see the current connection statusCtrl + Cto shut down the server
MySQL Workbench
Download MySQL Workbench at http://dev.mysql.com/downloads/workbench/, Windows ZIP Archive.
Troubleshooting
Problem: When Ctrl + C shuts down the server, connections can still be established.
Resolution: Run mysqladmin -u root shutdown from ~\bin
Reference: http://dev.mysql.com/doc/refman/5.1/en/windows-start-service.html
Problem: After changing my-default.ini to set the server port to 8888 from 3306, the server restarted with port unchanged.
Resolution: Rename my-default.ini to my.ini.