[Solved] Trouble with starting MySQL.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
sjeika
Forum Newbie
Posts: 7
Joined: Wed Feb 22, 2006 3:59 pm

[Solved] Trouble with starting MySQL.

Post 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.
Last edited by sjeika on Wed Feb 22, 2006 10:36 pm, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What version of MySQL was your book written against/for? What version of MySQL did you install?
User avatar
sjeika
Forum Newbie
Posts: 7
Joined: Wed Feb 22, 2006 3:59 pm

Post 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.)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm guessing you've read through Appendix A (Installing MySQL) ?
User avatar
sjeika
Forum Newbie
Posts: 7
Joined: Wed Feb 22, 2006 3:59 pm

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

After you edited the config file did you restart apache?
User avatar
khaki_monster
Forum Commoner
Posts: 73
Joined: Tue Oct 11, 2005 12:36 am
Location: Philippines
Contact:

Post 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!
User avatar
sjeika
Forum Newbie
Posts: 7
Joined: Wed Feb 22, 2006 3:59 pm

Post by sjeika »

Thanks for your help! Worked out great. :D
Post Reply