close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Uploaading to live server

Thread began 8/04/2009 12:32 am by bernardkane381926 | Last modified 8/04/2009 2:26 pm by Eric Mittman | 1453 views | 1 replies |


Uploaading to live server


I am using the User registration Pack in a site I have been developing. To test the functionality I have used Wampserver 2 as the local host on my own machine. I am now nearly ready to upload the site to my web hosting company. My question (and I appreciate it is really basic by I am a beginner) is this:

When I ftp the site files to my web hosting server what do I need to change in the connections,MySQL stakes to make it all work? Currently my connection.php file is:

# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "admin_bks";
$username_localhost = "deleted for security";
$password_localhost = "deleted for security";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);

Any help or a pointer to help would appreciated.

Bernard Kane

Sign in to reply to this post

Eric Mittman

To get the database transfered to your live server you will want to export it from your localhost, then import it into the live server. Your host will likely have a gui tool for you to do this like phpMyAdmin or something similar.

Once the db is transfered you will need to update the connection file on the live server. You will need to use the same credentials that you connect to the live database with. If the database is on the same server as the domain then localhost should work, otherwise you will need to use the domain or IP for your database. If this is needed the details should be available from your host.

Once you update the connection with this you will also need to ensure you have the correct username, password and database name referenced. You then just upload this file like any other page in your site, if it has the correct values in it for your live db and you have imported the db on the live server successfully it will work for you.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...