How to Create a Database, Add Tables and Import Data in MySQL Workbench

  Рет қаралды 628,014

Matt Macarty

Matt Macarty

Күн бұрын

Пікірлер: 377
@markward8483
@markward8483 3 жыл бұрын
Thanks Matt, great tutorial easy to follow. All what I needed to learn for my course! Love KZbin, just keeps giving!
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@Bella_Noches_
@Bella_Noches_ Жыл бұрын
WOW! This video is absolutely awesome! Never had such clear instructions on using the MySQL workbench and you helped me avoid a headache for my homework assignment. Your instructions worked like a charm!!
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@ashleybattiata8912
@ashleybattiata8912 Жыл бұрын
I feel like I've learned more in this video than all semester. You rock!
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@oyewoleayorinde7864
@oyewoleayorinde7864 Жыл бұрын
This is one of the best tutorials on this subject matter. Thanks so much
@MattMacarty
@MattMacarty Жыл бұрын
Thank you. Glad it helped
@simonadong4512
@simonadong4512 3 жыл бұрын
This is SUPER HELPFUL thank you!! I glanced through so many articles which all made no sense to me...but this video is so on point
@MattMacarty
@MattMacarty 3 жыл бұрын
Thank you. Glad it helped
@kothon1
@kothon1 3 жыл бұрын
Dude, your tutorial is just so simple to understand. Thank you!!!
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped!
@rriimt1556
@rriimt1556 2 жыл бұрын
Excellent tutorial to learn database....thankyou very much sir..
@MattMacarty
@MattMacarty 2 жыл бұрын
Thanks. Glad it helped
@mariaalejandraperpinanbarr3535
@mariaalejandraperpinanbarr3535 3 жыл бұрын
Thaaanks! One of the best tutorials I've seen
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks very much. Glad it helped.
@derelictmanchester8745
@derelictmanchester8745 2 жыл бұрын
Thanks, Matt, really clear and concise..
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@benlall215
@benlall215 2 жыл бұрын
This was extremely helpful. Thank you! All the other videos say its for beginners and then fail to explain the most rudimentary steps... Thank you!
@MattMacarty
@MattMacarty 2 жыл бұрын
Thank you. Glad it helped.
@mikaeluhl
@mikaeluhl 3 жыл бұрын
Thanks! i had to import a csv that my teacher made and i was struggling with the 'date' situation.. his file had the year coming last and i was using date :P when you explained that years in date should come first you gave me the answer i couldn't find after hours of search
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped!
@nitinkymar9468
@nitinkymar9468 2 жыл бұрын
One of the best tutorial on mysql. Thank you very much!!
@MattMacarty
@MattMacarty 2 жыл бұрын
Thank you. Glad it helped.
@banjoomotola8583
@banjoomotola8583 3 жыл бұрын
This was so useful to my learning. So happy I found this. Great job!
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it was helpful!
@felipecruz3061
@felipecruz3061 Жыл бұрын
I am so glad i found this video... amazing. Thank you buddy
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@lebom8076
@lebom8076 3 ай бұрын
The only video that helped me. Because of that, i subscribed🎉
@MattMacarty
@MattMacarty 3 ай бұрын
Thanks. Glad it helped
@Skjoldr16
@Skjoldr16 Жыл бұрын
Hi Matt, thanks so much for the clear and beginner-friendly tutorial, this definitely helped me a lot.
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@the9263
@the9263 2 жыл бұрын
This is amazing. I'm following here with my laptop haha
@MattMacarty
@MattMacarty 2 жыл бұрын
Nice. Glad it helped
@emekaukwuoma3359
@emekaukwuoma3359 3 жыл бұрын
Thanks Matt, this was super explanatory. I can create a database table thanks to you.
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped!
@unnatirai_07
@unnatirai_07 3 ай бұрын
Amazing explanation and hat's off to your efforts. Thanks
@MattMacarty
@MattMacarty 2 ай бұрын
Thank you. Glad it helped
@Cebuanoontwowheels
@Cebuanoontwowheels 2 жыл бұрын
Felt like i was listening to vin Diesel. Thank you dude!!
@MattMacarty
@MattMacarty 2 жыл бұрын
LOL. Someone else said the same thing. Glad it helped.
@maverickpeck6012
@maverickpeck6012 3 жыл бұрын
This is extremely helpful, just doing an intro database design class and this video helped me a ton!
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks. Glad it helped.
@Cpeters0
@Cpeters0 2 жыл бұрын
Very easy to follow and understand... 2 thumbs up!!
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@waxtin48
@waxtin48 2 жыл бұрын
This is exactly what I needed thanks a million
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@adrijesus1981
@adrijesus1981 3 жыл бұрын
Oh God, you have a database called "Frodo"! Cool :-D
@MattMacarty
@MattMacarty 3 жыл бұрын
Yes it's not my server, but yes a friend for sure.
@ayanchakraborty76
@ayanchakraborty76 Жыл бұрын
Samwise was not wise 😂
@lesliee.4525
@lesliee.4525 2 жыл бұрын
I'm getting an error that says "unhandled exception 'charmap' codec can't decode byte 0x9d in position 2155: character maps to " do u know how I could fix this?
@MattMacarty
@MattMacarty 2 жыл бұрын
This sounds like there are some characters in your data that MySql can't deal with. Try opening the data file in a simple text editor to see if you can find and remove any odd looking characters. They should be pretty obvious.
@lesliee.4525
@lesliee.4525 2 жыл бұрын
@@MattMacarty ok thanks
@ThuHuongHaThi
@ThuHuongHaThi 3 жыл бұрын
Thanks a lot, I have been in trouble with it for so long
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@greenblue980
@greenblue980 7 ай бұрын
thanks alot! i forgot about that lightning thing 😂
@MattMacarty
@MattMacarty 7 ай бұрын
Glad it helped
@mannahidruhidru812
@mannahidruhidru812 3 жыл бұрын
thank you so much you are just amazing, perfect explanation
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@lugonzales8980
@lugonzales8980 2 жыл бұрын
Thank you for making this easy!
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@nutsaboutnuts927
@nutsaboutnuts927 2 жыл бұрын
Hi, at about 11.30 in the video, if I try to update using the str-to-text function, I get an error message 1411 incorrect datetime value. The csv file I'm using looks just the same as the one in this demo video (the date format). Any idea what's going wrong? (me = complete newbie!) Thanks
@MattMacarty
@MattMacarty 2 жыл бұрын
Really hard to diagnose remotely. Can you try to alter the table to see if that works? ALTER [table name] MODIFY [data column] date; if this works you can skip the str_to_date( ) since the data is now defined as a date.
@nutsaboutnuts927
@nutsaboutnuts927 2 жыл бұрын
@@MattMacarty Thanks so much for replying. In fact what I did was to change the column header in the csv file, previously it was called 'date' so I changed it to something else and then the str-to-date worked. In the table it still has the Datatype as text though - is that right?
@MattMacarty
@MattMacarty 2 жыл бұрын
@@nutsaboutnuts927 Yes. To change the data type you run the ALTER table command from my previous response.
@jonlbs7
@jonlbs7 3 жыл бұрын
Best tutorial I've seen .. Thank you !! ✨✨👍😊
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks very much. Glad it helped.
@BellTollsForThee
@BellTollsForThee 2 жыл бұрын
This tutorial is amazing! Thank you a bunch! I loved the explanation of issues with data types!
@MattMacarty
@MattMacarty 2 жыл бұрын
Thank you. Glad it helped.
@brisikog
@brisikog 3 жыл бұрын
i am facing this problem while importing data unhandled exception :list index out of range and data is not importing please help me with this if u can???
@MattMacarty
@MattMacarty 3 жыл бұрын
It sounds like the data you are trying to import may have to be cleaned. Probably some kind of invalid data. Try opening the file with a text editor. Usually Workbench will tell you what line in the data the problem happens at.
@cesarl.c.847
@cesarl.c.847 3 жыл бұрын
Hi Bhuvan, after view great video, to review LoaderDataPlus tool. This tool import flat files and export to MYSQL, MARIADB sintax and other DMBS, also parsing and detect data type.
@brisikog
@brisikog 3 жыл бұрын
Thanks both of you there was some problem with the data ....I solved it... thanks again
@charleskp947
@charleskp947 3 жыл бұрын
thanks so much.... your voice is awesome too... should be voice over artist
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks for the compliment. I am glad it helped.
@lukewilliams4758
@lukewilliams4758 3 жыл бұрын
thanks for teaching us what you know I can finally make my website
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@pavitras6058
@pavitras6058 2 жыл бұрын
Do u have video on how install n setup MySQL pls share me and I need it on 6.3ce workbench
@MattMacarty
@MattMacarty 2 жыл бұрын
I have a document if you email me I will send it to you. Tell me if you are using MAC or Windows
@BabaYAGA_OW
@BabaYAGA_OW Жыл бұрын
Thanks man! Really good tutorial
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@browngift3408
@browngift3408 2 жыл бұрын
You are a life saver Matt. Thanks so much
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@keithlamontdavis8047
@keithlamontdavis8047 Жыл бұрын
Well done. Very useful and very clearly explained. Newly subbed!
@MattMacarty
@MattMacarty Жыл бұрын
Thank you. Glad it helped
@reeseverschelde758
@reeseverschelde758 2 жыл бұрын
Incredibly helpful video, thank you.
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@jonlbs7
@jonlbs7 3 жыл бұрын
When trying to update the date I got the following: 12:37:14 UPDATE amazon_csv SET t_date = str_to_date(t_date, "%m/%d/%Y") Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. I'm having more problems with the date than you can possibly imagine.
@MattMacarty
@MattMacarty 3 жыл бұрын
Ok, yes the date can be a pain. If this don't absolutely need it to be a date type you can probably just leave as a text. My guess is the dates are in a different format then you have specified. With your str to date function.
@jayshree144
@jayshree144 3 жыл бұрын
very helpful in importing an excel file. thankyou
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@devconnie
@devconnie Жыл бұрын
Matt, tks for your reply and tried to download the file. However, the data file did not open and link with the database, and maybe I was doing something wrong. If you put a video about downloading and linking the data that would be great. tks.
@MattMacarty
@MattMacarty Жыл бұрын
OK. You have a couple of options here. You can download the files as a .zip and then extract them or you can clone the github repository. Let me see if I can get a tutorial together.
@tiagoaicapital
@tiagoaicapital 2 жыл бұрын
Hi Matt, how could we upload csv files using an sql script to upload instead of doing need manually?
@MattMacarty
@MattMacarty 2 жыл бұрын
This tends to be problematic due to security settings in MySQL. You are looking for LOAD DATA INFILE [filename]. Here's a link to the documentation: dev.mysql.com/doc/refman/8.0/en/load-data.html
@tiagoaicapital
@tiagoaicapital 2 жыл бұрын
@@MattMacarty Thank you for the feedback
@samratkundu2799
@samratkundu2799 Жыл бұрын
What should I do with the large data having more than 20K rows with messy/NULL values..? I may not know if the data type has really maintained to the entire row or not (and not possible to check entire dataset manually).. It's getting very tough to import the data successfully to MySQL table. The Import Data Wizard is really slow in this task. Is there any other way to this more efficiently whithout loosing anything ? please let me know.. I'm unable to complete my portfolio projects 😥
@MattMacarty
@MattMacarty Жыл бұрын
You can try the import as a generic data type like text. Workbench is very slow with larger datasets. You may wan to try something like TablePlus
@jayanthim2039
@jayanthim2039 3 жыл бұрын
Nice explaination, and very understandable... Thank you bro..
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@azimshikalgar69
@azimshikalgar69 2 жыл бұрын
Hello, How to install DVD rental database in MySQL as it's in postgreSQL
@MattMacarty
@MattMacarty 2 жыл бұрын
It's probably not directly compatible. Even though most of the query language is the same, these two products diverge in database implementation. I would do a search to see if someone has created a MySQL version. I am not familiar with that databse, but it sounds suspiciously similar to Sakila in MySQL
@adekunleshokunbi9541
@adekunleshokunbi9541 Жыл бұрын
Thank you Matt for this comprehensive video. I still have issues on trying to set up my workbench and server😢 How can I go about this?
@MattMacarty
@MattMacarty Жыл бұрын
Which version of MySQL are you trying to install? Windows or MAC?
@lyjunsay2852
@lyjunsay2852 3 жыл бұрын
you sound like the guy from Khan Academy. Great job on this! Very helpful tutorial!
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks. Glad it helped.
@crystella1450
@crystella1450 3 жыл бұрын
That's true , he sounds like Sal khan
@sagetimmy6310
@sagetimmy6310 9 ай бұрын
Well explained ❤
@MattMacarty
@MattMacarty 9 ай бұрын
Glad it helped
@LalitSoni-s2f
@LalitSoni-s2f 2 ай бұрын
sir what if we use d/m/y date format instead of m/d/y ..will it work ?
@MattMacarty
@MattMacarty 2 ай бұрын
The goal should be to get dates into ISO format for sorting. Yes you can use %d/%m/%Y to import European format
@alazart3383
@alazart3383 3 жыл бұрын
i have an error and i ve been trying to solve for hours please help me when i want to import i get an error called ascii codec cant decode byte 0xef in position 0: ordinaş not in range (128). and i use mysql workbench 8.0.24
@MattMacarty
@MattMacarty 3 жыл бұрын
If you are importing data into a pre-designed table you might have defined the first column as a tiny int which will only accept values up to 128. You can alter your table or try to import the data into a new table. You may also have are some characters in your data that you can't see. Try opening the data with a plain text editor and see if you can find it.
@alazart3383
@alazart3383 3 жыл бұрын
@@MattMacarty i solved thankssss ❤️❤️
@devconnie
@devconnie Жыл бұрын
Hi Matt, tks for the great video. However, how to download the data file and upload
@MattMacarty
@MattMacarty Жыл бұрын
Here is a link to all the MySQL files: github.com/mjmacarty/mysql
@dwest889
@dwest889 2 жыл бұрын
Excellent tutorial
@MattMacarty
@MattMacarty 2 жыл бұрын
Thanks. Glad it helped.
@nayaroni
@nayaroni 2 жыл бұрын
Thank you for this tutorial!!!
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@nayaroni
@nayaroni 2 жыл бұрын
@@MattMacarty can you do a video on Stored Procedures? I am struggling with it:/
@maheshdravidar3694
@maheshdravidar3694 Жыл бұрын
Hi Matt, First of all thanks for brilliant videos. I am loving it. Now to the question, i am trying to import the file to change the date format but while loading the through import wizard, its loading zero data. I am following all your steps mentioned from 11:50, please advise what am i missing.
@MattMacarty
@MattMacarty Жыл бұрын
So you mean the date is in some format other than ISO? I would try to import the date column as text and then convert it in MySQL to see if that works better.
@ultrawhiff
@ultrawhiff 3 жыл бұрын
What is the version of your SQL workbench?
@MattMacarty
@MattMacarty 3 жыл бұрын
This was done with Windows version 8.0.21
@ultrawhiff
@ultrawhiff 3 жыл бұрын
@@MattMacarty thank you sir.
@casperj4784
@casperj4784 3 жыл бұрын
Thank you very much for this video. I'll have a look at your others, but I'd be interested to know how to import data that needs to be separated into different tables.
@MattMacarty
@MattMacarty 3 жыл бұрын
There are a couple of options. You could import it all at once and then separate into tables or just import one on by one and add relationships when you have imported everything.
@SamandarImamaliyev
@SamandarImamaliyev Жыл бұрын
which version of MySQL do you use in the video?
@MattMacarty
@MattMacarty Жыл бұрын
It's MySQL "8"
@SamandarImamaliyev
@SamandarImamaliyev Жыл бұрын
@@MattMacarty i am using MySQL 8.0.32, foreign key is not working properly for int values. which version of 8 are you using i want to download that one so i' ll check if it works properly or not
@MattMacarty
@MattMacarty Жыл бұрын
That video was probably 29 or 30. To implement a foreign key both data types have to be the same. So maybe you are trying to relate INT and something else? Or if you already have data in the tables you may be violating referential integrity.
@joseraphaelmarquez8189
@joseraphaelmarquez8189 Жыл бұрын
Hello! I just want to ask if it is possible to hide the unwanted database or can I just create new file/project to makd it look more organized? Thank you in advance!! 😊
@MattMacarty
@MattMacarty Жыл бұрын
The Workbench is really sort of a development environment for interacting with your databases. I don't think you can hid what you dont want to see unless you just close the schema pane. There are other tools you can try like Tables Plus that may do more of what you are looking for
@ic_nivad7767
@ic_nivad7767 Жыл бұрын
Hi Matt, thanks for the video! I have a question: why did my import (9 MB .csv) take so long to finish? 30 minutes passed, and it is still going. Would you happen to have any comments on this? Thanks for the time.
@MattMacarty
@MattMacarty Жыл бұрын
Workbench can be pretty slow importing data. There could be a problem with the data too. I would install TablePlus and try the import there. TablePlus is a client that can handle large imports much more quickly, and if there is a problem with data you will see that very quickly.
@ic_nivad7767
@ic_nivad7767 Жыл бұрын
thank you for your time @@MattMacarty
@abdulazizamen8286
@abdulazizamen8286 3 жыл бұрын
can you help me, how to read a list of values from a table and put them in a variable in CSV format
@MattMacarty
@MattMacarty 3 жыл бұрын
After you run your query, at the top of the results grid there is a button to export. That is probably the easiest way to do it.
@abdulazizamen8286
@abdulazizamen8286 3 жыл бұрын
@@MattMacarty Thank you
@OluwaseunOgunmade
@OluwaseunOgunmade 2 жыл бұрын
Hi, how do I insert integers with a comma delimiter. E.g 10,000 for salary column? When creating a table for the column that fields salary record, what will be the data type?
@MattMacarty
@MattMacarty 2 жыл бұрын
Hi if you put a comma in the data type becomes string. You can query the data and output with comma separator using the format function
@OluwaseunOgunmade
@OluwaseunOgunmade 2 жыл бұрын
@@MattMacarty Thank you
@OluwaseunOgunmade
@OluwaseunOgunmade 2 жыл бұрын
Hi, I'm trying to insert a date into a table and I'm getting 'Incorrect date value: '12/01/2020' for column 'OrderDate'. What am I doing wrong?
@nanthacharee1114
@nanthacharee1114 2 жыл бұрын
What is double and why we have insert the text 'double'? is it because we have to repeat above and why we are not giving char for other columns and only gave for 1st column
@MattMacarty
@MattMacarty 2 жыл бұрын
Double is the data type specification. This is a general numeric type with decimals. There are other numeric types , but double is a pretty good choice for most numeric data that many have decimals.
@sareenasanil4053
@sareenasanil4053 3 жыл бұрын
Can you tell how to treat the blank cells while importing from excel to mysql workbench. I want them to be null and converting datatype from text to int .
@MattMacarty
@MattMacarty 3 жыл бұрын
You probably have to do the manipulation after you import. If values are blank they should automatically come in as Null
@dillirajvicky4423
@dillirajvicky4423 Жыл бұрын
Sir, In my MySQL workbench in tables not showing (tables data import wizard) Kindly what version u are using tell me sir
@MattMacarty
@MattMacarty Жыл бұрын
It think it is around 8.29, but that is not why you are having trouble. Can you give a little more detail?
@joycewang7373
@joycewang7373 3 жыл бұрын
Thank you Matt, the vedio did help me to learn mysql as a beginner. Could you please advise if you have more vedio of mysql on KZbin? I would like to study mysql with your further vedioes. Looking forward to more vedioes
@MattMacarty
@MattMacarty 3 жыл бұрын
Hi I have a few videos for beginners: kzbin.info/aero/PLiPFKCVZWHKq3RvwDxosNm5Ny7cHyfc4o
@joycewang7373
@joycewang7373 3 жыл бұрын
@@MattMacarty Thank you very much!
@diazjubairy1729
@diazjubairy1729 3 жыл бұрын
could you make tutorial about how to make ER Diagram from excel files to mysql worbench ?
@MattMacarty
@MattMacarty 3 жыл бұрын
Sure. I will try to get to this soon.
@diazjubairy1729
@diazjubairy1729 3 жыл бұрын
@@MattMacarty thank you sir
@jimmywheeler3601
@jimmywheeler3601 3 жыл бұрын
Thanks Matt, I'm running into an issue in which the import wizard is taking a very long time. I'm using the owid covid data which comes out to around 33 MB. Is something wrong that it has been 10 minutes and the progress bar is still at 0? I had tried using the 'LOAD DATA INFILE...' command but kept ending at error 1290 and go stuck on 'secure_file_priv'. Is there a better way to get this data into MySQL? Thank you again
@MattMacarty
@MattMacarty 3 жыл бұрын
With a typical installation's security settings, it's nearly impossible to use LOAD data. In Workbench can take a very long time, but it is likely that there is something in your data set that MySQL is getting hung up on. Try taking a look at the data in a txt editor and see if there are any hidden characters that may be causing the problem.
@jimmywheeler3601
@jimmywheeler3601 3 жыл бұрын
@@MattMacarty Thank you for the insight! I've made an attempt to split the data in half in R, change all my data types to text to avoid type errors. It's running now and I have yet to run into any errors in the message log but am not holding my breath. I've got 125K entries with 65 columns, could the upload go any smoother if I were to chop the main data set into 15 column chunks that I can join back together later?
@oluwafemihunsu6200
@oluwafemihunsu6200 Жыл бұрын
Jimmy what do you mean by spliting it into half
@rajandevkota8839
@rajandevkota8839 3 жыл бұрын
I am not seeing action output on my Mysql workbench. Any solution?
@MattMacarty
@MattMacarty 3 жыл бұрын
Sounds like either the panel has been hidden or you are not connected to the server.
@delirium6313
@delirium6313 2 жыл бұрын
I keep getting: Error Code: 1411. Incorrect datetime value: '2019-05-30' for function str_to_date, when trying to update the TradeDate to the correct format. any work around to this
@latenightorgandonor
@latenightorgandonor 2 жыл бұрын
@Delirium same
@MattMacarty
@MattMacarty 2 жыл бұрын
I think maybe you have transposed the month and day in your code. Should be %Y-%m-%d
@abdifatahmoh
@abdifatahmoh 2 жыл бұрын
@Delirium Same here.
@45_dzikrimufidtsaqif33
@45_dzikrimufidtsaqif33 Жыл бұрын
Let me ask, how do we know the latest data that appears from the data that we have imported without importing it again, I mean if we change the data then the new table will also be replaced automatically, how can we do that sir? thank you Sir
@MattMacarty
@MattMacarty Жыл бұрын
You can either manually import or write a script in something like Python to automate this.
@SINNER460
@SINNER460 2 жыл бұрын
OMG .. Perfect ...well explained. You really helped me. Thank you.
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped!
@grannah2050
@grannah2050 Жыл бұрын
Very helpful, thank you
@MattMacarty
@MattMacarty 11 ай бұрын
Glad it helped
@seankarkhanis4319
@seankarkhanis4319 2 жыл бұрын
every time I try to import data, I get the same error that says, "Unhandled exception: 'ascii' codec can't decode byte 0xe9 in position 71: ordinal not in range(128) Check the log for more details." Is there anything I can do to fix this issue? Thanks
@MattMacarty
@MattMacarty 2 жыл бұрын
Hi. This means there is a problem with the data you are trying to import. You will need to open the file and try the to find the problem. Or it could be a problem with the data definition. Did you try to define something as a TINYINT?
@seankarkhanis4319
@seankarkhanis4319 2 жыл бұрын
@@MattMacarty Hi I fixed the problem! Turns out my string data needed to be in quotes so I had to get it into google sheets and change some of the columns for where the strings are in quotes. Is there a way to fix the settings in mySQL workbench so that the strings don't need quotes? Thank You!
@Divyansh3527
@Divyansh3527 2 жыл бұрын
Matt please help I can not import time column it shows incorrect decimal value
@MattMacarty
@MattMacarty 2 жыл бұрын
I will need a little more to go on. What does sample data look like? What are you trying to do?
@rajeshakkineni5127
@rajeshakkineni5127 3 жыл бұрын
Bro i dont have run option in sql... Its disabled in my sql.. how can i run the my program
@MattMacarty
@MattMacarty 3 жыл бұрын
You may have some security on your machine that is preventing you from running scripts.
@aparise1
@aparise1 3 жыл бұрын
Great video! Is it possible to import more than 1000 rows with the wizard? Does creating the DB manually allow for more?
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks. Yes you can import much larger files it just may be a little slow. The limit on output can also be changed to allow more or less results to display in your result set.
@zhiqiangzheng5985
@zhiqiangzheng5985 3 жыл бұрын
Thank you, it helps a lot
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@jalalsubari2040
@jalalsubari2040 Жыл бұрын
how did you create the data.cvs ?
@MattMacarty
@MattMacarty Жыл бұрын
I have a script I wrote in Python. I have a series on stock analysis with Python. This video starts in the middle, of the series but you can see how to get and transform data here: kzbin.info/www/bejne/hamaoomim7OMhKc
@Nanoo-zi4fg
@Nanoo-zi4fg 2 жыл бұрын
When loading the data.csv file, I get an error "Unhandled exception: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)". The file is saved as UTF-8 .csv file but mysql will not load it. I google searched the error message and there are lots of others experiencing the same but no solution.
@MattMacarty
@MattMacarty 2 жыл бұрын
Try opening the file with a plain text editor such as notepad++. Look for the character and delete it. You won't see it in Excel. You can try saving the file out in plain .csv after opening with notepad++ as that may fix the problem.
@maximillianus5453
@maximillianus5453 2 жыл бұрын
The navigator (schema) was not found to me ! What is problem
@MattMacarty
@MattMacarty 2 жыл бұрын
Try the refresh button (if I understand you correctly)
@daniel3897
@daniel3897 3 жыл бұрын
Great tutorial. Thanks a lot Matt!!
@MattMacarty
@MattMacarty 3 жыл бұрын
Than kyou. Glad it helped.
@christv0811
@christv0811 Жыл бұрын
Nice this is so clear
@MattMacarty
@MattMacarty Жыл бұрын
Thank you. Glad it helped
@moshekhan5548
@moshekhan5548 2 жыл бұрын
Greetings Matt I have done everything as per your video. The data, despite of "being uploaded successfully in the quantity of 258 rows", still does not appear in my TABLE stocks. Any comment or advice. People around, please, fell free to provide with advice. Thanks
@MattMacarty
@MattMacarty 2 жыл бұрын
Did you import it into a table named data? Try running show tables;
@moshekhan5548
@moshekhan5548 2 жыл бұрын
Greetings Matt. Thanks for your response. I have tried the stocks TABLE table as your video, then, the second method with data TABLE. In boths the MYSQL tells me that "258 records imported". I know that this is a kind service from your side. I think that it is related to the data formating or the "silent" way of MYSQL to not process/show the data uploaded. What I did, was to write the query including the 258 rows, for me to have the visual of the dat and to proceed with the rest of your video-guidance, however, I would like to succeeed on doing it with the wizard. Would be so kind to provide me with the data you have used in your uploading?. I took the data from your link, and it appears to be something related to the data format. Or perhaps something else.
@raxn2673
@raxn2673 Жыл бұрын
Where do these database files save themselves (these schemas)?
@MattMacarty
@MattMacarty Жыл бұрын
they are in a folder in your home directory AppData\Roaming
@Cosmic.Perspective
@Cosmic.Perspective 2 жыл бұрын
Sir, how can I and a friend with a separate workbench to write queries into one database and build it together from two locations?
@MattMacarty
@MattMacarty 2 жыл бұрын
For that you need a public MySQL server. You can make your server public, but probably safer to have your friend use RDP and then login to Workbench. If you need a public server there are free options that you can administrate, something like bit.io/
@Cosmic.Perspective
@Cosmic.Perspective 2 жыл бұрын
@@MattMacarty you are awesome Matt! Thank you for the quick response and instructions!! Happy Thanksgiving
@bsbteck
@bsbteck Жыл бұрын
Greate Job Sir
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@cocobob9291
@cocobob9291 2 жыл бұрын
What should I do? It keeps saying 0 record imported
@MattMacarty
@MattMacarty 2 жыл бұрын
it sounds like there is a problem with the data you are trying to iport. Usually this is a data type problem.
@cocobob9291
@cocobob9291 2 жыл бұрын
@@MattMacarty thanks for the info, but it already worked and I don’t know how it happened.
@augustusprime0_o
@augustusprime0_o 2 жыл бұрын
great tutorial, thanks!
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped
@colinz7234
@colinz7234 4 жыл бұрын
hi, thanks for sharing this tutorial. But I encounter an issue when I importing the database. I lost some database after upload but there are no error shows. Do you know how to fix it?
@MattMacarty
@MattMacarty 4 жыл бұрын
Hi, I will need a bit more to go on. What database are you trying to upload?
@colinz7234
@colinz7234 4 жыл бұрын
@@MattMacarty hi, thank you for replying. I’m using a database called “Biden NY state all contributions”
@AlToor7
@AlToor7 3 жыл бұрын
I am trying to load 15K records from a .csv file to MySql and its taking for ever, file is sitting on the same machine. any idea?
@MattMacarty
@MattMacarty 3 жыл бұрын
Sounds like the import is hanging somewhere. Could mean the data needs to be cleaned. Try opening the file with a text editor (not Excel) and see if you can identify any strange characters. It's too bad it's not throwing an error since then it will tell you where the problem is. Try a nice clean restart of your machine too.
@yousufjamal291
@yousufjamal291 2 жыл бұрын
Sir what is the difference between char and vachar...where we can use char /vachar?
@MattMacarty
@MattMacarty 2 жыл бұрын
Char days is a fixed size while varchar can vary up to the limit set. Varchar cannot be used for the primary key column. This is the only restriction I am aware of.
@laughlive6840
@laughlive6840 3 жыл бұрын
I can't able to get the data in the table after following all the procedures and executing the query , would you please tell me the solution for that and why that happens?
@MattMacarty
@MattMacarty 3 жыл бұрын
This usually means there is a problem with either the data itself, or the way you have defined your table in Workbench. You might visually inspect the data in a text editor to see if there are any special characters. You could try importing into a new table and let Workbench determine the data types as an alternative.
@teaspells9994
@teaspells9994 3 жыл бұрын
Hello, how am I able to connect this database to a website?
@MattMacarty
@MattMacarty 3 жыл бұрын
That is a fairly complex and involved process. You will need a server side programming language to interact and serve data from a database. People commonly use PHP to develop data driven websites.
@Bakemono10
@Bakemono10 Жыл бұрын
Life Saver tutorial!!!
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@ajeetdubey1308
@ajeetdubey1308 3 жыл бұрын
Really so helpful ❤️
@MattMacarty
@MattMacarty 3 жыл бұрын
Thanks. Glad it helped
@joeryder5739
@joeryder5739 6 күн бұрын
Thank you Matt.
@MattMacarty
@MattMacarty 5 күн бұрын
Glad it helped
@hoormallick879
@hoormallick879 3 жыл бұрын
Amazing it helped alott💓
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@marcelojunior4301
@marcelojunior4301 3 жыл бұрын
Thank you so much for this!
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped.
MySQL Workbench Tutorial
17:49
Database Star
Рет қаралды 141 М.
MySQL: How to create a TABLE
8:10
Bro Code
Рет қаралды 315 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
How to IMPORT Excel file (CSV) to MySQL Workbench.
5:04
Edcelle John Gulfan
Рет қаралды 319 М.
Installing MySQL and Creating Databases | MySQL for Beginners
12:04
Alex The Analyst
Рет қаралды 684 М.
I loaded 100,000,000 rows into MySQL (fast)
18:27
PlanetScale
Рет қаралды 180 М.
Все JOIN в SQL Для Начинающих За 15 Минут
15:48
SQL Create Table and Insert Data - A Complete Tutorial
15:36
The SQL Guy
Рет қаралды 243 М.
Joins in MySQL | Intermediate MySQL
17:11
Alex The Analyst
Рет қаралды 168 М.
SQL Tutorial for Beginners
44:57
Kevin Stratvert
Рет қаралды 2,2 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН