Back Student Management System with MySQL using Python | Part -3

50-60
Created By: Coding Lifestyle 4u
Published At: 2022-07-28
Search Query: Python MySQL Create Database,Python MySQL Create Table,Python MySQL Delete,Python MySQL Drop Table,Python MySQL Get Started,Python MySQL Order By,Python MySQL Select,Python MySQL Update,Python MySQL Update,Python MySQL Where
Tags: coding lifestyle 4u student management system student management system in python employee management system in python student management system project in python student management system using tkinter student database management system in python student management system using mysql
Student Management System with MySQL using Python | Part -3, where you will learn how to connect python code to the MySQL database step by step from scratch.

This project contains essential functions: adding students, updating students, viewing students, searching students, removing the student, and exporting students' data in an excel file.

If you have any doubts let me know in the comments section.

Get the source code and images:
https://faizan-er.myinstamojo.com/product/53265/student-management-system-with-mysql-ca1a8/

Get the images:
https://drive.google.com/drive/folders/1ox0wcIywZmJic7sqmkxa6gXjq4vsJ_0K?usp=sharing

Watch how to download and install MySQL -
https://www.youtube.com/watch?v=6xs6-eegIHA

Watch Student Management System Part 1 -
https://www.youtube.com/watch?v=FoAXWjkWvrM

Watch Student Management System Part 2 -
https://www.youtube.com/watch?v=RemVc1u-jVU

Time Stamp:
(00:00:00) Intro
(00:00:41) In This Video
(00:01:14) Creating Toplevel Window
(00:13:23) MySQL Introduction
(00:20:13) Installing pymysql
(00:22:15) Establishing Connection
(00:30:39) Creating Database
(00:46:50) Enabling Buttons
(00:50:10) Ending

Terms related to this video:
student management system
student management system in python
employee management system in python
student management system project in python
student management system using tkinter
student database management system in python
student management system using mysql

Tags:
#codinglifestyle4u #studentmanagementsystem
#pythonguiproject #tkinterproject #pythonproject

β˜…β˜…β˜… Subscribe β˜…β˜…β˜…
https://www.youtube.com/channel/UCG6ztZE3zK2aZeJZKnvohkg

β˜…β˜…β˜… Follow β˜…β˜…β˜…
https://www.instagram.com/coding_lifestyle_4u/

For Business Contact: codinglyfstyle@gmail.com

Stay tuned for upcoming projects πŸ™‚
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@mauricioreguete466
2023-03-06

Success...

@codinglifestyle4u

Great congratulations πŸ‘

VidTutorAssistant (GPT-4)

Hi @mauricioreguete466, thanks for your comment! Seems like you've successfully followed through with the video, that's great! If you have any questions around any further processes or you're encountering difficulties with any steps, please do let me know. Stay tuned for more exciting and informative Python tutorials. Happy Coding!


@EktaGupta-zn1ch
2023-05-28

Sir I have completed till connect to database part but when Im entering the login credentials the hostname username etc. Its showing error. Which kogin credentials shld i use the one of sql or the one which is used to login the database? Can u pls help with it sir

@codinglifestyle4u

You have to use the username and password which you have set while installing mysql, for example my username is 'root' and password is '1234' and hostname will be 'localhost' only.

VidTutorAssistant (GPT-4)

Hello @EktaGupta-zn1ch, it seems you're doing a great job following along with the tutorial. For the login credentials while connecting to the database, you need to use the credentials for your MySQL server, not the ones used for logging into the Student Management System. This would be the username and password you set up when you installed MySQL on your PC. So, the hostname is usually 'localhost' if the database is on your computer, the username is the one you set during MySQL installation (often 'root'), and the password is also set during MySQL installation. Don't forget to have your MySQL server running when trying to connect. If you're still facing issues, please share the error message you're getting so I can help you troubleshoot further! Happy Coding!


@flytomoon2209
2023-06-11

Why i can’t add more than 10 digits in Id section and phone number section?

@codinglifestyle4u

Because of the type you have defined for id and number while creating the table columns, you can modify that

VidTutorAssistant (GPT-4)

Hi @flytomoon2209, that's a great question! The limitation is due to the data type assigned to these fields in our code. For the ID field and phone number field, we've chosen 'integer' data type. And generally, in most systems, the maximum allowable integer number is up to 10 digits long. Therefore, if you try to add more than 10 digits, it may return an error.

But don’t worry, if you have IDs or phone numbers that are longer than 10 digits, you can easily change the data type to something like a string (VARCHAR) that can hold more characters. Just remember to reflect this when you insert and retrieve information from the database. And make the necessary changes when validating the input and formatting for display.

I hope this answers your question. Keep exploring the world of Python with me! Let me know if you have any more questions.


@hanzalahirfan5621
2023-06-18

In Right Frame heading columns that are Id, name , mobile no. etc width is too much even only one column is shown in the screen at a time, we need to scroll right to see 2nd column and then next. So How to fix it please tell me.

@codinglifestyle4u

# Create a Treeview widget
tree = ttk.Treeview(root) # Define the columns
tree["columns"] = ("Name", "Age", "City")
# Set the column width tree.column("#0", width=100)
# First column (the tree column) tree.column("Name", width=150) tree.column("Age", width=100) tree.column("City", width=200)

VidTutorAssistant (GPT-4)

Hi @hanzalahirfan5621, interesting observation! It appears that you may need to adjust the column widths within the tree view. The tree view columns width , or any other GUI element size in this case, is designed according to the initial requirements and screen resolution. However, you can modify it according to your needs. Use the column method of the treeview like this:
`treeview.column("#0", width=100)`, where '#0' is the column identifier and 'width' is the attribute you want to change.

You can also set the minwidth, stretch, and anchor attributes too. Remember to replace 100 with the width you actually want. Repeat this for all the columns you want to adjust. Hope this helps, and continue happy coding!


@waqasnaqvi502
2023-04-11

Great! Thumbs up!

@codinglifestyle4u

Thanks

VidTutorAssistant (GPT-4)

Hey @waqasnaqvi502, thanks for the thumbs up! Always great to receive positive feedback. If you have any questions or if there's a specific topic you'd love to see on the channel, don't hesitate to share. Happy coding!