GetDotted Domains

Viewing Thread:
"Help with connecting to Freeola mySQL database"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 04/08/06 at 20:11
Regular
Posts: 46
Hi,

I have created a mySQL database today, for my company, and want to link to it using php. However I have fallen at the first hurdle - I can't get it to connect.

I have done this:

$link = mysql_connect('mysql.freeola.net/', 'sr-----', 'password') or die('Could not connect: ' . mysql_error());


But instead of a connection I get this:
Warning: mysql_connect(): Unknown MySQL server host 'mysql.freeola.net/' (1)

I have tried prefixing the hostname string with "http://" to no avail.

Can anyone help? Please???

Jo
xx
Fri 04/08/06 at 20:11
Regular
Posts: 46
Hi,

I have created a mySQL database today, for my company, and want to link to it using php. However I have fallen at the first hurdle - I can't get it to connect.

I have done this:

$link = mysql_connect('mysql.freeola.net/', 'sr-----', 'password') or die('Could not connect: ' . mysql_error());


But instead of a connection I get this:
Warning: mysql_connect(): Unknown MySQL server host 'mysql.freeola.net/' (1)

I have tried prefixing the hostname string with "http://" to no avail.

Can anyone help? Please???

Jo
xx
Fri 04/08/06 at 21:11
Regular
Posts: 46
Hello,
still stuck. I haven't changed anything, but now the error message is:
Could not connect: Lost connection to MySQL server during query

Argghh. I'm on a tight deadline with this, so any help will be really really really appreciated.

Jo
xx
Fri 04/08/06 at 21:44
Regular
Posts: 46
Ahhh, panic over (not that anyone but me was panicking), hubby fixed it. I was trying to run my php from my machine here (being a Mac it has an Apache server), once I uploaded the code to Freeola it works like a dream.

Jo
xx

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Excellent
Excellent communication, polite and courteous staff - I was dealt with professionally. 10/10
LOVE it....
You have made it so easy to build & host a website!!!
Gemma

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.