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:
Virtual Tradeshows by Ziff Davis Enterprise – A Unique Opportunity to Interact with IT Experts, Access Information, and Gain Insight on Today’s Trends in Technology Learn more
  #1  
Old July 19th, 2002, 08:18 AM
rathaur rathaur is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Malaysia
Posts: 81 rathaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 7
mysql installation

Hi

Problem in mysql installation for windows 2000 prof. The apache and php is up, but running the mysql , it says ERROR 2003 , cant connect to localhost ....


appreciate you guys kind suggestion

Rathaur
__________________
Rathaur
======================
Knowledge is Power

Reply With Quote
  #2  
Old July 19th, 2002, 04:24 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Rathaur,

Did a search on the mysql.com site, and came up with this:

Quote:
HOW I FIXED THE 10061 error on XP: the easy way. I installed mysql on my new win XP laptop, and then went to the command line and tried to run it and got ERROR 2003: can't connect to MySQL server on 'localhost' How I fixed it: I ran winmysqladmin.exe to see if it would work, and it asked me to choose a username and password to create my.ini. Interestingly, before this, I had searched for my.ini and couldn't find it). So I entered a username and password (made them up), and hit OK, and it closed. Then I ran winmysqladmin again, and it worked. Then I ran mysql from the command line and it worked.


Although it was a problem with Windows XP, it could be the same solution for you!

Have you configured your my.ini/my.cnf file as well?

Let me know if this works out for you.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Last edited by FrankieShakes : July 19th, 2002 at 05:24 PM.

Reply With Quote
  #3  
Old July 20th, 2002, 12:24 AM
rathaur rathaur is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Malaysia
Posts: 81 rathaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 7
New Problem

Thanks man ! but I never tried it. Initially I did configure the my.ini and it doesnt worked either.
Later I remove all the mysql installation and started a fresh one. What I did was unzip the mysqlwin and run the setup again. By magic it worked !!

Now I have a new problem ... I have a system which is running on my PC ( the installation in my notebook ) and it works fine. But running the same system in notebook I got this error messages. Seems like I have to declare or initialize variables before using them.

Warning: Use of undefined constant login - assumed 'login' in c:\www\discipline\index.php on line 9

and its bunch of them. I guess I have to set somewhere all those things , so it wont happen. Please advise ....

I am using: Mysql 3.23.22-beta, PHP 4.0 , Windows NT 5.0 build 2195 and apache ...

thanks and appreciate ur help

rathaur

Reply With Quote
  #4  
Old July 20th, 2002, 08:28 AM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Can you post your index.php page. I have a feeling it has to do more with the code than with the mySQL installation.

Just to see if your server is running, create a script and put this code inside:

<?php

phpinfo();

?>

Save it as whatever you like, and run the file. If all is working, a screen should pop up with all your PHP config details.

Try it out.

Reply With Quote
  #5  
Old July 20th, 2002, 09:18 AM
rathaur rathaur is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Malaysia
Posts: 81 rathaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 7
thats the first thing i did after installing apache and php. (before installing mysql) and its perfectly fine.

i can post the index.php. even a form in the index.php is fine , except for the variable part. its keep on saying the error is varible is not initiliazed. but once the variable is initialized i.e. to 0 or "" then it ok ...

is there anything to do in php.ini ?

Reply With Quote
  #6  
Old July 20th, 2002, 09:33 AM
rathaur rathaur is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Malaysia
Posts: 81 rathaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 7
hi

Finally i solved the problem.

In php.ini set the error_reporting =0 or any other value which doesnot include E_WARNING. any how , thanks for kind suggestion , you guys are great and helpful ...


Rathaur

ps. you guys should be nominated for next President

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > mysql installation


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway