Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    7

    Default mysql databse upload via cpanel

    Hi,
    I have developed a database on my local machine in mySQL. I have webhosting with cpanel. Is there any way of copying my database from my local machine to my host via cpanel or do I have to write individual sql statements?

    Thanks,
    ez

  2. #2
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default Re: mysql databse upload via cpanel

    Originally posted by ezryder
    Hi,
    I have developed a database on my local machine in mySQL. I have webhosting with cpanel. Is there any way of copying my database from my local machine to my host via cpanel or do I have to write individual sql statements?

    Thanks,
    ez
    What table type are you using InnoDB, MYSIAM,..etc ??

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  3. #3
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    You can use phpmyadmin to upload a dump, or basically import a text file with all the commands to rebuild the database. As long as your not using MS sql server it should be fine, as MS Sql adds a few extra commands in there that are not ANSI compliant.
    Enom ETP - If you need a reseller account (or retail) contact me!

  4. #4
    Member
    Join Date
    Apr 2004
    Posts
    7

    Default

    I have searched for how to create a dump but I can't find a tutorial. Do you know where there is one I can use please? - (OK I found how to make a dump in windows) for reference:

    open a dos command prompt

    change directory to mysql\bin (depending on where mysql is located)

    Type this:

    mysqldump.exe --user=accountname --password=password name of database >path to backup to/filename

    Mickalo - How do I find out the table type? is this the table type on my local machine or the server?

    Thanks
    Last edited by ezryder; 05-01-2004 at 04:49 AM.

  5. #5
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    I believe the table type is on your local machine, where your server is running no?

    Anyways, if you have a dump it should be enough to import it into phpmyadmin via cpanel. That "should" recreate an exact duplicate of your db onto the new server.
    Enom ETP - If you need a reseller account (or retail) contact me!

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    7

    Default

    I couldn't find it on my local machine, but I have managed to recreate my database on my server with the dump. Thanks!

  7. #7
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    np bud, thats why we are here
    Enom ETP - If you need a reseller account (or retail) contact me!

Similar Threads & Tags
Similar threads

  1. to create a table in mysql databse
    By dinudany in forum Database Discussions
    Replies: 1
    Last Post: 10-08-2009, 02:06 PM
  2. Databse restore problem
    By ullalla in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-18-2008, 07:57 AM
  3. Help in backing up my databse using cron job
    By WSS1428 in forum Data Protection
    Replies: 2
    Last Post: 01-19-2008, 07:32 AM
  4. Upload picture to cPanel PHP/MySql
    By milams in forum Database Discussions
    Replies: 4
    Last Post: 01-04-2007, 10:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube