Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php not connecting to mysql

Status
Not open for further replies.

DarkFear

Technical User
Sep 18, 2001
10
CA
heres my page darkrelm.dhs.org im having problems with a friends php forum ..it wont connect ..thought it connected b4 but it wouldnt post do i need to edit somfing in mysql or do anything ?btw heres what the forum should work like Im running php 1.06 ,mysql version 3.23.38 and xitami version 2.4d6 please help me
 
Looks like you don't even have mySQL running. Make sure the script is connecting to the correct port and make sure you have a MySQL account for the script. devnull22

--
Apparently if you play the Windows NT CD backwards you hear satanic messages. If you think that's bad, play it forwards and it installs Windows NT !
 
How do i make a account for it ? mysql admin ..i never thought to use it causwe the guy that made the cool script never had to do that ..but hes on xp though too
 
heres the db that makes the connection
<?php
$PHP_SELF;
// ... Open database connection
$db = mysql_connect(&quot;localhost&quot;,&quot;root&quot;) or die(&quot;<p>Cannot access the database, please contact the system administrator.</p>&quot;);
mysql_select_db(&quot;bionicbulletin&quot;,$db);
$database = &quot;bionicbulletin&quot;;
?>
i dont really know much about mysql to get it up as the creator of the script never had to touch it.
 
that script assumes you've not change the root password for MySQL server. After installing MySQL, but default the root password is blank. IT'S NOT A GOOD IDEA to leave it blank.
check the docs on how to create accounts for MySQL at and how to change password for root.

cheers devnull22

--
Apparently if you play the Windows NT CD backwards you hear satanic messages. If you think that's bad, play it forwards and it installs Windows NT !
 
so u have to make the account in a prompt ?..i cant set a new pw for some lame reason must have to do that in a prompt too ..i dont really know could you help me please
 
heres my error
Warning: Can't connect to MySQL server on 'localhost' (10061) in C:\Xitami\webpages\darkrelm\bionicbulletin\database.php on line 3


how do i spesify a port for php to connect to ?..i know i sound really lame but u guys seem to very helpful..thank you for your pacients... im sorry i cant release the script but itz my friends and id have to get his permission..his works and mine dont :*(
hes tried but we are both outtah ideas
 
Make sure that you told PHP that you are running MYSQL. Or is that the other way around? I'm sorry I'm not a server person but I do know that has to be done for it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top