ThyElite Forums  
Go Back   ThyElite Forums > General > General Talk
Reload this Page Need a genius.
Reply
 
Thread Tools Display Modes
(#1)
Old
MYMOMMAGOTBEEF is Offline
Lots o' Posts
MYMOMMAGOTBEEF is on a distinguished road
 
Posts: 471
Join Date: Jul 2006
Location: MN
Send a message via AIM to MYMOMMAGOTBEEF
Default Need a genius. - 08-08-2006, 09:58 PM

Ok my problem is that I have problems connection to my mysql database. :violent1: :violent1: I need some who knows some php coding and some about mysql databases. Everytime I visit my site http://halokings.info I get this error
PHP Code:
Warningmysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/halokings.info/config.php on line 3

Warning: mysql_select_db(): Can'
t connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2in /home/www/halokings.info/config.php on line 4

Warning
mysql_select_db(): A link to the server could not be established in /home/www/halokings.info/config.php on line 4
Can
't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 
Can anybody help?



[Made By Xplogen, Thanks ]
Reply With Quote
(#2)
Old
AppleGeek is Offline
Member
AppleGeek is on a distinguished road
 
Posts: 28
Join Date: Jul 2006
Default 08-08-2006, 10:56 PM

Yeah, um that isn't going to help us fix your problem. It only tells us that the problem relates to your database connection info being incorrect.

I'll help but you have to contact me on MSN or AIM, 'cuz I'm not getting up to do anything.


Quote:
Originally Posted by Hail
Apple systems are sexy as fuck.
Reply With Quote
(#3)
Old
LittleDevil2128 is Offline
Member
LittleDevil2128 is on a distinguished road
 
Posts: 16
Join Date: Jun 2006
Default 08-08-2006, 11:05 PM

As Apple said, there is nothing we can do without the PHP source.
Reply With Quote
(#4)
Old
MYMOMMAGOTBEEF is Offline
Lots o' Posts
MYMOMMAGOTBEEF is on a distinguished road
 
Posts: 471
Join Date: Jul 2006
Location: MN
Send a message via AIM to MYMOMMAGOTBEEF
Default 08-09-2006, 01:05 AM

Here's the code that im supposed to use
PHP Code:
<?
   ob_start
(); // allows you to use cookies
   
$conn mysql_connect("localhost","DATABASE USERNAME","DATABASE PASSWORD");
   
mysql_select_db(DATABASE NAME) or die(mysql_error());
   
//fill in the above lines where there are capital letters.
   
$logged MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");
   
$logged mysql_fetch_array($logged);
   
//the above lines get the user's information from the database.
?>
And then I edited it to
PHP Code:
<?
   ob_start
(); // allows you to use cookies
   
$conn mysql_connect("localhost","davsou10_db","MyPASS");
   
mysql_select_db(davsou10_db) or die(mysql_error());
   
//fill in the above lines where there are capital letters.
   
$logged MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");
   
$logged mysql_fetch_array($logged);
   
//the above lines get the user's information from the database.
?>
and I saved it as config.php as the tutorial told me.



[Made By Xplogen, Thanks ]
Reply With Quote
(#5)
Old
PyR0 is Offline
Super Moderator
PyR0 is on a distinguished road
 
Posts: 538
Join Date: Jun 2006
Send a message via ICQ to PyR0 Send a message via AIM to PyR0 Send a message via MSN to PyR0 Send a message via Yahoo to PyR0
Default 08-09-2006, 01:44 AM

Have you actually created the Database in your ACP yet?




..:Newest:..


..:Current:..


Reply With Quote
(#6)
Old
MYMOMMAGOTBEEF is Offline
Lots o' Posts
MYMOMMAGOTBEEF is on a distinguished road
 
Posts: 471
Join Date: Jul 2006
Location: MN
Send a message via AIM to MYMOMMAGOTBEEF
Default 08-09-2006, 01:38 PM

yea i named it db but when i log in to phpmyadmin it says my db username is davsou10_db



[Made By Xplogen, Thanks ]
Reply With Quote
(#7)
Old
THUNDER_06 is Offline
Master of the Post
THUNDER_06 is on a distinguished road
 
Posts: 358
Join Date: Aug 2006
Location: Ireland
Default 08-11-2006, 04:42 AM

go to instatantsig.com i know its not much your sig will look crap (like mine) and i dont have a clue how to use photobucket and photo shop lol


Reply With Quote
Reply



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
Forum Jump



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.