Data Analysis with SQL : How to Connect to MySQL in Jupyter Notebook

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024

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

  • @Sovan_Whistling
    @Sovan_Whistling 9 месяцев назад

    Atlast, found it after 5days. Thank you.
    Now I have to make it as a dataframe with the help of pandas.
    Happy Coding!

    • @epythonlab
      @epythonlab  9 месяцев назад

      That's great to hear this sound. Keep learning 👍

  • @__Mako
    @__Mako Год назад +3

    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.

  • @ShivamSingh-nc8rq
    @ShivamSingh-nc8rq Год назад +1

    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.

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

      Thanks for your feedback. Join t.me/epythonlab for more to learn

  • @HamzahAbdulRahman
    @HamzahAbdulRahman 2 месяца назад

    Great video. Thanks a lot

    • @epythonlab
      @epythonlab  2 месяца назад

      Thanks for your feedback.🙏

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

    You are a genius!

  • @debasissahoo7559
    @debasissahoo7559 11 месяцев назад

    Thanks

    • @epythonlab
      @epythonlab  11 месяцев назад +1

      You are welcome. Share it to your networks

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

    Thank you for posting, QUESTION : How do you hide your password ? Surely you wouldn't want the password visible within the note book correct?

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

      Ok. Good question. I will do hiding your password. Contact me telegram.me/asibehtenager

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

    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

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

      Ask t.me/asibeh.tenager@gmail.com on Telegram.

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

    no attached jupyter notebook?

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

      You can ask notebook at t.me/epythonlab

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

    # 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