how to create mysql for my site.

Tech questions of any kind can be asked here.
Forum rules
Forum Specific Rules
So you got questions about audio/video? Wanna know how to rip a digital stream? Make an X/S/VCD to play on your DVD player? Maybe rip a video from VHS or TV? Find the answers here.
User avatar
deadone
That Was Just Your Thousandth Post
Posts: 1740
Joined: Tue Jul 31, 2007 11:23 pm
Location: corby northamtonshire UK
Country: United Kingdom

how to create mysql for my site.

Post by deadone »

hello all,
seems my domain name has been transferred to my new host , im having an issue as to get my hobbysite part of my site to work.
i have a database up file for it but it dont seem to want to connect to my site. im totally lost as to how to set this up.

my site seems fine but when i try and access the MHS part i get this message

MySQL Server Connection Failed
Sorry, MyHobbySite was unable to connect to the database server at this time. The server may be busy. Please try again later.
Error: php_network_getaddresses: getaddrinfo failed: Name or service not known

does any1 no how to reolve this issue.

regards
Mick
User avatar
sjmike
Stone Cold Poster
Posts: 7950
Joined: Fri Jul 11, 2003 10:42 pm
Location: Sunny California
Country: United States

Re: how to create mysql for my site.

Post by sjmike »

you have to modify one of your php files to point to the new MySQL Server. Let me dig around and find out which one exactly.
Interested in trading Metallica videos, check out my site:
Image
User avatar
sjmike
Stone Cold Poster
Posts: 7950
Joined: Fri Jul 11, 2003 10:42 pm
Location: Sunny California
Country: United States

Re: how to create mysql for my site.

Post by sjmike »

Found it. You need to update the config.inc.php file in the /includes directory.
Interested in trading Metallica videos, check out my site:
Image
User avatar
deadone
That Was Just Your Thousandth Post
Posts: 1740
Joined: Tue Jul 31, 2007 11:23 pm
Location: corby northamtonshire UK
Country: United Kingdom

Re: how to create mysql for my site.

Post by deadone »

sorry about the late reply and the help is very much needed.
ok so i have found the file in mention, what do i need to edit and were is it.
this is driving me mad.
User avatar
sjmike
Stone Cold Poster
Posts: 7950
Joined: Fri Jul 11, 2003 10:42 pm
Location: Sunny California
Country: United States

Re: how to create mysql for my site.

Post by sjmike »

Probably need to modify your website path and your database hostname. Your hosting provider should be able to provide your the hostname in your MySQL control panel. Your website root path you can often find when you log into the FTP.
Interested in trading Metallica videos, check out my site:
Image
User avatar
deadone
That Was Just Your Thousandth Post
Posts: 1740
Joined: Tue Jul 31, 2007 11:23 pm
Location: corby northamtonshire UK
Country: United Kingdom

Re: how to create mysql for my site.

Post by deadone »

sjmike wrote: Probably need to modify your website path and your database hostname. Your hosting provider should be able to provide your the hostname in your MySQL control panel. Your website root path you can often find when you log into the FTP.
thanx mike, i have tried this but to no avail. i have the information needed.
i have sent you a pm so hope you dont mind me bothering you.
User avatar
deadone
That Was Just Your Thousandth Post
Posts: 1740
Joined: Tue Jul 31, 2007 11:23 pm
Location: corby northamtonshire UK
Country: United Kingdom

Re: how to create mysql for my site.

Post by deadone »

thought i should just say if i have not already done so.
big thanks to ya mike for helpomg me out, very much appreciated.
my site now runs alot faster on my new host and kudos for sorting my database issues out.