hey guys... I tried to upload gaming content to my host via windows from my desktop. My host tells me that I need to change to a linux platform, so I asked them to make the change as suggested.......and when I try to access the "finished site" I see this displayed; Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/d/a/n/dannyboy1/html/config.php on line 9 Could not connect: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) I may be wayyyy off base, but in an effort to try to understand or resolve the issue, I went to the config php file on my desktop that I had uploaded to the host and copied this; <?php // mySQL information $server = 'localhost'; // MySql server $username = 'amfsound'; // MySql Username $password = 'amfsound69' ; // MySql Password $database = 'amfsound'; // MySql Database // The following should not be edited $con = mysql_connect("$server","$username","$password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$database", $con); the transaction is still "processing, but is there anything there that I can amend to resolve the issue? any thoughts? maybe I should take prozac? or cyanide caps? any help would be appreciated... I really need to get the site running.....it's been a pain in the A__..!
$username = 'amfsound'; // MySql Username $password = 'amfsound69' ; // MySql Password $database = 'amfsound'; // MySql Database is this your data? if it is, you miiiight want to edit that out of your post, otherwise change it to be your data (that password sucks either way, though)
thanks kyosys, I bought the content from someone here on DP..... he simply used my "amfsound" username on this forum as my username to access the content. The password "amfsound69" (no biggie we're all adults) I mean no big deal, my concern is getting things to display asap......innuendo is of no consequence to me. The seller created the password....to contact him and spend all that time to alter things to be of a pedestrian nature of acceptance to all for the sake of vanity would take additional time of messages to and fro, of which is unnecessary time that I don't have... unless the display of such a password is offensive to you or anyone else on the forum, if so please accept my apologies, .....my intent is to offend no one. If that is not the case, I could care less about such reference..with all due respect...I'm far too old to worry about such trivialities, I just need to get things rolling..... thanks kyosys
Uh, that's not what I meant. I was asking if that is the correct data, and I was telling you that it's a bad password not because it offends me, but because it's not secure.
On a shared linux server the database and usernames are usually preceeded by your account username try something like $server = 'localhost'; // MySql server $username = 'USERNAME_amfsound'; // MySql Username $password = 'amfsound69' ; // MySql Password (I'D DEFNINITELY CHANGE THAT PASSWORD) $database = 'USERNAME_amfsound'; // MySql Database
gottcha Kyosys, thought you were baggin on me, my bad, sorry about that... see what two beers does to a guy, imagine if I drank a third one? ... I'd probably go on a thirteen state "murder spree" (ha!) He just gave me temp access to his site to download content. I imagine he'll change it to back to whatever he had it before.. thanks Kain, I'll give her a spin and see if that helps.....