hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : MySql problem
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

MySql problem

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-22-2002, 05:18 PM
WingZero WingZero is offline
Newbie
 
Join Date: Aug 2001
Location: NY
Posts: 11

MySql problem


I've recently backed up a .sql file for a php script. I want to now restore the file's info on a new server. How do I do that? Is there a command line I can type in somewhere?

Thanks

__________________
Wing Liu, CEO
CG Designs
Visit http://designs.cganime.com
for great looks at affordable prices.

Reply With Quote


Sponsored Links
  #2  
Old 05-22-2002, 05:30 PM
AcuNett AcuNett is offline
** Server & Hosting Experts **
 
Join Date: Dec 2001
Location: Franklin, TN, USA
Posts: 1,310
mysql -u admin -ppassword databasename < file.sql

-u (username) -p(password) with no space between -p and the password.

__________________
ServerSync, By AcuNett | RAID-6 Remote RSYNC Space
Are you ready for peace of mind?

Sit back. Relax. Leave everything to us.
( AcuNett 24x7 Always-On Server Management Est. 10 Years, BBB A+, RateLobby Reviews )


Reply With Quote
  #3  
Old 05-22-2002, 08:04 PM
WingZero WingZero is offline
Newbie
 
Join Date: Aug 2001
Location: NY
Posts: 11
Thanks for the help, but do i type that as a query in phpadmin? Also, do I put the absolute path to where the file is at on my server?

__________________
Wing Liu, CEO
CG Designs
Visit http://designs.cganime.com
for great looks at affordable prices.

Reply With Quote
Sponsored Links
  #4  
Old 05-22-2002, 08:51 PM
AcuNett AcuNett is offline
** Server & Hosting Experts **
 
Join Date: Dec 2001
Location: Franklin, TN, USA
Posts: 1,310
Yes, for the *.sql file you type the full path to it.

You do it in shell. in phpMyAdmin there should be an option to "browse" to a text or sql file on your local system and it will auto upload.

If your phpMyAdmin does not have this, then you will need to copy and paste EVERYTHING in your *.sql file into the query/form box.

Easiest way imo is to do it via shell.

__________________
ServerSync, By AcuNett | RAID-6 Remote RSYNC Space
Are you ready for peace of mind?

Sit back. Relax. Leave everything to us.
( AcuNett 24x7 Always-On Server Management Est. 10 Years, BBB A+, RateLobby Reviews )


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Sales and Promos Roundup - October 7, 2011 Web Hosting News 2011-10-07 19:56:18
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?