XAMPP phpMyAdmin: Importing of Large SQL files to database

Поделиться
HTML-код
  • Опубликовано: 7 сен 2015
  • phpMyAdmin Error: "You probably tried to upload a file that is too large. Please refer to documentation for a workaround for this limit."
    Here's a simple tutorial of importing large sql files to your phpMyAdmin database.
    Summary:
    1. Modify the my.ini of the mysql module from the XAMPP Control Panel. The only thing to modify from the my.ini file is the buffer size. Change 8M to whatever value that you want for as long as it is more than the file size that you are trying to import. Then save the changes.
    2. Restart the MySQL module from the XAMPP Control Panel to enable the changes that you made.
    3. Open Command Prompt.
    4. Change your directory to where the bin folder of the mysql module of your XAMPP is located. e.g. "C:\xampp\mysql\bin"
    5.In your command prompt, type in "mysql -u username -p database [less_than_symbol] sql.file"
    *Make sure you are using the less-than symbol to import. Using greater-than symbol will export files. Make sure the database is already created*
    6. Provide username's password
    7. Press enter and wait for a couple of seconds to minutes. It takes longer when file size is huge.
    8. Verify the database if the files are imported.
    Thank you for watching this video tutorial.
    Don't forget to drop comments, hit like, and subscribe to this RUclips Channel :D
    Credits to Reev Music for the background music.
    • Kygo feat. Conrad Fire...

