Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Using MySQL For Website Database Backup / Restor


so apparently MySQL is widely used for web site backup's of databases.....however i cant seem to figure out how that is supposed to work. i am using joomla, and i have a couple ways of makeing .sql backups, but im not sure how i am to put the database on again, or if need be, on a second website.

am i making sence? i need a way to "import" my database to a website incase it gets 'nuked' or something. is MySQL the right program for this, or not?




View Complete Forum Thread with Replies

Related Forum Messages:
Creating A Website Forum: Use Existing Website MySQL Db Or Create A Second Db?
I am getting ready to start coding my own forum.... to seemlessly integrate it into my existing website.

My question is this; should I:

a) create the new forum tables in my existing database (used for the website user accounts etc.), OR

b) create the new forum tables in a separate new database (it would be on the same server with same u/n p/w)

Which one is the better option? I've been banging my head over trying to decide which way to go...

View Replies !
Install Using Book :: Database Driven Website Using PHP And MySql
I've just purchased copy of "Database Driven Website Using PHP and MySql" and have a few problems getting started.

I had tried to install apache via the manual install but could'nt make any sence of it. I them found a program called Xampp. I installed it becuase it included PHP, MySQL and would get apache working as well.

Having read the first part of the book I did'nt think I needed to install any programs and tried to start on Ch 2.

I can't open the msql.exe file or even find it??

View Replies !
No 'BACKUP TABLE' Nor 'BACKUP DATABASE' In MySQL 6.0.4
I've installed MySQL 6.0.4-alpha and trying to restore some tables found that there's no BACKUP/RESTORE TABLE/DATABASE, it returns 'You have an error in your SQL syntax' and to check the corresponding version manual, but in the documentation area it is only 6.0 (does it apply to 6.0.4?)

What can I do? I've exported from a different database version as text and I will try to insert as text, but how can I make future backup/restore?


View Replies !
Restor Dropped Table
I accidentally dropped a table and i really need to get it back, is there any way i can?

View Replies !
Database Driven Website
We want to develop database driven website. because of enormous amount
of data (300GB)
customers's tech advisors are insisting on using SAN instead of any
direct attached storage method.
I want to know what issues need to be considered while using SAN in
web solutions.? Which database
server/ product is best suited for such kind of job ? Can anyone
suggests
good informative articles on this subject , available on web?

View Replies !
Setting Up A Database And Linking It To A Website ?
Does anyone know how to setup a database linked to a website please ? I would like to setup a database so that when someone fills in their first name and email address to receive newsletters, it can automatically go into a database to be used later to email them their newsletters.

The (mysql ?), database in my cpanel is phpmyadmin version 2.8.0.2

View Replies !
Renaming Database, Website Link Problems
I just created a website on a new domain, and created a new database for it. Although I will be modifying the tables, I'm starting off with the same structure and data from the old website, just copied the tables across (export/import).

I changed all the references to the old on all the web pages and scripts with the new Username, Password and Database info, but nothing the database info is not coming up, when I run the pages.

View Replies !
How Do You Connect A Phpmyadmin Database To A Website Page
I've worked with websites for a few years, but have never been involved with databases.

I've managed to create a database in my phpMyAdmin - the versions are below:

phpMyAdmin - 2.8.0.2

* MySQL client version: 4.1.10
* Used PHP extensions: mysql

After I created the database, it gave me some code below, but am not sure what the next few steps are:

PHP $dbh=mysql_connect ("localhost", "practice_saz", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("practice_test");

View Replies !
Mysql Database Backup
i need to backup my MYSQL DB
i found the following at http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
but i dont realy understand it.

Example: mysqldump --add-drop-table -u dbuser -pPW DBNAME > /tmp/examp-back.sql

1. what is "--add-drop-table"? what does it do? do i need it?
2. is it possible to just stop the DB and then copy the MYSQL DB folder? and how is the restore if i just copy?
3.is there a switch to backup all DB's? like "--alldatabases"?

View Replies !
Date Mismatch – Migrating Website Content Database
`date` varchar(100) NOT NULL default '',

While Wordpress stores 2 dates:

`post_date` datetime NOT NULL default '0000-00-00 00:00:00',
`post_date_gmt` datetime NOT NULL default '0000-00-00 00:00:00',

View Replies !
Cron Job Backup Of MySQL Database
I would like to backup a mysql database to a text file using a cron job and then have the file mailed to an email address. Can anyone point me in the right direction on doing this type of thing? I dont have much expericnce with CRON.

View Replies !
Take Backup Of Mysql Database Using Mysqldump
This is my first post to this forum. I'm using MySql 4.1 with .Net 2.0. I've to provide facility to the administrator of my application to take backup of mysql database. Database is on different machine. I'm dynamically creating bat file to run command.
Here is my bat file:-

SET mysqldir=C:Program FilesMySQLMySQL Server 5.0in
SET mysqlpassword=root
SET mysqluser=root
@REM Change to mysqldir
CD %mysqldir%
ECHO 'WAIT .......'
ECHO 'GENERATING TSIPOS DATABASE BACKUP FILES ......'
mysqldump -h -u root -proot tsi_db_dbo > C: sidbodbbackup_Test.sql

TASK:-

I have to take backup of database running on diffrent machine. and to save the script on yet another machine. You can see three machines are involved:-
1) Where Application is running
2) Where Database exists
3) Where to save backup script.

