hihihihi88
Feb 9 2005, 04:52 PM
| | I dont know how to backup the database to my computer , in cPanel i click "export" (is that right), but i can't back the file to my computer >.< |
Comment/Reply (w/o sign-up)
miCRoSCoPiC^eaRthLinG
Feb 9 2005, 05:24 PM
QUOTE (hihihihi88 @ Feb 9 2005, 11:52 PM) I dont know how to backup the database to my computer , in cPanel i click "export" (is that right), but i can't back the file to my computer >.< Ok.. first of all this method is very very inconvenient. So apply for a SSH Shell in the Hosting Request Forum. Once you get SSH Access, download PuTTy - a secure shell terminal from: a. http://www.chiark.greenend.org.uk/~sgtatha...y/download.html OR b. http://www.putty.nl/download.html Use that to login into your astahost account. Once you are logged in and reach the shell type the following: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -jailshell-2.05b$ mysqldump -u YourUsername -pYourPassword --all-databases > YourBackupFile.sql
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Notice the underlined parts above. In the statement above, you should replace YourUsername with you own cPanel username, and YourPassword with the corresponding cPanel password. The YourBackupFile.sql should be replaced with an appropriate name for your backup file. Also notice the fact that when you are specifying your username with the -u option, there IS A SPACE BETWEEN "-u" and your "username" BUT THERE IS NO SPACE BETWEEN "-pYourPassword" i.e. between "-p" and YourPassword. Now all you need to do is, download this .sql file onto your local hard drive and run it through MySQL - and you'd have an exact replica of the MySQL database that's residing on your webhost. NOTE: This will backup ALL the MySQL databases you have into that file. In case you want to backup only a few selected databases, use the "--databases" option followed by the database names instead of "--all-databases". The statement then, would take the form: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -jailshell-2.05b$ mysqldump -u YourUsername -pYourPassword --databases database1 database2 > YourBackupFile.sql
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Hope this helps. Believe me, there's not a more convenient way than this to back your MySQL databases up.... Have fun 
Comment/Reply (w/o sign-up)
coder2000
Feb 9 2005, 07:33 PM
Open phpMyAdmin and use their export feauture. You can have it create an sql file and even compress it.
Comment/Reply (w/o sign-up)
hihihihi88
Feb 10 2005, 02:37 AM
QUOTE Ok.. first of all this method is very very inconvenient. So apply for a SSH Shell in the Hosting Request Forum. Once you get SSH Access, download PuTTy - a secure shell terminal from: a. http://www.chiark.greenend.org.uk/~sgtatha...y/download.html OR b. http://www.putty.nl/download.html...... thank you very much , good information for me ^^ QUOTE Open phpMyAdmin and use their export feauture. You can have it create an sql file and even compress it. I have open phpMyAdmin but i dont know how to export . In the export panel I dont how to export to my computer.... >.<
Comment/Reply (w/o sign-up)
coder2000
Feb 10 2005, 04:18 AM
well when you click export in phpMyAdmin it should automatically open a download window.
Comment/Reply (w/o sign-up)
Rudy
Feb 10 2005, 05:02 AM
Coder is right, it’s that simple and I have done it more than once. Select backup from your cpanel, and then click on the database you want to backup. It will give you the option to save the backup as a *.gz file and let you chose where to save it on your computer.
Comment/Reply (w/o sign-up)
miCRoSCoPiC^eaRthLinG
Feb 10 2005, 09:14 AM
hihihihi88: I think you should follow coder2ks advice and use phpMyAdmin to back it up. The method I've mentioned here albeit gives you much more flexibity and control, but is far more compicated and is meant for a little MySQL users. Once you start getting hang of all the MySQL commands and syntaxes - you could try using my method. Meanwhile I suggest (whether you are running on Linux or Windows) you to grab a copy of MySQL ( http://www.mysql.com ), if you dont have one already - and try out all this on your home computer. That will somewhat familiarize you with the working environment and you'll see light for sure  There are lots of good documentation too on their site and a very helpful & dedicated MySQL support forum too - so you won't be left groping in the dark. All the best
Comment/Reply (w/o sign-up)
marijnnn
Feb 11 2005, 02:06 PM
phpmyadmin is the way. but don't forget to tick the "export data" option. ortherwise you'll just have your structure (tables). you'll have an sql file that you can import later on. it's fast & easy.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : backup, mysql, database, cpanel, silly, question
- Login System
I want to make a login system using Mysql. I am amateur in these thing (12)
Free Or Opensource Database/schema Browser?
Alternatives to TOAD or PL/SQL Developer (6) I was wondering if there were any alternatives to TOAD or PL/SQL Developer that allows you to browse
through a database(s), the different schema objects, and perhaps the stored
procedure/function/packakge editors. One thing I have tried is to the use the Data Tool Plugins set
for my Eclipse but that brings my machine's performance to crawl. One a further note, I am
basically looking for Windows environment, with connections to remoate databases.....
Mysql Overhead
(3) Sometimes in a table especially if i do alot of things in it i start seeing overhead then a size
near it? what is overhead? and is it essential to optimize the table to fix it? I know its just a
press of a button but i'd like to know what happens when i optimize a table. Also when you make
a new table you can limit the size of VARCHAR to a number, that number would be the number
characters allowed in that column per entry. I'd like to know how the limit works for texts, is
it in KB? or number of characters? Cuz i made a messaging system. And i remember reading s....
How To Understand A Database Schema
A very nice and simple tutorial (9) Yesterday while i'm seaching for a data model and database schema at the Library of Free Data
Models for a new project of a friend of mine i found there this nice and simple tutorial on How to
Understand a Database Schema . As its name says, this tutorial will help you to better understand a
Database Schema and covers the following basics topics that every Database Schema must define:
QUOTE Primary and Foreign Keys. One-to-Many and Many-to-Many Relationships. Inheritance.
"Rabbit's Ears", (Recursive relationships). The Scope of this tutorial is ....
Best Database
(16) What is the best free database if some one trying built a social networking website? And how to
operate it with dreamweaver 8?....
Some Useful Database Links.
(7) I thought I would take a moment to point the users here to some of the database resources available
for reference and learning. First I will start with actually designing the database. This site by
R937 covers the basics of database design. The author is professional database guru and a frequent
helper at the at DB forums listed below. The Library of Free Data Models is an excellent
resource for finding data models for projects you may have or as examples of well put together data
models. With around 500 data models the chances are you find something at least cl....
Mysql Multiple Tables
(3) It is good practice to use multiple tables to sort out big amounts of data. But once you do that it
becomes increasingly hard to cross reference the tables. Mysql has a little beautiful command
structure that they have added. You can select multiple tables within one sql query. Example of a
basic sql query CODE $sql = "SELECT * FROM table WHERE row=1"; If you noticed that I selected
all of the rows in the table. Normally you will try to not select the entire table from the database
unless you absolutely want all of the table. I would recommend against it; just gra....
Any Website Provide Free Host Mysql Host?
(4) any website provide free host mysql host? i need it because i am using 000webhost.com now but it
only provide 2 mysql database... can i know where or how can i get more databases regards....
Database Access On Remote Server W/jsp
(2) Hello: I am new to JAVA and server-side applications and have a dumb question. I have set up
Tomcat on my machine and created a JSP program to query an Access database using a DSN-Less
connection. If I publish the page to a webserver and include the .MDB file will it work? I'm
not sure exactly what needs to be packaged with my Java application to make it work. Since I
don't have a remote server that supports .jsp I cannot really test it. I'm assuming that
JDBC driver would be bundled with my site but not sure. Thanks!....
Space Needed For Database
(10) Iam assuming the information in the databases i will create will be stored in the 500 MB space i
get, but since 500MB isn't enough iam wondering if you guys can tell me how much bytes the
following take: Varchar(x),Tinyint,Text,date,smallint,mediumint,bigint,float.... And the rest
present when you add/edit a row in a table. Also what are the ranges of tinyint,smallint,mediumint
and big int....
Mysql On Computer
XD (9) I posted PHP on computer? , but for some reason it doesn't show :/. Anyways I am wondering if
there is MYSQL on my computer, meaning can i make a data base on my computer? that way i make what i
want and upload it when i get hosted =)....
Mysql Database Entry By Excel Sheets
(2) Hello .. I would like to ask if i can use use Microsoft excel files in order to make entries to
mysql database. Thanks....
Accessing Ms Access Database From A Centralized Location?
(10) Hi I am a manager at a trading/wholesaling company (and have no programming background). I
customized the Northwind sample access database to make invoices and keep accounts for my company.
We now opening another office at a distant location. So, the order entry will be done at two
points(we plan to use the same Access database). I am not able to figure out how to access the same
MS Access database from two different location(as LAN can't be used). Moreover, we can't
afford to pay huge sums to the software developers. Can intranet or uploading the database t....
Login System Using A Mysql Db
How do i do this? (5) Hi guys, ive got a registration system that looks something like the one below: Firstname:
Lastname: Then i have inset.php, which looks like the following: $con =
mysql_connect("localhost","autobot","abc123"); if (!$con) { die('Could not connect: ' .
mysql_error()); }mysql_select_db("my_db", $con);$sql="INSERT INTO person (username, password) VALUES
('$_POST ','$_POST ')";if (!mysql_query($sql,$con)) { die('Error: ' .
mysql_error()); } echo "1 record added";mysql_close($con) ?> Now my question is, how do i creat....
Mysql And Php
When trying to install Joomla (16) I don't know if this is the correct forum, but here is my question: I'm trying to test
Joomla and some forums in my computer, I have already installed MySQL with the GUI tools, Apache,
and PHP with the MySQL and MySQLi extensions, but when I'm trying to install Joomla I get this
error: Required Settings Check: ------------------------------------- PHP version >= 4.1.0
Yes - zlib compression support Available - XML support Available - MySQL support
Unavailable configuration.php Writeable Session save path Unwriteable Not ....
Can't Import Backup Sql File To Localhost
(11) Hi, I downloaded a backup of my forum database and wanted to import it on my computer locally for
testing purposes. This has always worked for me in the past, but I'm having some problems with
it lately. I'm backing up my database via phpMyAdmin->Database->Export->Select All and
downloaded as a .gz file. I'm using Windows XP Home with WAMP installed, so it has MySQL built
in. It's version 5.0.27. I ran all the services and at the prompt typed in: mysql -u root -p
backup.sql > testDB My root account in WAMP has no password, so when it prompts for a ....
Navcat For MySQL
is Navcat any good? (9) Hello all, i ve recently come across NavCat (GUI tool) for MySQL. I have not bought a copy yet, just
played around with the demo. Has any one used it beore, if so please let me know if its worth
buying. I already have PhpMyadmin, Just wanna know if NavCat is better than PhpMyAdmin in usibility
and functionality. Regards....
Is It A Good Practice To Store Image Or Other Binary Files Directly In A Mysql Database
(6) Hello to all of you beautifull people out there, I am new to MySQL, i just wanted to know if its a
good practice to directly store images and other binary files in a MySQL database. Any one with
help? Thanks....
MySQL, Multiple Tables
(27) Ok, I'm coding a project which is a leap than what I'd normally do. Before, I've always
learned ONE table... put EVERYTHING in one database table. I'm making a profile system so there
needs to be at least two tables: 1 for users, 1 for content. My problem is, how do I link the two
together? I could probably figure this out faster if someone explained and posted sample SQL code
that shows how the two are linked together. Thanks!! F....
MySQL Output Database Question
(19) I am new to MySql and have just created a database after using a script. My problem is not the
script, but what it says about putting it into the output file. I cant figure out the right terms
to put it in, I keep getting errors. I try using; SELECT*FROM 'database name' WHERE
'location' but it isnt working. I'm lost with this stuff, I really am. Can someone
please help me out?....
MS-database To MySQL
I'd like to batch them (6) Hi, maybe one of you already came across this, so I ask. I'll continue searching on. I've
got two vocable trainers, one is Windows-native, the other one is on the web. While I can't
control the output of the Windows-thing (so I can't export them to a *csv or something), I can
write an import script. But since I'm not that great with Regular Expressions and don't know
anything about *.mdb (that is MS SQL, isn't it?) files, I would need some finished thing to make
out the field information and put it in arrays or something more readable. It wou....
What Are The Alternatives To MySQL
(7) Hi. i'm interested in alternatives to MySql combined with php. what database else can i use to
create a webbased managment system with a lot of entries. maybe more than mysql can handle fast
enough. it should be more powerful than mysql and should have nearly the same features. i hope
there is a webbased administration program like phpmysqladmin thanks for your help ! greetings c.....
Mirror My MySQL Database To Another Mysql Server
(7) Hi..I want to ask if its possible to automatically mirror my mysql databases into another mysql
server?or create a small php script to do this? The reason is because, we all know that database is
very improtant if we have dynamic website. I have my forum hosted and i want to automatically
mirror this or backup into another mysql server(free). Like in freesql.org. So that im not afraid
that i forgot to backup my database..also i have one central backup database. Thanks for the
help..Im looking forward for this posibility.....
Recover Tables From A MySQL .frm File
(9) I have a couple of .frm files with no corresponding data or index files. Is it possible to recover
the table structure (field names, types, sizes, rows,col, etc) from these files? The table type is
innodb....
MySQL Database Problems
(8) My friends have a little forum running here . The problem is that quite often we get the following
message when we try to open the page: QUOTE Warning: mysql_connect(): Can't connect to
local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in
/home/vhosts/rohit.bizhat.com/forums/db/mysql4.php on line 48 Warning: mysql_error(): supplied
argument is not a valid MySQL-Link resource in /home/vhosts/rohit.bizhat.com/forums/db/mysql4.php on
line 330 Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in
/home/vhosts/roh....
Error In Installing MySQL Server
MySQL server cannot be started (9) I try to upgrade my MySQL server from 4.018 to 4.1.10a. Firstly, I downloaded mysql-4.1.10a (not the
essential one) for win XP Then I install the new version after the old version was uninstalled.
After the installation process, Instance Configurator comes up to help for the configuration. But an
error occured when it try to start the MySQL service. Error messageis "cannot create windows
service for MySQL. Error:0" So my MySQL server cannot be started. It is running win XP on my
computer. Does anybody can tell me what is wrong?. Thanks (sorry for my bad english)....
How Can I Import Csv Files To My MySQL Database?
I was able to export but where's import? (3) I am having hard times finding that import csv in the mysql phpmyadmin. I once worked on some csv
files and someone imported it on the mysql server. I was not able to ask him. Does someone know how
can I import csv files in mysql server?....
MySQL Datetime --> VB.NET Datetime Conversion Prob
Any solutions ?? (4) Hi, Can anyone provide me with a quick example of fetching a MySQL Datetime Field and converting it
into native VB.NET DateTime format ?? Say for example my db contains a couple of fields: Field1,
Field2, DateField... one of which is the default MySQL DateTime. Say I'm using the following
code to connect... CODE ConnectionString = "....." QueryString = "SELECT * FROM SomeTable" Dim
myConnection As New MySql.Data.MySqlClient.MySqlConnection(ConnectionString) Dim myCommand As New
MySql.Data.MySqlClient.MySqlCommand(QueryString, myConnection) Dim myReader As MySq....
MySQL Realtime Replication
how to replicate mysql in realtime (4) i dont know if this might be useful to ppl here, but this is a very good knowledge for serious
siteadmins. while i was digging for mysql backup techniques, i've found that mysql is able to
do realtime replication. the idea is that there are master server and slave server. both are having
the same version of mysql installed. the data flows; Master >copy> Slave ( in realtime!)
you'll never have to manually copy the database file of wasting your time to manually use the
mysqldump command. here are the links; http://dev.mysql.com/doc/mysql/en/Replication_HOWTO.h....
MySQL - Trouble With Bulk Insert Statements
(3) I'm trying to insert about 500 rows into mysql, but I keep getting errors. If I copy and paste
too many (about 50) insert statements at a time I get errors sometimes. I sometimes even get errors
but then the row is skipped so I don't know there was an error (I'm using linux and SSH).
What's the best way to get my insert statements to put the data in MySQL? Is there anyway that I
can have it tell me if there where any errors all the statements are executed? Thanks for your
help.....
Looking for backup, mysql, database, cpanel, silly, question
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for backup, mysql, database, cpanel, silly, question
|
advertisement
|
|