Комментарии • 211

  • @MargaretSavoy
    @MargaretSavoy 5 лет назад +1

    I know you did this years ago, but still very useful. It worked. Thank you!

  • @gavinwright1366
    @gavinwright1366 8 лет назад +1

    I've come back and watched this video probably 5 times since I started my new job. Thanks again

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      I'm so glad to hear about that! Good luck and cheers!

  • @gotaminutereviews
    @gotaminutereviews 4 года назад

    I always forget this command. So glad for this video still being here. Thanks!

  • @dandebiase4189
    @dandebiase4189 8 лет назад +5

    Absolutely great video! Thank you so much Cebuana, you ROCK :)

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Dan DeBiase thank you so much! ^_^

    • @ayoubmafyozi9712
      @ayoubmafyozi9712 8 лет назад

      Excuse me , but How can l know my password for mysql when it ask me to? sorry

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      @cryinranked, if you haven't created any users with passwords yet, there are no passwords for the default user called 'root'. What you will do is add a new user with your desired password first. Here's a tutorial for creating a new user ruclips.net/video/JDuJ5F5SYyY/видео.html

    • @ayoubmafyozi9712
      @ayoubmafyozi9712 8 лет назад

      Geeky Cebuana Thanks it's working , you are awesome , i liked and suscribed

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад +1

      +cryinranked that's great! thank you for the support! ^_^

  • @DJDevilOriginal
    @DJDevilOriginal 5 лет назад

    You have a nice voice, and your tutorial was easy to follow thank you.

  • @MattBreckenridge
    @MattBreckenridge 8 лет назад

    You saved my bacon. GREAT VIDEO! Thanks so much for taking the time to make it.

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      glad I could help :) you're welcome!

  • @jiyasama1501
    @jiyasama1501 7 лет назад

    More power to your tutorials .. this helped me a lot .. ほんとうにありがとうござました!。。「Thank u very much」

  • @diegoramos3782
    @diegoramos3782 7 лет назад

    Thank you for this video! You helped me a lot!

  • @webexperto
    @webexperto 5 лет назад

    Thank you! Very clear and concise

  • @dariorfh
    @dariorfh 5 лет назад

    Awesome, this video helpful me greatly...thank you!!

  • @vedmed85
    @vedmed85 8 лет назад +1

    Thank you! this video helped me a lot!

  • @criscamgel
    @criscamgel 7 лет назад +1

    I was able to upload my 1.1 GB database to Xampp, thanks for the tutorial.

  • @lorenzogarcia7883
    @lorenzogarcia7883 6 лет назад

    what attribute of my.ini needs to change if i want to save 64MB of BLOB inside a column?

  • @melwinpinto6366
    @melwinpinto6366 8 лет назад +1

    Its a nice one, I was worried but it git me,, bulls eye, thanks for posting

  • @reviewn8806
    @reviewn8806 3 года назад

    Thanks, u so much. It is very Helpful.

  • @shanmichaelreyes6255
    @shanmichaelreyes6255 8 лет назад +2

    thank you thank you for this ma'am its very helpful for programmer beginners love you :)

  • @tornqvistjim
    @tornqvistjim 8 лет назад +1

    Thank you so much, this helped me a lot! :)

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Glad to hear that! You're welcome! :D

  • @ZulfiqarAadil
    @ZulfiqarAadil 3 года назад

    Thanks a lot it work I ahve about 215MB of online sql database and I successfully import in my loacl Xampp Server with help of your describe procedure. Thanks

  • @rezaamya6444
    @rezaamya6444 2 года назад

    It was really nice!
    Thank you :)

  • @zzane
    @zzane 8 лет назад +1

    Helped me so so so much. thanks a million!

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Zane Christenson Thank you for watching too! ^_^

  • @informationwowiase5349
    @informationwowiase5349 2 года назад

    Thanks done in a simple and understanding method

  • @cyancoyote7366
    @cyancoyote7366 6 лет назад

    You deserve a like! Thanks!

  • @cricketlive3527
    @cricketlive3527 6 лет назад

    Thank you very very much you are seriously a life saver 1000000 likes(y)

  • @marten4975
    @marten4975 6 лет назад

    This should work, however when I do this, it states that mysql could not be recognise mysql as a task, program or batchfile etc.
    \mysql -u root -p ag-ni-ex-2.0 < ag-ni-ex-2.3.0.sql

  • @padminishankar7610
    @padminishankar7610 7 лет назад +1

    it says access denied for user after entering the password. pls help

  •  8 лет назад +1

    thank you! so useful for me!

  • @wenwenz6424
    @wenwenz6424 6 лет назад

    I got an error message saying " Access denied for user ''@'localhost' to database '"

  • @dev24_co
    @dev24_co 2 года назад

    Thank You. Work for me.

  • @sandysailer
    @sandysailer 6 лет назад

    What happens if your installation of MySQL doesn't have a password? If I leave it blank, it fails.

  • @aneeshpv2626
    @aneeshpv2626 6 лет назад

    Great Video. Thank you so much !
    Please zoom the command prompt window, difficult to read the commands

  • @MrSexmon
    @MrSexmon 8 лет назад +1

    Thank! It's very useful.

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +วิทวัส วงศ์หาญกุล (Jappy) you're welcome! Good day!

  • @rikimarusaintpreux8448
    @rikimarusaintpreux8448 7 лет назад +1

    @Geeky Cebuana great tutorial tnx

  • @JanZitniak
    @JanZitniak 7 лет назад +1

    Thanks, it works!

  • @krizora
    @krizora 5 лет назад

    that was a good guide , thanks

  • @TheCamrow
    @TheCamrow 5 лет назад

    Thanks, you save my day :)

  • @anuragrao6728
    @anuragrao6728 7 лет назад

    please help me ,I am getting error in and 1045 , access denied for user

  • @forexspectrum4799
    @forexspectrum4799 Год назад

    thanks alot really helpful

  • @amarsawant8525
    @amarsawant8525 7 лет назад +1

    great video! Thank you so much..................................

  • @sharvanprajapati5161
    @sharvanprajapati5161 5 лет назад

    Very helpful thanks :)

  • @adgamer6730
    @adgamer6730 6 лет назад

    Just Perfect !!!!! Thanks !

  • @nurulainsyafawani9048
    @nurulainsyafawani9048 3 года назад

    hey, what if i forgot the password? what should I do ?

  • @inderjeetdas4210
    @inderjeetdas4210 6 лет назад

    Awesome..Great help

  • @mohammadhadirezaei5892
    @mohammadhadirezaei5892 7 лет назад

    that's good help, thank you :)

  • @waleedanjum
    @waleedanjum 7 лет назад +1

    Awesome.. it works

  • @anitaverma7194
    @anitaverma7194 Год назад

    How to run this command by php

  • @ragupathi2305
    @ragupathi2305 5 лет назад

    Thanks a lot Dude

  • @farhadjaman5580
    @farhadjaman5580 Год назад

    thank you it worked

  • @Yorisico
    @Yorisico 8 лет назад

    Wow.... best tutorial ever made. I want to give you many kisses. Thank you very much. Now I can use our old database for our game :)

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Yorisico You're welcome! Glad I could help and thank you too for your feedback! Cheers! :D

  • @gunvantsinhrathod9212
    @gunvantsinhrathod9212 5 лет назад

    Thank you sir

  • @prabhakarani7657
    @prabhakarani7657 5 лет назад

    Thank you so much Cebuana

  • @zmudilago
    @zmudilago 7 лет назад +1

    THANK YOU!

  • @whateverworld9081
    @whateverworld9081 6 лет назад

    Hello, i know this is late but how do u know your username? I'm kinda new to this whole xampp thing.
    Your help is much appreciated. Thnks.

  • @edgi55
    @edgi55 8 лет назад

    Hi there. Thanks for creating this very informative video. Quick question. Within CMD I keep getting errors for my password. I"ve even changed it and still getting errors. ERROR 1045 and ERROR 2003 . Just so strange because I've imported data on the host server using PHPMYADMIN without any issues. But just trying to run Xampp locally is so much problems.

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад +1

      +edgi55 Hi! I'm sorry for the late response. Please try restarting your Xampp, and try adding a new user to your phpMyAdmin then use that new user and password instead. Please let me know or email me at geekycebuana@gmail.com

    • @edgi55
      @edgi55 8 лет назад

      +Geeky Cebuana ok thanks for your advice will try and keep you posted

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      you're welcome! Please do comment it below when you solve it. Thanks :-)

  • @sadanandamchary7732
    @sadanandamchary7732 7 лет назад

    Thank you for the help

  • @sunnysun3605
    @sunnysun3605 Год назад

    can someone help as i do not know the password and how to get it

  • @tanaponkongjaroensuk2791
    @tanaponkongjaroensuk2791 5 лет назад

    Thank You a lot

  • @theyorganics
    @theyorganics 7 лет назад

    now I changed my password over phpmyadmin dashboard and when I enter my password in command line, it shows ERROR 1049 (42000): Unknown database 'sakila'.
    Sakila is the name of my database.

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      HAKAN YORGANCI Hi there! Did you create a database? That error shows up if the database doesn't exist. Please run this in your mysql command line "create database sakila" or create a database using the phpmyadmin. then do everything again in this tutorial video ^_^

  • @dahalrupesh
    @dahalrupesh 6 лет назад

    best tutorial ❤❤❤❤❤❤

  • @jovylouverzano
    @jovylouverzano 3 года назад

    what to do if i don't know my password? i haven't set any

  • @PuChaisirikul
    @PuChaisirikul 7 лет назад

    many thanks

  • @Black-Belt-Developers
    @Black-Belt-Developers 7 лет назад +1

    thanks man!

  • @hassanhassan-ox3tn
    @hassanhassan-ox3tn 5 лет назад

    Thank you . it worked

  • @bryandelacruz9066
    @bryandelacruz9066 5 лет назад

    what user and password do i need to type? thanks

  • @npasam
    @npasam 8 лет назад

    How long you waited to finish the 15MB import ? Mine is 10MB and its like 5 mins already i guess n still waiting :)

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Najeeb Puthiyallam I think it was about 5 mins. The larger the file is, the longer it will take. And it also depends on your processor. Hope everything is well now :)

  • @noamanmurudkar4364
    @noamanmurudkar4364 7 лет назад +1

    Like your Video....very useful

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      Noaman Murudkar glad that I can help!

  • @SyedHasnainRazaGillani
    @SyedHasnainRazaGillani 10 месяцев назад

    how to fix the problem
    ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)

  • @mgbc2568
    @mgbc2568 8 лет назад +3

    I like your voice...

  • @caeeptrrr4379
    @caeeptrrr4379 6 лет назад

    THANK YOU SO MUCH

  • @satheeshkanna7284
    @satheeshkanna7284 7 лет назад

    Hi,i dont give any password in my database. what i do the password column

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      If you haven't created any users/admins to your database, the default user name is root and there is no password. I advice you to create a user with admin rights so that you can import. Here's a tutorial on how to create a new user ruclips.net/video/JDuJ5F5SYyY/видео.html

  • @tanuj05
    @tanuj05 6 лет назад

    i am getting an error after entering the password. Kindly help

  • @Netherscorn
    @Netherscorn 8 лет назад

    What if the sql dump file I'm trying to import is 16GB? ...I've tried the usual Google trash suggestions and after 3 days the import had only progressed to about 20% or so.

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Hi! 16GB doesn't take days. It will just take hours as what I've experienced. Probably it hanged in the middle because it probably got interrupted in between the uploading of file(network problem). One work-a-round that I can suggest for much much bigger files is that put the file in the same folder as where the Big Dump file is. Then send the path to Big Dump.

    • @ayoubmafyozi9712
      @ayoubmafyozi9712 8 лет назад

      Hi again, sometimes when l try to import database it says ERROR 1049 (42000): Unknown database 'db'
      ( the name of my database is db.sql and l followed all the steps ):

    • @ayoubmafyozi9712
      @ayoubmafyozi9712 8 лет назад

      Never mind it is fixed, just i didn't had a database named test on phpmyadmin ! thanks for awesome tutorials will make ads to your channel

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Nice! You're welcome!

  • @mirieri1211
    @mirieri1211 6 лет назад

    That is great i love it

  • @faizansayyed5523
    @faizansayyed5523 5 лет назад

    thank you.

  • @ornaldonaqellari1254
    @ornaldonaqellari1254 7 лет назад

    Hello, i need some help: what password should i insert into the step of the cmd?

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      Hi there! Freshly installed doesn't have passwords so you need to create a user. Here's a tutorial I made on how to create a user ruclips.net/video/JDuJ5F5SYyY/видео.html

  • @mamadoukeita6267
    @mamadoukeita6267 6 лет назад

    Thank you so much

  • @afroel7902
    @afroel7902 7 лет назад +1

    life saver sis 1000 likes

  • @frankkruemmel-me
    @frankkruemmel-me 7 лет назад

    good job. thanks

  • @idrisajad7864
    @idrisajad7864 7 лет назад

    how do i know the passwd for the database

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      IDRIS AJAD hi there! Freshly installed doesn't have passwords so you need to create a user. Here's a tutorial I made on how to create a user ruclips.net/video/JDuJ5F5SYyY/видео.html

  • @cleanview8324
    @cleanview8324 6 лет назад

    Nice Video and nice voice

  • @Moggli
    @Moggli 7 лет назад

    Wow nice :D

  • @jamesparham1120
    @jamesparham1120 8 лет назад

    can it also apply to a 200GB of sql file?

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Hi James! Theoretically, you can apply a 200GB sql file and you should place the file inside the folder of where you put bigdump. It is not advisable to upload the file from your local to your remote site because there will be network issues and might cause lags(or it might hang) when you upload the file.

  • @malikamadene9496
    @malikamadene9496 6 лет назад

    in case thati don't have password what should i do ??

    • @akmmazedulhaque571
      @akmmazedulhaque571 6 лет назад

      if you don't have any password then keep it blank and enter

  • @DavidPolakYT
    @DavidPolakYT 7 лет назад

    "MY SEQUEL" oh god ... Thanks though, it helped me onm MY SEQUEL dump

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      Sir Hunningham Hi there! The reason why I said it that way is because it is easier for me. I got tongue twisted many times when I said es-que-el when I was recording this ^_^

  • @devniwijenayake52
    @devniwijenayake52 5 лет назад

    Thank you.

  • @EthGooner
    @EthGooner 6 лет назад

    great one

  • @cwcfunclock2709
    @cwcfunclock2709 8 месяцев назад

    What is the password you are typing in CMD?

  • @Chiragpanchal000
    @Chiragpanchal000 8 лет назад

    I followed all the instructions properly. No error in the cmd. But when I went back to phpmyadmin database is still empty. my file size(2,705 KB) is also very small. Help me!!! :(

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Hi! That's really weird... Have you tried it again? Have you checked the database name if you entered the correct one?

    • @Chiragpanchal000
      @Chiragpanchal000 8 лет назад

      I tried it more than 10 times but still same result.

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Chirag Panchal please take screenshots of every step and send it to geekucebuana@gmail.com and let's troubleshoot from there tomorrow

    • @Chiragpanchal000
      @Chiragpanchal000 8 лет назад

      I tried different solution and it's working.
      I changed this in php.ini
      post_max_size=500M
      upload_max_filesize=500M
      memory_limit=900M

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      Oh yeah! I've noted that at @01:38 that you can set it to whatever value that you want for as long as it is more than the file size that you are trying to import ^_^ That's great that you've solved it *thumbs up* Happy coding!

  • @johnmichaelandales5233
    @johnmichaelandales5233 6 лет назад

    salamat kaayo

  • @Knowledge_Cast
    @Knowledge_Cast 8 лет назад +1

    what about live domain other than localhost ??

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Spartan 300 that's a good question! It's going to be a bit of a challenge but I'll see what I can do and provide a tutorial in the future. I'll add it to the list of all the upcoming tutorials I will make. Thanks for the question!

    • @Knowledge_Cast
      @Knowledge_Cast 8 лет назад

      thanks will be waiting for it

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Spartan 300 I've created a tutorial on how to import large SQL file to a live domain. You can check it out here: ruclips.net/video/Riel5UNvJkY/видео.html

  • @martineliassadala5630
    @martineliassadala5630 7 лет назад

    helpufull

  • @keeya_
    @keeya_ 8 лет назад

    access denied for user 'user'@'localhost'

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Kimberly Billones Hi! That error showed up because the username or password were incorrect. You can add another user and provide a password, and try it again please :D

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +Kimberly Billones And please also make sure that the user has all the privileges to update,insert,alter, etc. the database

    • @keeya_
      @keeya_ 8 лет назад

      +Geeky Cebuana I've already added a new user. username: shin pword: test still gets the same error I've already checked all the privileges.

    • @keeya_
      @keeya_ 8 лет назад

      +Geeky Cebuana at line 80: duplicate entry '1' for key 'PRIMARY' new error. YOY?

    • @keeya_
      @keeya_ 8 лет назад +1

      +Geeky Cebuana hey! thanks I've already imported the database with the database name test haha! silly me didn't get it right but thanks :** life saver.

  • @clenisamaevergara8362
    @clenisamaevergara8362 8 лет назад

    Thank you :)

  • @anuragrao6728
    @anuragrao6728 7 лет назад

    sorry ,I still not able to do

  • @jamestangeres3519
    @jamestangeres3519 2 года назад

    It's working until now.

  • @kevindudeja291
    @kevindudeja291 7 лет назад +1

    Thaaaaannkkkssssssss!!!! (y)

  • @Pr0me7heus
    @Pr0me7heus 6 лет назад

    Instead click " Apache - Config " Pick " php.ini " in there find " post_max_size " and " upload_max_filesize" set size you need or you want. You are ready to upload!

  • @Kamal123ization
    @Kamal123ization 8 лет назад

    It is very helpful :) Thanks But background music was so loud

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      thanks for the feedback! I'll minimize the background music in the future :)

    • @Kamal123ization
      @Kamal123ization 8 лет назад

      :) Many Thanks :)

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад +1

      +Kamal Kant Maurya you're welcome! Happy coding ^_^

  • @kamutostuffs
    @kamutostuffs 7 лет назад +2

    Mam, paturo naman po kung paano mag upload ng sql file sa ubuntu server. Thanks

    • @GeekyCebuana
      @GeekyCebuana  7 лет назад

      Hi there! Please email me at geekycebuana@gmail.com. I'll help you from there :)

    • @kamutostuffs
      @kamutostuffs 7 лет назад

      Hello Mam. I've already resolved the issue. I did not use Phymyadmin to import a database file. I used webmin(web based gui for ubuntu server) as an alternative. Thank you 😊😊

  • @nispaaraprojectsg3730
    @nispaaraprojectsg3730 8 лет назад +1

    thanks

    • @GeekyCebuana
      @GeekyCebuana  8 лет назад

      +NispaaraProjects G you're welcome!

  • @zerogravity1119
    @zerogravity1119 8 лет назад

    Hi, great tutorials ^ ^
    i got little problem when i try to import .sql file in cmd i get this: Error 1064 (42000) You have an error in your SQL syntax: check the manual that corresponds to your MySQL server version... xD
    i did like this: mysql -u root -p test < filename.sql; and filename.sql is located in xamp/mysql/bin folder