View Replies !
Backup MYSQL Database Remotely
I have a couple of MySQL Databases that store forum data on a number of servers.....and recently had an issue where the serve crashed and i lost a load of data...i want to prevent this from happening in the future and limit the amount of data lost.......

is there a way to backup or mirror the data in my mysql dtabases to a copy which i plan to store locally on my PC, purely for backup purposes?

View Replies !
Getting The Backup Of Innodb Database From Mysql
is anyone know to get the backup of innodb databace from mysql databaceserver.

View Replies !
Backup Database Like Mysql Administrator Using Mysqldump
when i backup database using Mysql Administrator,it generate insert clause every 9 records.when i use backup sql file to restore, the speed is very high.

but if i use Mysqldump, it generate only one insert clause with all record.and its restore will cost a very long time.

View Replies !
BACKUP DATABASE * TO '/tmp/all.backup'; - DOES NOT WORK
I have troubles with 'BACKUP DATABASE', I thought it was problem of syntax, but have tried even the samples in http://dev.mysql.com/doc/refman/6.0/en/backup-database.html and the command is not recognized

$ mysql --version
mysql Ver 14.14 Distrib 6.0.4-alpha, for pc-linux-gnu (i686) using EditLine wrapper

mysql> BACKUP DATABASE * TO '/tmp/all.backup';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BACKUP DATABASE * TO '/tmp/all.backup'' at line 1

Have tried 'BACKUP TABLE' but does not work either and documentation tells it has been removed...

View Replies !
MySQL Administrator Backup Directly To Local Database
In MySQL administrator is there a way to backup directly to my local database from a remote host. I would ideally have this done automatically once a day.

I like to test locally and don't want to have to restore the database locally each time a backing from the remote site is done.

View Replies !
Which Is The Right Directory To Backup MySQL Database On Linux Opearing System?
Implemented web application using MySQL to maintain inventory of the
office PC's/laptops/Routers/hubs and other stuff, here we are using
MySQL as back-end Database on Linux Operating system. I need to backp
all these Inventory database into CD/Tape/Floppy, which is the right
directory (MySQL database) to backup (incase if the current MySQL
server crashes, then I should be able keep copy of my inventory),

View Replies !
Backup MySQL Via Port 3306 (which Tool? Automatic Backup?)
i have quite a big database on my website - and i cannot get any backup via system dump or scripts anymore, because my hoster added some memory limits - and scripts/dump can't finish...

so the only way left is to backup my database via connection to port 3306 and tools like mysqlfront.

mysqlfront is unfortunately quite slow and buggy - so do you know any tools which can backup databases via external connection? - it would be great if there are tools which run automatically? (batch/commandline??)
backup with mysql.exe - h -u .... is impossible, too!

View Replies !
MySQL On A Website
I'd like to create a website with a MySQL database to store soccer players
details like goals scroed for the season. I want to use it to update my
fantasy soccer team through this season, does anyone know of a free host
that provides MySQL?

Or even better, does anyone have experience of this? I've created an ASP web
interface to an Access database and read/written to it like that in the past
so I assume it's the same for MySQL.

View Replies !
HOW DO I USE MYSQL WITH MY WEBSITE?
I have an existing website with Netfirms and it comes with "mysql" "php" etc. It is active and have been able to confirm that with tech support. I purchased two books regarding "php & mysql for dummies" and "biginning php5,Apache, mysql Web development" and still I donot have a clear understanding of how to write a script that will allow a website user to interact and or collect information and display information on the website page. I mean this is what it is all about right? Can someone please just give me an example that I can follow on how to actually creat a script to allow mysql to interact with a webpage. And while your add it. whats a good learning tool, book etc to have?

View Replies !
MySQL For My Website
I would like to use MySQL for my website, what should I do?.

View Replies !
Website Hosting Which Use MySQL 5
Does somebody knows a website host using MySQL 5, php 5 with MySQLi?

View Replies !
MySQL Driven Website
I would like to do is create a website that is driven by a MySQL database. The question is, does MySQL have to be installed on the web server by my isp or is there another option. I have read some posts about a MySQL DLL that can be placed on the server instead of a full install, but have not found enough relevent info.

