Before You Begin

Most people should install using the Installer. These instructions have not been updated recently, but can serve as a guide to someone who knows what he is doing. Unless you have a special reason for installing manually, you really should be using the installer.

Vista Users

The installer does not install mysql properly on Microsoft Vista installations, due to the UAC. You should first install mysql using this how to (pdf). Then run the installer. The installer will detect the mysql installation and not reintstall.

Installing in Windows

These instructions were made with Windows XP. They should also work with Windows NT / 2000 / 2003 and 2008. Please report any differences to gmic at users.sourceforge.net.

If you're still using Win3/95/98/ME then you should switch to GNU/Linux, *BSD or WinXP.

windows install guide screenshot

1. Click here to open the MySQL Download Page. Click on the "No, thanks..." link to see the download links for the MySQL installer.

windows install guide screenshot

2. Click on one of the HTTP or FTP download links to download the zip file (mysql-5.0.67-win32.zip).

windows install guide screenshot

3. Unzip the setup file to a folder of your choice and double-click on it. On the welcome screen click "Next".

windows install guide screenshot

4. As the setup type "Typical" should be selected. Then click "Next". On the following screen click "Install" and installation will begin.

windows install guide screenshot

5. Before the installation ends an ad for MySQL Enterprise edition will appear. Just click "Next" two times.

windows install guide screenshot

6. Now make sure that "Configure the MySQL Server now" is checked and click "Finish".

windows install guide screenshot

7. You are now looking at the MySQL Configuration Wizard. Click "Next".

windows install guide screenshot

8. Make sure "Detailed Configuration" is selected. Then click "Next. Now "Developer machine" should be selected. Click "Next".

windows install guide screenshot

9. On this screen "Multifunctional Database should be selected. Click "Next". On the next screen (InnoDB Tablespace) just click "Next".

windows install guide screenshot

10. Now "Decision Support" should be selected. Click "Next". Now make sure "Enable TCP/IP Networking" IS selected. Then click "Next".

windows install guide screenshot

11. Here "Standard Character Set" should be selected. Click "Next". Now make sure "Install As Windows Service" is selected.

windows install guide screenshot

12. Now choose a root password. This will NOT be the password for your poker database. Click "Next".

windows install guide screenshot

13. On this last screen of the Configuration Wizard just click "Execute." A few success messages will appear. Click "Finish".

windows install guide screenshot

14. Now click the Windows Start Button and then click "Run". Click into the white space of the new window, type cmd and hit ENTER.

windows install guide screenshot

15. In the newly appeared console window type cd "%PROGRAMFILES%\MySQL\MySQL Server 5.0\bin" and hit ENTER.

windows install guide screenshot

16. Type mysql --user=root --password=yourPassword and hit ENTER (replace yourPassword with your chosen root password).

windows install guide screenshot

17. A few lines followed by mysql> will appear. This is the MySQL command prompt.

windows install guide screenshot

18. We will now create your poker database. Type CREATE DATABASE fpdb; and hit ENTER. "Query OK" says we were successful.

windows install guide screenshot

19. Type the following, replace newPassword with a password of your choice and hit ENTER:

GRANT ALL PRIVILEGES ON fpdb.* TO 'fpdb'@'localhost' IDENTIFIED BY 'newPassword' WITH GRANT OPTION;

windows install guide screenshot

20. Again it says "Query OK". Type exit and hit ENTER to exit the MySQL prompt. Leave this window open. We will need it later.

windows install guide screenshot

21. Click here, save the file python-2.5.2.msi where you want and double-click on it. In case of a warning window click "Execute".

windows install guide screenshot

22.Click "Next" three times. Python will install. Then click finish.

windows install guide screenshot

23. Click here, save MySQL-python-1.2.2.win32-py2.5.exe to a folder of your choice and double click it. In case of a warning window click "Execute". Click "Next" three times. The Python API for MySQL will install. Click "Finish".

windows install guide screenshot

24. In the console window (which we left open) now type: mkdir c:\gtk and hit ENTER. Leave the window open again, we'll need it.

Now click here and save the gtk zip file gtk+-bundle-2.12.11.zip to a folder of your choice. Unzip its contents to C:\gtk

windows install guide screenshot

25. Now right-click "My Computer" (on your Desktop) and click on "Properties". Now click on the tab "Advanced".

windows install guide screenshot

26. Click the button "Environ Variables". In the lower list of the new window click on "Path" (possibly you need to scroll).

windows install guide screenshot

27.Now click on the"Edit" button and a new window will pop up. To the value of the variable append ;C:\gtk\bin Click Ok three times.

windows install guide screenshot

28. Click here, save the file pycairo-1.4.12-1.win32-py2.5.exe to a folder of your choice and double click on it. In case of a warning window click "Execute". Now click "Next" three times. The pycairo graphics library API for Python will install. Click "Finish".

windows install guide screenshot

29. Click here, save the file pygobject-2.14.1-1.win32-py2.5.exe to a folder of your choice and double click on it. In case of a warning click "Execute". Now click "Next" three times. The Python Gobject API will install. Click "Finish".

windows install guide screenshot

30. Click here, save the file pygtk-2.12.1-2.win32-py2.5.exe to a folder of your choice and double click on it. In case of a warning click "Execute". Now click "Next" three times. The Python API for Gtk+ will install. Click "Finish".

windows install guide screenshot

31. In the console window now type: mkdir "%homepath%\Application Data\fpdb" and hit ENTER. Copy the file "default.conf" from the docs folder of your fpdb git to the directory C:\%homepath%\Application Data\fpdb\.

windows install guide screenshot

32. Now open the file "default.conf" in WordPad (Start > Programs > Accessoirs > WordPad) and replace the password in the dbpassword line with your chosen password for the fpdb user.

windows install guide screenshot

33. Now start FPDB by double-clicking on the file fpdb.py in the folder fpdb. A console window should open up and shortly thereafter the fpdb application window should be visible. Click on the menu "Database" and select "Create or Recreate Tables".

Congratulations! Your fpdb installation is complete! Now you can use the bulk importer to import your hands into fpdb.

A word on privelege separation: fpdb should not require root/Administrator rights to run. If it does it is a bug or serious misconfiguration, please let us know.

License

Trademarks of third parties have been used under Fair Use or similar laws.

Copyright 2008 Steffen Jobbagy-Felso

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 as published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license can be found in fdl-1.2.txt. The program itself is licensed under AGPLv3, see agpl-3.0.txt