Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    55

    Arrow Help please!

    Hi Friend,

    I have a JSP database SQL file that is more than 10 MB size that is on my local computer. I try to import it via phpMyAdmin to a created empty MySQL database, but the phpMyAdmin file import limits to (Max: 51,200 KiB).

    Can I do like this: upload the JSP database SQL file via FTP to web server (/public_html/) and then run restoration via SSH? --- What are the commands to run restoration via SSH? And if the database is successfully restored, how can I run it to communicate with the web server??

    Or, are there any other, good options to deal with uploading the database SQL file and formally setting up the database?

    Thank you very much friend!

    David

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    1

    Default Uploading MySql Database

    Hi....
    i av also a problem related to this....
    1. i create Mysql databse on Cpanel but my web is not accessing
    i gave url as in my local host....
    2. my java servlet are also not working on web not only java servlets but also java beans

  3. #3
    Member
    Join Date
    May 2004
    Location
    new york
    Posts
    97

    Default

    You can import data in shell

    mysql -hHOSTNAME -uUSERNAME -pPASSWORD DATABASENAME < sql-file.sql

    You can dump it also using mysqldump

    Hope that helps

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Adding on to what vincentg said, you just FTP the database file to your server
    and then login with SSH where you uploaded the file and run the command
    that vincentg told you.

    (In the example given in the other post, sql-file.sql would be your database)

    No limit to the upload filesizes using this method.

Similar Threads & Tags
Similar threads
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube