简体   繁体   中英

How to Importing the large size(10GB) data in one table in mysql database using SSH?

I have more then 10 GB data in the one table. I want to upload the 10 GB data in only single table. Is this possible to upload the 10 GB data using the SSH ? If no then how many maximum data upload in one time in one table using the SSH.

Please...

Thank You.

upload the database file to your server and import it via the mysql command

eg

mysql -h HOSTNAME -u USERNAME -p DATABASENAME < file.sql

and enter the password when promoted

where...

HOSTNAME = localhost/127.0.0.1/etc...
USERNAME = DB User
DATABASENAME = name of the database you are importing into

You can see the another solutions For BLUE HOST SERVER

Using SSH to import your MySQL database

The file must be in .sql format. It can not be compressed in a .zip or .tar.gz file.

  1. Upload the SQL file to the server.
  2. If the database does not exist please create one with an user. Note the username and password.
  3. Log into the server through SSH
  4. Navigate to the directory where your .sql file is.

Type this this command:

mysql -p -u username database_name < file.sql 

OR

https://my.bluehost.com/cgi/help/162

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM