How to Import a CSV in MySQL Workbench

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 24

  • @lautiackerman
    @lautiackerman 10 місяців тому

    Hola, tengo un archivo .CSV de 143MB. Va a tardar días en hacer el import, no? Lo dejé un rato y la barra de carga no se movió nada haha

    • @DatabaseStar
      @DatabaseStar  9 місяців тому

      Hi, you could use the text command which may be faster. It's called LOAD DATA INFILE. I'd suggest looking up a tutorial or article on how to use that.

  • @marystellamungai4405
    @marystellamungai4405 5 місяців тому +1

    Thanks alot,, you've solved my projects problem

  • @pissey1234
    @pissey1234 9 місяців тому

    Great way of teaching ! Love from India

  • @sophialawal7306
    @sophialawal7306 Рік тому +1

    Hello, thank you so much for the video, unfortunately I tried to import a csv file and i got this error "Unhandled exception: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)
    Check the log for more details." I will appreciate if you can give more insight, I have tried all the solutions on stack overflow but nothing seems to work

    • @sophialawal7306
      @sophialawal7306 Рік тому

      I am using a MAC OS

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Thanks! I'm guessing that error refers to a character in position 24 in your file that can't be read. I would suggest opening the file in a text editor such as Atom or VS Code to see what is in that position.

    • @sophialawal7306
      @sophialawal7306 Рік тому

      @@DatabaseStar Thank you so much for your reply

  • @Sajid10109
    @Sajid10109 11 місяців тому

    i have big csv file
    it is taking lot of time to import data
    do you have any other way to import big csv file in mysql workbench

    • @DatabaseStar
      @DatabaseStar  11 місяців тому

      There's a command in MySQL called Load Data which you could look into using. It may perform better for importing large CSV files.

  • @LotfyKozman
    @LotfyKozman Рік тому +1

    Is there's a way to auto sync between MYSQL and the csv file?

    • @DatabaseStar
      @DatabaseStar  Рік тому +2

      I'm not sure, there might be a way. Maybe a regular scheduled job could be set up to re-import the CSV every so often.

  • @ivanzq21
    @ivanzq21 Рік тому

    hello, I canons, I got this message:
    Unhandled exception: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)

    • @DatabaseStar
      @DatabaseStar  Рік тому +1

      I'm guessing there's a character that's being imported that MySQL Workbench doesn't like. Perhaps there's a way to change the character set in the import process, or when saving the file.

  • @OZTutoh
    @OZTutoh 24 дні тому

    I was really hoping you'd show how to do it in actual SQL code

    • @DatabaseStar
      @DatabaseStar  23 дні тому +1

      I can create another video on doing this using SQL code, or specifically the MySQL command to import a file.

  • @Jon4President
    @Jon4President Рік тому

    Thanks for the tutorial!

  • @amanygaber330
    @amanygaber330 10 місяців тому

    Thanks a lot

  • @victorray9369
    @victorray9369 Рік тому

    yet to see any update for postgres or mysql related section in your paid course

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Hi Victor, I add new courses about once every two months. I've just recently re-released the Introduction to SQL course which includes Postgres and MySQL, and I'm working on updating the course that comes after that. I've got a couple of other upcoming courses that include Postgres and MySQL as well.