Oh man i spent two hours+ trying to connect MySQL into Jupyter in my VS code studio IDE. I went through dozen of online articles, stack overflow, RUclips, ChatGPT, CodeWhisperer. But I found you with just a few line of codes I can connect my database and use magic SQL now. You're a G.
Thank you so much for making this video ❤. I've been trying to connect MySQL with Jupiter notebook from a very long time but I couldn't find proper video regarding this.
Atlast, found it after 5days. Thank you.
Now I have to make it as a dataframe with the help of pandas.
Happy Coding!
That's great to hear this sound. Keep learning 👍
Oh man i spent two hours+ trying to connect MySQL into Jupyter in my VS code studio IDE. I went through dozen of online articles, stack overflow, RUclips, ChatGPT, CodeWhisperer. But I found you with just a few line of codes I can connect my database and use magic SQL now. You're a G.
Thanks for your feedback
Thank you so much for making this video ❤. I've been trying to connect MySQL with Jupiter notebook from a very long time but I couldn't find proper video regarding this.
Thanks for your feedback. Join t.me/epythonlab for more to learn
Great video. Thanks a lot
Thanks for your feedback.🙏
You are a genius!
Thanks 👍
Thanks
You are welcome. Share it to your networks
Thank you for posting, QUESTION : How do you hide your password ? Surely you wouldn't want the password visible within the note book correct?
Ok. Good question. I will do hiding your password. Contact me telegram.me/asibehtenager
Sorry Mr, but how do we know our db_name ? because when I try to fix it, it still error? I have no idea why
Ask t.me/asibeh.tenager@gmail.com on Telegram.
no attached jupyter notebook?
You can ask notebook at t.me/epythonlab
# import必要包
from sqlalchemy import create_engine,Table,Column,Integer,String,MetaData,ForeignKey
# 创建连接引擎
engine = create_engine("mysql+pymysql://用户名:密码@主机名:端口号/数据库名",echo=True)
# 查询表数据
query = '''
SELECT * FROM Products
'''
df = pd.read_sql_query(query, engine)
df