MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 23rd, 2006, 03:10 PM
starmanmike starmanmike is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 2 starmanmike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 36 sec
Reputation Power: 0
Absolute beginner problems

Oooh! Lots of problems!
First off, I know nothing about MySQL, PHP, servers (yet...) so please forgive my ignorance.
I dowloaded and installed Apache / PHP / MySQL. Apache works, no problems there. I have a beginners book ("How to do everything with PHP and mysql") and have encountered the following problems:

1)MySQL:
In the book is a screenshot "Editing MySQL configuration on Windows via WinMySQLadmin". No such file exists, neither does the screen I am supposed to get (It's on p.41 of the book). Clicking on the most similar file, "mysqladmin" produces a rapidly-scrolling DOS screen which then disppears. Typing
mysql -u root
at the command prompt to test the server as the author recommends produces a message saying there is a syntax error, and typing
show databases;
does likewise (incidentally, why the command prompt at all? Surely if an app is for Windows it should run under windows!)

2) PHP:
Testing it with the simple suggested script, saved as recommended in the appropriate folder
<?php
phpinfo()
?>
shows the entire source code (HTML and all) when the browser opens it.

Help!

Reply With Quote
  #2  
Old January 3rd, 2007, 12:15 PM
mecanicu mecanicu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 112 mecanicu User rank is Private First Class (20 - 50 Reputation Level)mecanicu User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 23 m 6 sec
Reputation Power: 3
1) You supposed to have in your Start\Programs\MySQL\MySQL Server\
one item: "MySQL Command line client"
When you run this program you can see something similar with a command prompt and there is where you can type the commands for MySQL (do not forget, this application is Unix originated so we must obey their rules , more or less )

2) Have you tried to type on the address bar of the internet browser:
http://localhost/ +appropiate folder name?
Must work if the file name is index.php. Otherwise you can continue typing with the file name and extension

Reply With Quote
  #3  
Old January 4th, 2007, 09:05 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 996 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2Folding Points: 883404 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 11 m 36 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
PHP:
Make sure Apache is configured to run PHP files through the PHP parser before sending it to the browser. This is done by activating the Apache module.

Much info on running Apache, PHP and MySQL on Windows can be found here.

As for MySQL, check if the mysql-service is active, by looking in de taskmanager for mysqld-nt.exe
If it is running, go to the \bin directory in your mysql directory, and type the mysql -u root command there.
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 278

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Absolute beginner problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT