Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 March 29th, 2004, 10:28 AM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Do I Restart MySQL After Logoff/Logon

Following the instructions in Beginning PHP for installing the AMP trio, I managed to get everything installed with a minimum of hairpulling (Abriasoft AMP was previously loaded on this machine, and it leaves php.ini and my.cnf behind when uninstalled; that caused a few initial errors). However, when I logoff and log back on, I can't connect to MySQL.

If I try the "mysql\bin\mysql test" command from page 22 I get the error message:

   ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

The command "NET START MySQL" gives the error:

   System error 2 has occurred.
   The system cannot find the file specified.

I get the same error message if I try to start the MySQL service via the Administrative Tools|Component Services window in the Control Panel.

The install command "mysql\bin\mysqld -install" says the service is already installed.

What do I have to do to get the service restarted?


 
Old March 29th, 2004, 01:39 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

This forum is for PHP in general, not Beginning PHP the book.

If you would like help, please provide the neccessary code from the book you are working from, as many of us do not own it.

Thank you.

----------
---Snib---
----------

<><
 
Old March 29th, 2004, 02:45 PM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no code associated with this problem. The references to the book are merely the context in which I encountered the problem; the problem itself exists outside of that context. That problem is:

I can't restart MySQL after a logoff/logon cycle. How do I restart the MySQL service on Windows 2000?

Note: this question has been posted in the beginning PHP forum because having MySQL up and running is a common prerequisite for PHP books and tutorials; therefore, I assume others have encountered the problem.



 
Old March 29th, 2004, 02:48 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sorry, I misunderstood your problem.

----------
---Snib---
----------

<><
 
Old March 29th, 2004, 04:01 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Hi, I did a google search on the error code you provided, perhaps this can be of help:
http://www.faqts.com/knowledge_base/...html/aid/20068

If not can you give us a detailed explaination of each step you followed to install everything? What OS? Which PHP? Which Apache? Which MySQL? Then step-by-step.

Quote:
quote:Originally posted by Snib

This forum is for PHP in general, not Beginning PHP the book.

If you would like help, please provide the neccessary code from the book you are working from, as many of us do not own it.

Thank you.
It doesn't matter if Beginning PHP 4 book questions are in the Beginning PHP forum, after all, this is a publisher's website.

: )
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old March 29th, 2004, 04:20 PM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I looked at the approaches on the www.faqts.com link and did some fiddling around, but in the end I uninstalled MySQL (including some manual cleanup not covered by the uninstall process), rebooted the machine, and reinstalled. I made a few updates to the my.cnf file (which I also had made for the previous install), and everything is working now. MySQL starts automatically without errors. Go figure.

Thanks for all the help.

P.S. Is there a way to mark a topic closed out?


 
Old March 29th, 2004, 04:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just stop posting to it. It won't appear on most people's "Active Topics" list, but won't be deleted from the forums because your answer might be useful to someone searching for MySQL connectivity problems.


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trace logoff error l.wolf Oracle 0 June 7th, 2007 05:10 AM
LogOff problem in Page aliirfan84 ASP.NET 2.0 Professional 2 May 6th, 2007 04:56 PM
restart mysql crmpicco MySQL 1 September 13th, 2005 04:34 AM
Logoff User Help ali786 Classic ASP Databases 1 March 31st, 2005 01:27 PM
Logoff user using ASP: ali786 Classic ASP Databases 5 March 21st, 2005 12:34 PM





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