One question:
$hostname = "YOUR_HOSTNAME";Is hostname the URL of my site, the URL of my hosting provider, or something else?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 14, 2011 3:24am
Subscribe [7]#16 / Sep 03, 2011 5:16am
One question:
$hostname = "YOUR_HOSTNAME";Is hostname the URL of my site, the URL of my hosting provider, or something else?
#17 / Sep 03, 2011 7:54am
Hi mwdesign,
Hostname can be something like localhost, an IP address or sometimes the a name or other such way of identifying it. It’s different on different hosts so you would need to contact your host to find out the exact information.
If you contact them and tell them the information you need (hostname, database name, username & password) then they should be able to get that to you.
Once you have that then if you feed that information into the relevant slots in that file and run the file again to see if you get a connection made please.
Thanks.
Mark
#18 / Sep 03, 2011 8:01am
LIke Tony earlier in this thread I’ve seen instances on certain Linux control panel software where
$hostname = "localhost";$hostname = "127.0.0.1";#19 / Sep 03, 2011 4:14pm
Okay, I tried 127.0.0.1 and I got this error message:
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/wizard.php
Line Number: 1512
« BackPlease note the line number is now 1512 instead of 1513. I don’t whether that’s relevant, though.
#20 / Sep 03, 2011 4:30pm
I’ve just been Googling this issue for you and see that GoDaddy require quite an odd hostname string. (I don’t host with godaddy)
The last post on this page should help.
This GoDaddy help doc should also be useful.
(Pretty sure this is not an ExpressionEngine issue)
Hope this helps
jfp
#21 / Sep 03, 2011 4:43pm
I’m not on GoDaddy, but I’ll give this a try.
#22 / Sep 03, 2011 5:21pm
Sorry mwd, got you mixed up with Carl Davaz. (the original author of the thread)
#23 / Sep 03, 2011 8:40pm
Okay, I installed EE2, but to do so, I had to create a new database with a new username. Here’s what happened:
When I first tried installing ExpressionEngine, I created a new database, but I used my existing username—like this:
Existing username: existingusername
New database: newdatabase1I then added the existing username to the new database. EE would not install with this combination.
So I created another new database, and a new username:
New username: newusername
New database: newdatabase2I used “localhost”. With this combination, EE installed without any problems.
Any ideas why this might happen?
#24 / Sep 04, 2011 5:33am
It sounds like the original user never had the correct permissions for database 1. Glad it’s all working.
Jfp
#25 / Sep 06, 2011 1:54pm
Hi mwdesign,
Glad to see that you have it working now. As Johnnie mentions above it may well be that the user didn’t have the correct permissions. Thanks for that Johnnie.
As this thread is getting quite long and confusing with all the different users in here I just want to see if anyone is still having any issues with anything?
Thanks.
Mark
#26 / Sep 14, 2011 1:51pm
Closing thread due to lack of feedback.
If anyone has any more problems then please don’t hesitate to post again as needed.
Cheers,
Mark