TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-12-2009, 05:44 PM   #1 (permalink)
The Wanderer
 
Join Date: Apr 2009
Posts: 19
Thanks: 9
shankar is on a distinguished road
Default How to depooly a php site with mysql using phpmyadmin?

Hi guys i use wamp server and use phpmyadmin for DB, i am done with my web application, how to deploy it in a server, how to export the db and where to import the same. Some help will be surely acknowledged.
__________________
--
Regards
Shankar
shankar is offline  
Reply With Quote
Old 04-12-2009, 05:56 PM   #2 (permalink)
The Acquainted
Inquisitive 
 
Join Date: Jul 2005
Location: UK
Posts: 121
Thanks: 41
Brook is on a distinguished road
Default

I'm a beginner too, but I'd say:
  1. FTP all your files to your host
  2. Create a new mysql database and user for your host account, then
  3. (using SSH) Make a copy of your actual database: mysqldump --opt -u databaseuser -p databasename > /path/to/backupname.sql (and upload it to your host)
  4. then load the copy into the new blank database you created: mysql -u databaseuser -p databasename < /path/to/backupname.sql

Replace databaseuser with the NEW User that you just created in STEP 2
Replace databasename with NEW Database Name you just created in STEP 2
Replace /path/to/backupname.sql with the path where you uploaded a copy of the actual database.

You will be asked for a password. Type in the NEW password as created in STEP 2 and press Enter.

That should be about it :) hopefully someone will say if I've gone wrong somewhere.
__________________
PS3 Forums on GameSlurp - the site for gaming fans!
Brook is offline  
Reply With Quote
The Following User Says Thank You to Brook For This Useful Post:
shankar (04-12-2009)
Old 04-12-2009, 06:27 PM   #3 (permalink)
The Wanderer
 
Join Date: Apr 2009
Posts: 19
Thanks: 9
shankar is on a distinguished road
Default What to do?

But the problem is i cant create any databases on the server, it says permission denied,the server has phpADMIN too
__________________
--
Regards
Shankar
shankar is offline  
Reply With Quote
Old 04-12-2009, 06:33 PM   #4 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

You don't create a database with the vast majority of hosts, you upload the MySQL dump into the database they made and gave you.
If they didn't give you one, you have to upgrade your hosting package or change hosts.

Remember to match the database connection details of the online version to those given by the host. I keep the details in two files named, say connecton.php and connectlocal.php, but the site will use, say connectme.php When working on my home server, I open connectlocal.php and save as connectme.php. When I decide to upload, I open connecton.php and save as connectme.php. easy peasy. Only one file to update, and no details to edit by hand.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 04-14-2009, 09:27 AM   #5 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Just go to your own PHPmyAdmin, select your tables and click on Export. That will parse the SQL code with your tables and content.

In your host's PHPmyAdmin go to SQL and c/p the SQL from your own.

Thats the most simple way to do it :3
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on PHP MYSQL Forms Input deesudesu Absolute Beginners 1 03-20-2009 10:50 AM
Help On Php N Mysql deesudesu Absolute Beginners 5 03-13-2009 04:26 AM
how to call mysql procedures in php??? gptArun Absolute Beginners 7 06-05-2008 08:13 PM
Sliced Images not working in php site Kay1021 XHTML, HTML, CSS 5 06-03-2008 06:40 PM
Error in connecting to MySQL via PHP EyeDentify MySQL & Databases 0 01-03-2008 01:06 PM


All times are GMT. The time now is 09:23 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design