Use the appropriate installer to install MySQL on your computer. After MySQL is up and running, run the init_database.sql and populate_database.sql scripts located in the examples directory on the CD-ROM using the MySQL . command. For example, on a Windows operating system with the CD-ROM in the G: drive (your input is in bold):
C:mysql Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1 to server version: 3.23.45-nt Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> . G:examplesinit_database.sql . . . mysql> quit C:mysql -u demo -p stocktrack Password: <type "struts"> Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1 to server version: 3.23.45-nt Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> . G:examplespopulate_database.sql . . . mysql> quit