MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 1999, 05:06 PM
jo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi,

just installed apache and php on a win95 machine.
and now i'm trying to configure mysql but i'm
quit stuck in here.

i'm using
http://www.vtwebwizard.comtutorialsmysqlstart.html
as reference.

php3 script :
<html>
<head><title>test db</title>
</head>
<body>
<?php
require("util.php3");
$sql = new MySQL_class;
$sql->Create("php3test");

echo("Database connection successful.n");
?>
</body>
</html>

util.php3 would be to long to past but if nessecary
it's at this link :
http://www.vtwebwizard.com/tutorials/mysql/mysql_module.html
it used as user jo and as password joa.

apache and the mysqld deamon is running.

php3.ini has been adapted as following :

;Windows Extensions
extension=php3_mysql.dll
;extension=php3_nsmail.dll

[MySQL]
mysql.default_port = ;
mysql.default_host =127.0.0.1;
mysql.default_user =jo;
mysql.default_password =joa;

now running testdb.php3 keeps giving me
Error: Unable to connect to MySQL server: : '' :

Now,

mysql -u root
i've added a superuser like this:

do_command: query: INSERT INTO user VALUES ('%', 'jo',
password('joa'), 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y')
quit
mysqladmin reload -uroot

then : mysql -ujo -pjoa
ok logged in

and typed in the rest of the tutorial.

btw : logging in as root and doing
a query like select * from user outputs
what it should.

If anyone has any idea where my config problem should locate I would love to hear it.

Greetings Joachim

Reply With Quote
  #2  
Old August 11th, 1999, 01:41 PM
wesb
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I would try accessing the database like this:

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php
mysql_connect("127.0.0.1","user","pass") or die("Connection failed.");
echo "Connection successful.";
?>
[/quote]

If that works then it is probably a problem with the database class in util.php3.

------------------
URL
www.devshed.com

Reply With Quote
  #3  
Old August 12th, 1999, 02:04 PM
jo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
unfortunatly it doesn't work.
If anybody has any ideas left...

Greetings Joachim

Reply With Quote
  #4  
Old August 12th, 1999, 05:33 PM
wesb
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Does PHP return an error message when you try to connect to MySQL?

------------------
URL
www.devshed.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > cannot connect (did my best but without of luck)

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap