- Joined
- Apr 24, 2016
- Messages
- 424
- Points
- 18
I have a large MySQL database file, around 1GB of data, I want to split into multi files and importing them into a database in my hosting. is It possible? is there a tool/way to do this task?
Cool guide I have not use this way before, I heard of MySQLDumper tool but I will try your way, I prefer using commands.Hi Mujkanovic
Yes, you can do his. Are you trying to restore backups to phpmyadmin ?
Use the linux split command
split -l 5000 mysqldump.sql dbpart
The split command takes a file and breaks it into multiple files. The -l 5000 part tells it to split the file every five thousand lines.
Next is the path to your file, and the next part is the path you want to save the output to.
Once complete you will have a bunch of files called dbpart_ each containing 5000 database entries.
Files will be saved as whatever filename you specify (e.g. dbpart_) with an alphabetical letter appended.
What file extension will I get after splitting the main file? dbpart_a.sql?Files will be saved as whatever filename you specify (e.g. dbpart_) with an alphabetical letter appended.
If you want to split your Mysql database into small files you can use SQLDumpSplitterI have a large MySQL database file, around 1GB of data, I want to split into multi files and importing them into a database in my hosting. is It possible? is there a tool/way to do this task?
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!