Results 1 to 6 of 6

Thread: [MySQL] Export a DB From PHPMyAdmin to /var/lib/mysql

  1. #1
    Member registered user
    Join Date
    Jul 2003
    Location
    France / Finland
    Posts
    61

    [MySQL] Export a DB From PHPMyAdmin to /var/lib/mysql

    Hello,
    I would like to know if it is possible to export my actual DB from my website that I manage with PHPmyadmin to copy it into my /var/lib/mysql

    I did not find how to do that...
    I manage to create an empty DB but that's it

    Thxs
    Ludo

  2. #2
    Junior Member
    Join Date
    Aug 2003
    Posts
    2
    Hope this helps,

    What I did was setup a script that actually deletes the httpd.conf and php.ini files, and then creates links to my database folders and config files that are stored on my pen memory device. This way, I don't lose any of the data during a reboot.

    #!/bin/sh

    chmod 777 -R /etc/apache
    chmod 777 -R /var/www
    chmod 777 -R /etc/php4/apache

    rm /etc/apache/httpd.conf

    rm /etc/php4/apache/php.ini

    ln -s /mnt/sda1/httpd.conf /etc/apache/httpd.conf
    ln -s /mnt/sda1/htdocs /var/www/htdocs
    ln -s /mnt/sda1/php.ini /etc/php4/apache/php.ini

    apachectl start

    chmod 777 -R /var/lib/mysql

    ln -s /mnt/sda1/citydata /var/lib/mysql/citydata

    /usr/bin/mysqld_safe &

    echo "Done with setup"


    MadWebGuru
    Bruce

  3. #3
    Member registered user
    Join Date
    Jul 2003
    Location
    France / Finland
    Posts
    61
    Hmm that's not exactly what I meant.
    Perhaps I should try to post it on the HDD install. Because I've knoppix installed on my HDD.

    thxs anyway

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Posts
    2
    I just copied the actual files over from a different box.

    Using the script I provided, you could create a empty folder that is linked into the /var/lib/mysql and then use phpMyAdmin to import a exported dump. The dump should contain the sql needed to define the tables for your database.

    MadWebGuru
    Bruce

  5. #5
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76

    Re: [MySQL] Export a DB From PHPMyAdmin to /var/lib/mysql

    Quote Originally Posted by Coume
    Hello,
    I would like to know if it is possible to export my actual DB from my website that I manage with PHPmyadmin to copy it into my /var/lib/mysql
    According to www.phpmyadmin.net you can make a backup. Now the problem can be how to ftp those backups over, but that depends on the setup on your remote host.

    [Edit]
    According to their faq you can transfer the backup directly to your machine
    [/Edit]

    - - Edwin

  6. #6
    Member registered user
    Join Date
    Jul 2003
    Location
    France / Finland
    Posts
    61
    hi,

    Ok I'll try to have a deeper look into myphpadmin and see if my host allow to export the data too...

    thxs
    Ludo

Similar Threads

  1. MySQL
    By mzee in forum Knoppix DVD
    Replies: 17
    Last Post: 10-12-2005, 08:48 AM
  2. Mysql with databases on HDD
    By sbb in forum General Support
    Replies: 3
    Last Post: 12-28-2004, 05:14 AM
  3. apache and mysql
    By dr_rude in forum General Support
    Replies: 2
    Last Post: 10-11-2004, 02:37 AM
  4. [mysql] how do I use it???
    By Coume in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-04-2003, 07:00 AM
  5. Get me going with MySQL
    By Terry@nz in forum General Support
    Replies: 3
    Last Post: 06-09-2003, 10:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$3472.00



Supermicro 4U 4x Nvidia GPU AI Server 2.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 2.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$1382.00



Supermicro 4U 4x Nvidia GPU AI Server 3.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$1732.00



Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ... picture

Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...

$689.99



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$489.99



Dell OptiPlex 7060 Micro 8-Core i7 8700 3.20GHz 16GB  512GB SSD Win 11 Pro picture

Dell OptiPlex 7060 Micro 8-Core i7 8700 3.20GHz 16GB 512GB SSD Win 11 Pro

$214.00



Apple Mac Pro Processor Tray 5,1 2010 2012 2.4ghz 8 core picture

Apple Mac Pro Processor Tray 5,1 2010 2012 2.4ghz 8 core

$79.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Dell Optiplex 5060 SFF 8th Gen Core i7 3.2GHZ 16GB 512GB Win 11 Pro picture

Dell Optiplex 5060 SFF 8th Gen Core i7 3.2GHZ 16GB 512GB Win 11 Pro

$249.00



Lenovo Loq 15Irh8 15

Lenovo Loq 15Irh8 15" Laptop Core i5-13420H GeForce RTX 2050 16GB 512GB SSD W11H

$499.99