View Replies !
Connect To Mysql From A Different Website?
I have 2 websites that sometimes I want to transfer products from one website to the other. An easy way for me to do this would be site-a connect to site-b DB, select the data, and then reconnect to own site-a DB and save.

I dont think security risks would be a big issue because the only thing I would be transfering would be products which dont have any sensitive info connected to them.

but is there a way? if not I will just have to do it manually...Im just trying to be sufficient.

View Replies !
Displaying MySQL Data On Website
Currently, our neighborhood directory is in Microsoft Access, and every few years we would have it printed professionally and bound. I have Reports which formats the data for the printed directory. I would like to add the directory to the website, to replace printing it.

I can easily create the tables and insert the data. I'm not sure how to go about displaying the directory data. Is there is a way to create a report and display that?

Each entry represents a family in the neighborhood, but the fields that contain data may vary from family to family, such as the kids field. Also, I want multiple entries on a page - like a phone book.

View Replies !
Root User And Developing PHP/MySql WebSite
my webhosting company defaulted a root user with no password. I created a user for myself with a password, but wondering if having the root user without a password will leave the database open to intrusion. What's it there for, anyways?
On another note, what is a good IDE for developing a PHP/MySQL website that will be served from a UNIX server, but developed on a windows PC?

View Replies !
MySQL Versioning Of PHP Data-driven Website
I have a website that I am designing that uses a bunch of PHP scripts to generate pages for a website from data stored in an underlying MySQL database.

I have the PHP scripts under CVS, and using Apache and mod_rewrite I am able to access different versions of the website from the CVS project - each with their own set of PHP scripts.

The problem is this: I would like to version the MySQL database as well.

This means that there would be multiple MySQL databases, with slightly varying schemas on the server. Each PHP version of the website would point to a corresponding MySQL database for its data. Multiple PHP versions could point to the same DB, as long as each PHP version has SQL statements matching the schema of the correspoinding DB.

One version of the DB would be a live version of the site (v1 for example, above). Users accessing the site would causes changes to the data in the DB (not the schema, of course).

The second version of the DB (v2) would need to basically be a slave replication server, using DB v1 as the master. This will allow DB v2 to be up-to-date with all of the user updates that appear in DV v1. DB v2 is the development copy. As the design matures, schema changes will be made to DB v2. At some point, DB v2 will be made the "live" server, essentially taking the role of DB v1.

As long as fields are only added to tables in DB v2 to modify the schema, the developer can easily just feed the updates from DB v1 to v2, to keep the user data current.

The complicated part is when schema changes need to be made to v2 where fields are deleted, renamed, moved, etc.

What is needed, basically, is a system that can track the ALTER TABLE statements, and appropriately translate the UPDATE statements from DB v1 to the new schema of DB v2. The developer could specify non-obvious and more complicated changes in some sort of syntax in order to clarify the changes to the underlying schema - thus allowing the generation of the proper relational algebraic (SQL) statements from the original UPDATE statements.

Does anyone know of an existing system or set of scripts that accomplishes this, or can offer an alternative solution for DB versioning?

View Replies !
ODBC Connection To MySQL On Shared Hosted Website
I'm trying to connect to a mySQL database that exists in connection w/ my website. I created the database using c-panel. Everything that I use to access the website from my site uses "localhost" as the host name. I installed the ODBC drivers for Windows on my XP machine and am trying to connect from my local machine.

I am not sure what I should use for the hostname in that case -- I tried www.mysitename.com as the host but that didn't work. I also tried the IP address, but that didn't work either. I asked my host's support team, but haven't heard back from them yet. It's a shared hosting service. Any ideas on what the hostname should be?

View Replies !
Backup Database
I Have been using mysql for a while. I downloaded this from mysql site and I created/edit whatever only on the command prompt. My question is, since my database is huge now. I want to copy that database into somewhere else that is safe cause I am going to upgrade my codes, just to prevent if something goes wrong then i can get back my tables and datas. How can I do that?

View Replies !
How To Backup Database?
I have mysql and a single database.
I'm moving from one host to another.

I was instructed to "backup database from old host and restore in new"

View Replies !
Database Backup And Synchronization
How do I synchronize MySQL table data of my home PC with latest data from a remote server ?

My home PC is on a very slow internet connection, so implementing replication will cause long time read lock on remote server, which is not desirable.

What are the tools for manual sync of tables?

View Replies !
Database Backup And Reinstall
I have MySQL (4.0.13) installed on a Windows 2000 Server, interacting happily with ColdFusion MX. However, my hard disk system has collapsed, and I need to back up all data before a virgin OS is installed. My question: how do I back up a database, and reinstall it, using MySQL?

