Page 1 of 1

[Solved] Trouble with starting MySQL.

Posted: Wed Feb 22, 2006 4:09 pm
by sjeika
First of, hello! n_n

Anyway, my book says to start MySQL, navigate to C:\Program Files\MySQL\bin\winmysqladmin.exe and double click to start and go from there. But I don't seem to have that... All I have is mysqladmin.exe but that just brings up the command prompt for a few seconds and then disappears. Does anyone know how I can fix this? Thanks for your help.

Posted: Wed Feb 22, 2006 4:15 pm
by feyd
What version of MySQL was your book written against/for? What version of MySQL did you install?

Posted: Wed Feb 22, 2006 4:22 pm
by sjeika
All it says is "install the latest version". :\ I installed MySQL 5. The book is "PHP & MySQL for Dummies 2nd Edition" if that helps. (How embarrasing.)

Posted: Wed Feb 22, 2006 4:38 pm
by feyd
I'm guessing you've read through Appendix A (Installing MySQL) ?

Posted: Wed Feb 22, 2006 5:55 pm
by sjeika
Ha, thanks for your help. I went through installing/configuring MySQL, PHP, and Apache. I'm at the part where it tells me to edit the httpd.conf file to make Apache load the PHP module. I have added the lines "LoadModule php5_module libexec/libphp5.so" and "AddType application/x-httpd-php .php" in (hopefully) the correct sections. But whenever I go to localhost/test.php, it just displays the page as if I'm viewing a .txt file in my browser. What is wrong?

Posted: Wed Feb 22, 2006 6:04 pm
by Benjamin
After you edited the config file did you restart apache?

Posted: Wed Feb 22, 2006 9:52 pm
by khaki_monster
hi!

i've installed PHP, MySQL and Apache many times but sometimes forgot some configuration.
so i run over to google for a help.

this link http://www.php-mysql-tutorial.com/insta ... .php#mysql is one of the nicest
easy to follow instruction.

hope this may help...

cheerz!

Posted: Wed Feb 22, 2006 10:36 pm
by sjeika
Thanks for your help! Worked out great. :D