Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2004, 12:49 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error troubleshooting - createmovie.php

I'm not sure if this is a MySQL, PHP or Apache problem and I need some help. I'm running all of the following on my local machine.

I've typed the code and also downloaded the code from http://web.wrox.com/0764557440/bpamweb.zip but keep getting the following error:

Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Apache Group\Apache2\test\createmovie.php on line 4

Line 4 is:
$connect = mysql_connect("localhost", "root", "*******") or
     die ("Hey loser, check your server connection.");

I'm able to login into the MySQL console as root with this password. The only module I could not add to Apache was "mod_php4.c" -- the service would not start.

I've spent most of my time on MySQL, but not sure if this is it. I've re-installed MySQL a few times to see if this would correct it.

Any suggestions?
 
Old May 13th, 2004, 01:24 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got it to work! It must have been the win.ini file.

After restalling MySQL, starting winmysqladmin.exe asks for a username and password. This time I used the root id and password and it worked.

I haven't seen any documentation that states you need to use root with winmysqladmin.

Ah, that was a day well spent.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership Troubleshooting Laenas1979 ASP.NET 2.0 Professional 0 July 3rd, 2007 01:29 PM
potential createmovie.php error ElizabethN BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 8 August 25th, 2004 09:46 AM
createmovie.php logon trouble JohnAlden BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 May 25th, 2004 01:11 PM
Replication Troubleshooting barjah SQL Server 2000 2 May 24th, 2004 08:06 AM
createmovie.php joebloggs BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 11 April 26th, 2004 06:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.