Navigation
Inlägg i den här kategorin
- Finns php5? Fungerar php5 tillsammans med php4?
- Generell info om PHP
- Hur skapar/tar bort/editerar jag databaser och användare?
- Hur tar jag backup och återställer MySQL databaser?
- Jag behöver ladda upp stora filer till min hemsida med php, men jag får ett felmeddelande. Hur löser jag det?
- När jag försöker gå in på min hemsida så får jag upp följande "FATAL ERROR: register_globals is disabled in php.ini, please enable it!"
- OSCommerce fungerar inte. register_globals måste sättas. Hur gör jag?
- Stöd för PHP4 upphör. Vad behöver jag göra?
- Hur ser er PHP miljö ut?
- Hur kan jag använda ODBC med mySQL?
Taggar
WebbHotell » cPanel » PHP & MySql
Hur tar jag backup och återställer MySQL databaser?
There
are two main ways to back up or restore a MySQL database on our servers:
via SSH or the phpMyAdmin interface.
If you need SSH Telnet
access, just send us a ticket with your request to be enabled for it. To
access the phpMyAdmin interface, click on the "phpMyAdmin" on your
control panel.
How create a backup a MySQL database using
SSH:
Log into your account on our server and issue the following
command:
/usr/bin/mysqldump databasename --opt -u user -p
> /home/user/file.sql
Enter your actual username and password
where we have indicated user and password. This will create a file
called "file.sql" that contains your entire database.
How to
restore a database using SSH :
Log into your account on our
server and issue the following command:
mysql databasename -u
user -p < /home/user/file.dump
How to create a
backup MySQL database using phpMyAdmin:
Click on your database
name shown on the upper left.
Go to the section called "View
dump (schema) of database" and choose options for backing up structure
only, structure and data, or adding drop tables. To view what your
backup file will look like, click on the "Go" button. When you're ready
to send your back up to a file, check the send box and click "Go", then
follow the prompts for how to name the file and where to send it.
How
to restore a MySQL database using phpMyAdmin:
Click on your
database name shown on the upper left.
Locate your back up file
for the database that you want to restore. Open it and copy the entire
contents.
Paste into the field called "Run SQL query/queries on
database yourdomain_com" and click the "Go" button.
Taggar: -
Relaterade poster:
- Hur många konton och lösenord har jag egentligen?
- Hur ofta tar ni backup?
- Jag vet att ni har SPAM skydd på servernivå, och det fungerar bra, men fångar inte all SPAM. Vad kan jag göra för att förbättra mitt skydd mot skräppost?
- Installera egna applikationer enkelt
- Hur skapar/tar bort/editerar jag databaser och användare?
Senast uppdaterad: 2010-05-01 08:27
Av: :
Ny version: 1.0
Du kan kommentera inlägget
Kommentar av bfMKVmMEKVrHKn:
You have shed a ray of sunshnie into the forum. Thanks!
Inlagd den: 2011-05-26 12:52
Kommentar av HQyVFcQkmqxTnhvUw:
I thank you hbumly for sharing your wisdom JJWY
Inlagd den: 2011-05-26 20:19
Kommentar av iHVnBqhaOEExmaA:
JxRp6e pqwldztununq
Inlagd den: 2011-05-27 11:38
Kommentar av AsBDLjgVaVgBuOj:
t8zoZ2 pejmmvszpyrz
Inlagd den: 2011-05-29 09:33