Free php web host - Chapter 13 . Debugging and Repairing Databases 349
Sunday, November 18th, 2007Chapter 13 . Debugging and Repairing Databases 349 Cross-For further details of the mysqldump program, see Chapter 10. Reference For example, in Figure 13-18 the mysqldumpcommand runs to create a backup of all databases on the server and place the contents in a file called serverbackup.sql. The contents of the file include the DDL to create the databases and internal structure for the databases. The file also includes the DML and data contained in the databases. Figure 13-18: Using mysqldump to export the entire contents of a database server including DDL and DML The file created by mysqldump could then be saved or archived to a remote location or tape drive. Because mysqldump can be run from a remote machine, the file would automatically be a redundant backup in case of hardware failure on the MySQL server. If the hard drive fails on the MySQL server, the file produced by mysqldump on the remote machine would still be intact. The file produced by mysqldumpcan then be imported into a new MySQL server by simply reading it in through the CLI. Figure 13-19 shows an example of reading the output of a mysqldumpinto the CLI. No output or success message prints to the screen upon completion. Figure 13-19: Importing the output of a mysqldump file is as easy as reading it into the CLI.
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.