How to recover the old mysql database?

Hi. I did un upgrade of my Leopard to Snow (not Server). I've made a "Carbon Copy" and erase all my HD to restart everything, as the old Lopard was allready "fat", malfunction, etc..
I've forgot of MySQL! I'm re-installing but I'll have to export all databases I got online back to my machine (the oposite way). This is not really good because my local versions got users for testing only, less size for testing purposes... anyway, will be good take back my databases!
I boot from the copy but Apache didn't start up, don't know why, this will be a hard job (couldn't be easy uhn, export all by phpmysql).
I think the easy way is found the archives (the files that containing the databases) and copy back to newer installation...
Any ideas?

Hi
When you boot from cloned backup, does mysql work in terminal?
So open terminal, type mysql
If yes then you can do a mysql dump to file then install on new setup.
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
http://www.devarticles.com/c/a/MySQL/Backing-Up-Your-MySQL-Databases-With-MySQLD ump/
This way you should not need apache running to move the sql files across.

Similar Messages

  • How to recover the old data

    Hi all, i got a new iPhone, i had tried to restore data from the old iPhone to the new one. Unfortunately, before restoring the data i forgot to copy some importance documents and pictures from the new one. so after restoring, those documents are lost, anyone know how to recover those data? thank you very much

    If those documents are not contained in any backup, then you cannot recover them.

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • How to recover the data from a  dropped table in production/archive mode

    How to recover the data/change on a table that was dropped by accident.
    The database is on archive mode.

    Oracle Version. ? If 10g.
    Try this Way
    SQL> create table taj as select * from all_objects where rownum <= 100;
    Table created.
    SQL> drop table taj ;
    Table dropped.
    SQL> show recyclebin
    ORIGINAL NAME    RECYCLEBIN NAME                OBJECT TYPE  DROP TIME
    TAJ              BIN$b3MmS7kYS9ClMvKm0bu8Vw==$0 TABLE        2006-09-10:16:02:58
    SQL> flashback table taj to before drop;
    Flashback complete.
    SQL> show recyclebin;
    SQL> desc taj;
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL>M.S.Taj

  • How to recover the mailboxes from the decommissioned exchange db .

    Hello All,
    I have 2 EDB files on my exchange server which is no longer active its been decommissioned and the EDB mailbox is dismounted, 
    I would like to recover few emails/mail boxes from the EDB file and am not able to find any free tool which can help me in recovering the emails, 
    1. How to recover the mailboxes from the decommissioned exchange db 
    2.Tried using from free 3rd party tools which helped me view the mail boxes however am  unable to convert or recover the emails using the demo/ trial version and cant think of buy/purchasing the application since its very expensive $299 and $399 
    I know there are lot of exchange gurus here who can help me with some workaround in recovering the mailboxes from the EBD or on how to convert the edb file to pst 
    Looking forward to get some help from exchange gurus 
    Thanks, 
    Jean
    Jean

    Hello All,
    I have 2 EDB files on my exchange server which is no longer active its been decommissioned and the EDB mailbox is dismounted, 
    I would like to recover few emails/mail boxes from the EDB file and am not able to find any free tool which can help me in recovering the emails, 
    1. How to recover the mailboxes from the decommissioned exchange db 
    2.Tried using from free 3rd party tools which helped me view the mail boxes however am  unable to convert or recover the emails using the demo/ trial version and cant think of buy/purchasing the application since its very expensive $299 and $399 
    I know there are lot of exchange gurus here who can help me with some workaround in recovering the mailboxes from the EBD or on how to convert the edb file to pst 
    Looking forward to get some help from exchange gurus 
    Thanks, 
    Jean
    Jean
    Hello,
    There are so many third party software available in Web that can easily fix your Exchange Database issues, you can check out such  a software from here http://www.exchangerecoverytools.org . By using this software (Kernel for Exchange Server Recovery),
    you can immediately repair and convert damaged EDB to PST files.

  • How to recover the deleted reports from crystal reports XIR2

    Hi,
    There have been few crystal reports have been deleted from crystal environment and i would like to know how to recover them. please advice the best possible ways to recover them. CMS repositoty in SQL server database
    thanks in advance
    Regards,
    Krishna

    Hope, your question is this "How to recover the deleted Crystal reports in XI R2".
    Answer for this question is...
    Yes, it is possible if you have backup of your CMS and FRS.
    Copy the CMS database from the backup to your database server and point the CMS ODBC system DSN to it.
    Copy the backed up file store to a Temp directory.
    Change the path of input and output file repository servers in the CMC, for each server, to the Temp file store directory.
    You will now be able to find the reports. Copy those reports to the BO server's local disk, or create a BIAR file using the Import Wizard.
    Point the ODBC system DSN back to the original database and also change the paths on input file repository and output file repository servers back to their original locations.
    Publish the reports to Enterprise from the BusinessObjects server's local hard disk.

  • Due to reinstallation of mac 2nd partition is nt showing how to recover the partition and data

    Due to reinstallation of mac 2nd partition is nt showing how to recover the partition and data

    If you have no backup your only option is to perform incomplete recovery (point-in-time recovery) to the time just before the drop, export the table and then restore the database (for example, from a cold backup taken just before the incomplete recovery,) and import the table. This obviously requires a full backup
    taken before the drop which you don't seem to have, so the answer is "regrettably no."
    If you have a backup;
    Take backup of ur current db, apply previous day backup, do point in time recovery to get table back,export table, shutdown and apply latest backup, import table back
    Regards,

  • Help downgrade a php script generated by FB back to the old Mysql way

    hey all
    i am a Flex developer who has written server side stuff with php scripts that were auto-generated by Flash Builder. These scripts use the Mysqli extention, which is not avilable on my shared hosting server. These scripts implement simple CRUD functions to a MySql database. Anyone who has used the data wizard will recognize these scripts.
    Just before i pay more bucks and move to a VPS server in order to enable Mysqli, is there anyone out there who can help me translate this script BACK to the old mysql way?
    much appriciated, Saar
    <?php
    class ClientService {
        var $username = "******";
        var $password = "******";
        var $server = "localhost";
        var $port = "3306";
        var $databasename = "rtdbcbx_saar";
        var $tablename = "clients";
        var $connection;
         * The constructor initializes the connection to database. Everytime a request is
         * received by Zend AMF, an instance of the service class is created and then the
         * requested method is invoked.
        public function __construct() {
            $this->connection = mysqli_connect(
                                    $this->server, 
                                    $this->username, 
                                    $this->password,
                                    $this->databasename,
                                    $this->port
            $this->throwExceptionOnError($this->connection);
         * Returns all the rows from the table.
         * Add authroization or any logical checks for secure access to your data
         * @return array
        public function getAllClient() {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rows;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function getClientByID($itemID) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where ClientID=?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            if(mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              return $row;
            } else {
              return null;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function createClient($item) {
            $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (First, Last, Phone, Email, Chain, Branch, Kiosk, SubmitDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssss', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'));
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            $autoid = mysqli_stmt_insert_id($stmt);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $autoid;
         * Updates the passed item in the table.
         * Add authorization or any logical checks for secure access to your data
         * @param stdClass $item
         * @return void
        public function updateClient($item) {
            $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET First=?, Last=?, Phone=?, Email=?, Chain=?, Branch=?, Kiosk=?, SubmitDate=? WHERE ClientID=?");     
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssssi', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'), $item->ClientID);     
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Deletes the item corresponding to the passed primary key value from
         * the table.
         * Add authorization or any logical checks for secure access to your data
         * @return void
        public function deleteClient($itemID) {
            $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE ClientID = ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Returns the number of rows in the table.
         * Add authorization or any logical checks for secure access to your data
        public function count() {
            $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $rec_count);
            $this->throwExceptionOnError();
            mysqli_stmt_fetch($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rec_count;
         * Returns $numItems rows starting from the $startIndex row from the
         * table.
         * Add authorization or any logical checks for secure access to your data
         * @return array
        public function getClient_paged($startIndex, $numItems) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $rows;
         * Utility function to throw an exception if an error occurs
         * while running a mysql command.
        private function throwExceptionOnError($link = null) {
            if($link == null) {
                $link = $this->connection;
            if(mysqli_error($link)) {
                $msg = mysqli_errno($link) . ": " . mysqli_error($link);
                throw new Exception('MySQL Error - '. $msg);
    ?>

    hello derekmosdell, in case this question isn't related to volume of media content in firefox in particular, we probably won't be able to answer that. please refer to apple's support resources or discussion fora instead.
    thank you for your understanding!

  • How to recover my old functions on my wifi keyboard since updating to Maverick lost my old settings?

    How to recover my old functions on my wifi keyboard since updating to Maverick lost my old settings?

    I just sloved the problem, Went to Preferences and Keyboard unchecked box.It now works.

  • How to recover the itunes music from other computer

    i am using windows 7 64bit (computer B) with itunes. suddenly i lost the music from the itunes. i have another computer windows 7 32 bit (computer A) with itunes. how to recover the music from computer A to computer B
    thanks
    jimmy

    Main thing is why would you be losing your music in iTunes.  If it happened during an update and that's why you need to refer to the article to restore your old library.
    However, if you want to move iTunes from old computer to new computer:
    Refer to these articles:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751

  • When one of contolfile is corrupt then how to recover the controlfile?

    when one of contolfile is corrupt then how to recover the controlfile?

    Let us say we have 3 control files and they are named as "cont01.ctl,cont02.ctl & cont02.ctl" and they are stored in three different mount points (/u01,/u02 & /u03)
    first controlfile -> /u01/oradata/prod/cont01.ctl
    second controlfile -> /u02/oradata/prod/cont02.ctl
    third controlfile -> /u03/oradata/prod/cont03.ctl
    1. According to the ALERT log file or any other source let us say the third controlfile got corrupted...
    Now , what you can do is you have to shutdown the database and remove cont03.ctl and copy it form cont01.ctl or cont02.ctl :
    $ cd /u03/oradata/prod
    $ rm -rf cont03.ctl
    $ cd /u01/oradata/prod
    $ cp -r cont01.ctl /u03/oradata/prod/cont03.ctl
    Now, you can go ahead and start the database. The database will start without any issue and it wil be ready for any operations on it..
    2. Suppose all the files of the database got corrupted ... First of all you need to have backup of the database... the steps that are needed of this scenario are :
    --> shutdown the database with abort option
    --> Assuming its RMAN backup .. you have to first start the database in nomount state and you have to restore the contolfile from the last backup been taken and start the database in mount state and then perform the database recovery and open the database with resetlogs option(since you dont have current controlfile becoz you have restored it from a backup) :
    Assuming its catalog:
    $ rman target / catalog usr/pawd@tns
    RMAN> STARTUP NOMOUNT;
    RMAN> restore controfile (from autobackup) ; -- in case you have auto backup then use the autobackup option
    RMAN> alter database mount ;
    RMAN> recover database;
    RMAN> alter database open resetlogs ;
    After the database gets opened , immediately you have to take the backup..
    Hope its clear...Cheers!

  • Hi there,I was using MacPro with older snow leopard just now i install OS X LION,before install i backup all deta to time machines about 70GB,now when i connect i dont know how can backup the old deta to OS X LION,but it just backup the recent deta to tim

    Hi there,
    I was using MacPro with older snow leopard just now i install OS X LION,before install i backup all deta to time machines about 70GB,now when i connect i dont know how can backup the old deta to OS X LION,but it just backup the recent deta to time machine,pls guide me how i can backup my old deta to my computer??
    Will be much appreciated !!
    Thanks.

    >Step 1. Backup existing data using time machine.
    Time Machine is nice, but you have very little in terms of ability to verify that your data is all backed up.      I find Time Machine is better for the occasional recovery of previously written data at specific times.  A good backup solution that survives an erase and install (there is no clean install in Mac OS X), is a clone, and preferably TWO clones.    See my FAQ*:
    http://www.macmaps.com/backup.html
    Time Machine can work as good as a clone, and in fact I once had to rely on it because my hard drive died.  Thankfully it did recover everything.   But I had my clone just in case it didn't work.     Now I feel more comfortable since clones allow you to boot themselves, and thus prove all the important system information got saved, and not just the user data.
    Clones are also easier to import with the migration assistant.

  • How to delete the old code in the EXIT_SAPLRSAP_001

    Hi All,
    In R3 system, I wrote an exit for 2LIS_11_VAHDR  by using T-code CMOD in the function exit EXIT_SAPLRSAP_001 and the code does not meet my requirement today i want to delete the code and i will write the fresh one. now my problem is i am not able to delete the code can any body suggest me how to delete the old code.
    and can we create new project and can we assign to the Enhancement RSAP0001.
    Can anybody suggest me in this
    Thanks in advance......
    Narendra

    Hi Narendra,
    You can put the code in comments, if you don't want to use the old code..You can delete also..But be sure that code belongs to you only..
    SE38>zxrsau01>change-->find out your data source
    Comment(Or can delete) the code starting from WHEN '2LIS_11_VAHDR'. to the end of the code that you have written..
    If you really want to delete the assignment of RSAP0001 to your old project>goto CMOD>your project name>change>delete assigment
    Then create a new project and assign the enhancement RSAP0001 to your new project and write the code in Include 'ZXRSAU01'..
    Hope it helps
    Thanks
    Teja

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • Please guide me how to delete the OLD claimed trip details

    Hi SAP Gurus
    We have corrected the all the cliams by newly created an posted properly today , how ever they are struck now and since they are form old employees (2007-2008) , few are still active / terminated/ retiree staus cant delete them nor make it zero. But appear in our report as pending...
    Please guide me how to delete the old trips.. your support really appreciated..
    Thanks
    Shan

    Hi Shan,
    As per my knowledge, no table should be deleted. Check the below link for more info.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/73/6bf037f1d6b302e10000009b38f889/frameset.htm
    <<removed>>
    Thanks,
    Praisty
    Edited by: Matt on Jul 26, 2011 3:11 PM

Maybe you are looking for