View Replies !
Automatic Database Backup.
Currently Im using phpMyadmin export feature to create a .sql file that I download as a backup of my database.Is there any way I can automatically get the server to create this backup file for me, and email it to me? I am on linux hosting. There is a button in 'Cpanel' called cron jobs which I think could help but Im not sure how to use them.

View Replies !
Backup And Transfer Database
I use godaddy as webhoster. I don't know how to backup my database in godaddy. how do i export database into another webhoster like dreamhost .

View Replies !
Database Backup From Shell
when i use mysqldump command for taking backup of my database from shell , it works , command is

mysqldump databasename > path to store

But i want to take backup of my database at "mysql" prompt. As my hosting company , logs me in direct to mysql prompt VIA putty. I have no access to shell.

I also donot want to use phpmyadmin or other GUI softwares.

View Replies !
Mysqldump To Backup Database
In MySQL Command Line Client, I want to back up the database (diary) and the table (d2008), so I typed:PHP Code:

 mysqldump diary d2008 > backup.sql 

But I got this error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version...
I am using version 5.0. I have also tried entering passwords, usernames and many other formats described on mysql website and manual, but none seemed to work.

View Replies !
Backup A Small Database.
I'm looking to backup a small mysql database. The problem is mysqldump does not exist on the server I'm trying to export the database from.

Does a php script exist which I could use to do essentially the same thing as mysqldump?

View Replies !
Copy The Backup Database
I had backup the database. When I use the backup database, so I copy it into the c:mysqldata.
When I check the content of the backup database, the content is belong to new database, But now I want use back the old one. so how?

View Replies !
Cant Backup Database (Greyed Out)
I installed mySQL Administrator, but when I select the backup section to try it out, I can never select anything on the corrosponding tabs, everything is greyed out.

Im still new to databases but im guessing the root user should have access to backups?

View Replies !
Online Database Backup
(1) Can I use mysql admin gui 5.0 to backup/Restore a databas when some users still connect to a database (Online)

(2) Can I copy the database file directly as a backup when some users still connect to a database (online)

View Replies !
Complete Database Backup
I want to run a complete backup of my database on one machine and restore it on another, but i don't know what the commands or procedure is, can anyone help please?

There isn't an issue either with it being online/offline, its only a database for a small desktop application.

View Replies !
Backup And Restore Database
i did a backup of mysql database using the command line utility

mysqldump. this is the command i used "mysqldump -u root -h <hostname> --databases <dbname> > <backupfile>

when i try to restore this using mysql command line client it gives a error after some time the message says that a error has happened on a line number and it states that the table columns does not match the values in the insert statmenet.

i havent done any cahnges to the backup file i just dumped and restored thats all

but when i tried this with mysql administrator gui tool it worked fine.

View Replies !
Partial Database Backup
I am developing a hosting solution for a popular open source script: on the website users can sign up to get their own "virtual" copy of the script. There is a single database, but own tables for each user. Database tables engine is currently MyISAM, but I am going to change it to InnoDB.

What I need is to let each user download a backup of own data, and restore it when s/he wants. The users shouldn't be able to change other users' tables structure/contents. Also, the backup should be encrypted, so they can't simply check out its contents.

One of the possible solutions is to tar the tables files, encrypt the archive, and that would be the backup. But in case user decrypts the archive, s/he would be able to change table structure and other details, making the system function improperly. Of course, as encryption algorithm strength grows, it becomes harder to encrypt the archive and make the system work incorrectly and/or change other users' info.

Should I just use some strong encryption algorithm and tar the table files? Does InnoDB allow to work with table files of an open database? Or should I lock the required tables for that?

View Replies !
How Do I Set Up A Regular Backup Of My Database?
I know I can do it manually in phpMyAdmin, but is there a way to set up a scheduled back-up say once a day?

It would be even better if I could set up some sort of cycle where at any one time I'd have 7 versions backed up (Monday-Sunday) and each day that backup would overwrite its old version (that is, on Monday the db backup would be saved over the old Monday backup, and on Tuesday it would be saved over the Tuesday backup).

Just in case something goes unnoticed for a couple days I would have the ability to jump back to a given day within a week.


View Replies !
Automatic Database Backup
Well i don't really know if this should be posted here, as i use mysql along with php but i believe it is more relevant to mysql forums.

Is there any way of automatically backing up a db, say once a week? Kind of a programmed process lets say..

View Replies !
How Do I Backup Large Database?
I have a forum with over 130k members and the database is quite large. I'm on a shared server through hostmonster.com

My question is, how do I completely backup this forum database so if anything ever happens, I can restore every single detail.

Is there a way to do so that doesnt require codin or anything?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved