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:
The Web Buyer's Guide is your best source for white papers on a wide range of IT products and services. This Week's Featured White Papers: Help Simplify Virtualization by IBM
  #1  
Old November 3rd, 2002, 08:54 AM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Cannot connect to mysql db...

I have recently intalled apache, php and sql to a WinMe box. Everything seems to be installed OK until I start the mysqladmin.exe

After this, the PC gradually slows until a near seizure, and my php test page is unable to connect to the database. Script as follows...



<?php

$result = mysql_create_db ("test_database");
if ($result == false)
echo mysql_errno() . ": " . mysql_error() . "<BR>";

?>

I have followed Bens article on setting up WinMe in this fashion. Do not know where it may have gone wrong.
Have previously tried to install PWS (unsuccessful) and Sambar Server (successful).

Thank you for any help in advance.
Attached Files
File Type: txt httpd_conf.txt (36.3 KB, 313 views)

Reply With Quote
  #2  
Old November 3rd, 2002, 12:19 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
how much ram on your computer do you have and how much space do you have on your harddrive? it sounds like you have no space on your computer at all. also i looked at your conf file and i have to ask is this site you are using a registered site. like a site already with it's on host and what not?
__________________
Apache Expert

Reply With Quote
  #3  
Old November 3rd, 2002, 04:20 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Check out EasyPHP.net

I had trouble installing Apache and everything else so I went to EasyPHP.net and grabbed EasyPHP. The site is French but documentation is in English. Works great.

Ben's article was helpful but I could never get it to work and got tired to messing with it. I understand the conf. file better now.

EasyPHP loads Apache, php, mysql, and phpmyadmin all at once and .

Wow!! We just had a huge earth quake!!!! The whole house shook around, rolled through. Trees shook! What you get for livin' in Alaska!

Anyway, my computer didn't crash. : )

EasyPHP was the easiest and fastest way I know to get all you need up and running. It gives you the conf. file to modify and a one app. to run when you want Apache, and mysql to run, right from your desktop!

The only thing I worry about is when I need to update php, will it be as easy?
__________________
bow wow!

Reply With Quote
  #4  
Old November 3rd, 2002, 05:27 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
what kind of computer are you running it on littleblackdog?


also when you guys go to download apache what version are you using? the same question about php?

Reply With Quote
  #5  
Old November 3rd, 2002, 07:17 PM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm running:
Apache 1.3.27 and
PHP 4.2.3.

I have 128MB RAM and 24.1 GB free on a 40GB HD.

The site is not already registered with own host, but rather I am setting it up now locally and need to test the server side scripting and database connectivity (which was originally to be mainly asp but if I can get this server up and running may yet be php) before ftping to a clients webspace.

Reply With Quote
  #6  
Old November 3rd, 2002, 07:35 PM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Also,
I went to www.easyphp.net but I can only find there "newsys" application for download, not one called 'easyphp'. Am I looking for the wrong thing?

Reply With Quote
  #7  
Old November 3rd, 2002, 08:02 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
so do you have the apache web server and php 4.2.3 already working? also what is easyphp?

Reply With Quote
  #8  
Old November 3rd, 2002, 08:14 PM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Seem to be...

I can start Apache from the Start Menu.
A DOS-window launches with the opening line...

"Apache/1.3.27 (Win32) PHP/4.2.3 running..."

so it appears to be in order. I have connected to the a test page which displays the 'php_info()' script with the purple table showing my php properties and the server properties.

Reply With Quote
  #9  
Old November 4th, 2002, 12:51 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
you should have installed apache to where it would run as a service so you don't have to keep seeing that ms-dos screen all time. don't do that now since we have apache working fine and dandy. so have you tried re installing mysql?

Reply With Quote
  #10  
Old November 4th, 2002, 12:59 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Wrong site for Easyphp?

Try www.Easyphp.org

I'm running several machines. one is a mac with virtual PC and Easyphp loaded. Others are Win2000 and 98. It loads version... ( since I loaded, version 1.6 of Easyphp may be different )

Apache - 1.3.24
PHP- 4.2.0
MySQL- 3.23.49
phpMyAdmin - 2.2.6

Easyphp loaded everything for me.

http://www.easyphp.org

I took the easy way

I just don't know about updating to newer versions...

Reply With Quote
  #11  
Old November 5th, 2002, 07:40 AM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks ASP Man - LittleBlackDog.
Uninstalled everything and installed EasyPHP in about 5 mins.
Although....
When running the same test script I receive this error, and the page is not written. The test script is attached as txt.

-------------------------------------------------------------------------
Warning: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\program files\easyphp\www\testmysql2.php on line 4

Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\program files\easyphp\www\testmysql2.php on line 4
----------------------------------------------------------------------------

I then went into EasyPHP admin tool and gave 'anyuser' with 'anypassword' from 'anyhost' access to the database named "test" (which the script attached seemed to have created, but not shown.

Otherwise MySQL once again looks to be installed correctly (within the EasyPHP folder now) as do Apache and PHP. I say this as there is a second db available through the admin tool that is called mysql (with 6 entries) as well as the "test" db mentioned earlier.

I am also not getting the slowdown at all
Attached Files
File Type: txt testmysql2.txt (563 Bytes, 311 views)

Reply With Quote
  #12  
Old November 5th, 2002, 04:21 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Had similar errors

I am only running Easyphp on local machines, so localhost, root, "" no password. Plus the conf. ini file needs to point to your root folder.

Umm, the text thing... got that too. I was using wordpad and it was writing .txt at the end of all my .php.txt and it just didn't work

So I grabbed a free text editor, Crimson Editor, off web and it will save as .php.
Try that.

Reply With Quote
  #13  
Old November 5th, 2002, 05:49 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Before you get your self into a mess, you have missed soemthign something.

The code you have provided is trying to create a database, you dont show it trying to connect to it. lol

try adding the following line of code.

mysql_connect("localhost","root");

before you try to create the database,

Reply With Quote
  #14  
Old November 5th, 2002, 06:54 PM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeehah grandma!

Shout outs to Ben, ASP Man and LittleBlackDog for perserverance...

Ben, the line was in the script, I needed only add the user "root" and the NULL password and the script is writiing John Tester with each reload to the sql_connect line.

Prepare for many more newbie questions as I learn php...

Once again - thanks all.
Theres a slab of beer 'in the mail' for each of you!!


NB LittleBlackDog - I spun out when EasyPHP started spitting back mysqol errors (or php errors) in French but this was easily rectified through the EasyPHP "myadmin", setting default to English.
This is an excellent app for anyone setting up Apache with php/mysql on a WinMe machine.
Other than last nights post the entire install (less download of 10Mb over dial-up ) was complete in under 5 mins.

Reply With Quote
  #15  
Old November 5th, 2002, 09:30 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Good For You

I'm still in a huge learning curve with php and the rest. I lucked upon Easyphp after trying to load it all solo and not having luck. Sometimes things work themselves out.

I am trying to learn how to query my db. On the look out for easy, basic, and well written tutorials on mid. to advanced queries.

If you want to check out some more php/mysql freebies:

Claroline.org ( or .net ) - an online classroom module.
ExCalendar (forgot the name) @ http://realize.be/swentel - a great calendar.

I look for these free php/mysql programs. It's easy to study the code ; ).

Good luck.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Cannot connect to mysql db...


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 towar