Flutter and Mysql connection (mysql1 package)

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

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

  • @subrotoxing8214
    @subrotoxing8214 2 года назад +36

    finally ... a mysql flutter tutorial that does not involve PHP... thank you...

  • @jazzcorptechnology4163
    @jazzcorptechnology4163 2 года назад +7

    Thanks for everything but i have a problem. I can't connect to any database, when i try then i get Socket Exception error.
    SocketException (SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 46200)
    What can i do? Thanks

  • @divyamanickam-k1i
    @divyamanickam-k1i Год назад +3

    i tried this code but i got an error like Socket Exception error.
    SocketException (SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 46300)

  • @benerler
    @benerler 3 года назад +2

    How to do insert? SELECT FROM works but INSERT INTO doesn't work in any way. Tried for 3 days.

  • @WaleedLatif-w8z
    @WaleedLatif-w8z Год назад +2

    i get an error Unhandled Exception: SocketException: The remote computer refused the network connection.
    (OS Error: The remote computer refused the network connection.

  • @husniddintogizov7324
    @husniddintogizov7324 3 года назад +3

    StateError (Bad state: Cannot write to socket, it is closed)
    How can I fix this?

    • @mayur16
      @mayur16 2 года назад

      I too have this issue ..can anybody solve it please..

  • @danilocarneirochristensen5892
    @danilocarneirochristensen5892 2 года назад +1

    I got this error -> [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (byteOffset): Invalid value: Not in inclusive range 0..5: 7; Can u help me?

  • @edgarpolanco7831
    @edgarpolanco7831 3 месяца назад

    Hi when I try to connect the Data Base vía web can’t get access

  • @alangonzalez91
    @alangonzalez91 3 месяца назад

    You can't see anything, how do you think of uploading in 720p with such small letters?

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

    Any solution about the error : Unhandled Exception: SocketException: Connection timed out ?

  • @mehmetcaneraslan4684
    @mehmetcaneraslan4684 Год назад +1

    Thank you Master, God bless you

  • @cloudwhite9185
    @cloudwhite9185 3 года назад

    This does not work
    Unhandled Exception: TimeoutException after 0:00:30.000000: Future not completed

  • @poujhit
    @poujhit 4 года назад +1

    I am using another device as a test, and it is connected via adb. but when i connect, i get unhandled exception, connection timeout and connection not allowed.. what to do?

    • @DavidMartin-eh5vf
      @DavidMartin-eh5vf 4 года назад +1

      i have the same issue

    • @chind0na
      @chind0na 3 года назад +1

      I think the host on the emulator has to be 10.0.2.2 .
      If you're testing from a real phone then allow mysql in your firewall exceptions.

  • @anuradhaga
    @anuradhaga 3 года назад +2

    I am getting this error what should I do?
    [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 44022

  • @mracipayam
    @mracipayam 3 года назад +2

    Thank you, i was struggling with this so much.

  • @emmanueltartallini7688
    @emmanueltartallini7688 3 года назад

    hi, from the virtual device its ok for me. But when i generate the build and install the app, doesn't work. Any suggest?

  • @kitlim9672
    @kitlim9672 4 года назад +3

    hi, im using my own mobile Android device to test my application. is there any way for it to connect to the database? so far it throws a "Connection Refused" error if the hostname is "localhost" and a "Connection timed out" if I change the hostname to "10.0.2.2"
    great vid btw! :)

  • @vishnukailas2339
    @vishnukailas2339 4 года назад +1

    Unhandled Exception: SocketException: Failed host lookup: '127.0.0.1' (OS Error: No address associated with hostname, errno = 7)...Please help me to solve this issue

    • @jesushedo2439
      @jesushedo2439  4 года назад

      It seems you should set up MySQL connections settings and put the right parametters on Flutter app

    • @vishnukailas2339
      @vishnukailas2339 4 года назад

      @@jesushedo2439 I think everything is perfect. But still got the same error

    • @vishnukailas2339
      @vishnukailas2339 4 года назад +2

      [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 48836

    • @poujhit
      @poujhit 4 года назад

      @@vishnukailas2339 same here too, any solutions you found?

    • @jairg_v
      @jairg_v 4 года назад

      same here

  • @Rakibulhasan-xh7df
    @Rakibulhasan-xh7df Год назад

    Exception has occurred.
    SocketException (SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 57206)
    give me this error.
    how to solve this error.

    • @K21-335TalhaShahid
      @K21-335TalhaShahid Год назад

      hello bro did your problem solved? if solved then please guide me I am also facing the same problem :(

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

    why you don't update this code it is not working bro :(

  • @richardchan8900
    @richardchan8900 3 года назад

    why the return result is always empty?

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

    I got Error: Unsupported operation: RawSocket constructor

  • @arjendevoz
    @arjendevoz 4 года назад +2

    Can you do a tutorial with siging up in flutter using mysql1?

    • @jesushedo2439
      @jesushedo2439  4 года назад

      Maybe you're looking for this: ruclips.net/video/EioJdY510hM/видео.html

  • @dddxnxn5362
    @dddxnxn5362 4 года назад

    Can you retrieve data select * from table data list? please help me

  • @AneeshKumarUSA
    @AneeshKumarUSA 3 года назад

    Is there audio in the video?

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

    Thanks. Are the same instructions in android and ios?

  • @haberinvarsa
    @haberinvarsa 3 года назад

    Hello firebase? Or mysql ? :(

  • @JaysonFlores-d1p
    @JaysonFlores-d1p Год назад +2

    I followed this tutorial and even copied the source files and this doesn't work on the latest version of flutter

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

      got error Error: Unsupported operation: RawSocket constructor

  • @ericc2326
    @ericc2326 2 года назад

    IT WORKS! THANK YOU VERY MUCH!!!

  • @chind0na
    @chind0na 3 года назад

    How can we get the app to save local user database in sync ?

    • @jesushedo2439
      @jesushedo2439  3 года назад

      To make sync an async function must use "then()" method, example: getConnection().then((conn)=>{ /* TODO HERE */ });

  • @osmyildiz
    @osmyildiz 4 года назад +1

    Hi thank you for this video. I have used godaddy remote mysql server. When I run app, I got "Unhandled Exception: Error 1045 (28000): Access denied for user 'username'@'91.71.181.111' (using password: YES)" error.. If I give permit to IP address on cpanel then everything is OK. But when I build release apk and run on my phone and click button nothing appears. Do you know how can I handle this stiuation?

    • @jesushedo2439
      @jesushedo2439  4 года назад

      if your MySQL Server just exposes the ports on the computer, your phone device won't see them, because it should be connected to your computer knowing the IP Address and using the MySQL port. Try MySQL Server to listen out and not to localhost only.

    • @tahsinemretelli
      @tahsinemretelli 3 года назад

      Osman bey problemi çözebildiniz mi? Aynı sorunu yaşıyorum eğer çözdüyseniz mail atabilir misiniz? tahsinemre1903@gmail.com

    • @osmyildiz
      @osmyildiz 2 года назад

      @@tahsinemretelli O sorunu çözemeyince api ile servera bağlanıp (Laravel framework) ordan verilerimi çekmeye başladım. Yani Flutter içinde mysql paketi kullanmıyorum.

  • @linomendes7248
    @linomendes7248 2 года назад

    Thank you. Sei que não vai entender mas obg. Estava quebrando a cabeça para achar a solução.

  • @husseinalmosawi2001
    @husseinalmosawi2001 4 года назад

    Sorry, but what does the 10th line of code do?

    • @jesushedo2439
      @jesushedo2439  3 года назад

      It's the constructor of the class Mysql

  • @officialismailshah
    @officialismailshah 3 года назад

    thanks for this video, I am struggling with this package very much
    I am trying to connect to the dedicated server it would be nice you give me some way out....

  • @AmitKumar-px4iq
    @AmitKumar-px4iq 2 года назад

    sir isme jo mysql me create kia hai apne wo bhi pls bta dijie kaise kaise hoga

  • @softdev8229
    @softdev8229 2 года назад

    Is it possible to save image

  • @vlycie6628
    @vlycie6628 4 года назад

    will you do a favorites list with provider package and sqflite db? new subscriber here

  • @gilmcglory3748
    @gilmcglory3748 4 года назад +1

    Thanks so much for this video. Can you please provide the code? It is very hard to see all of the code on the screen. Are you planning to do more? I hope so.

    • @jesushedo2439
      @jesushedo2439  4 года назад +5

      For sure! I will push on github. Sorry for the font size, it's my first video 🤣

    • @gilmcglory3748
      @gilmcglory3748 4 года назад +1

      Got it thanks Jesus.

  • @ksreenivas3933
    @ksreenivas3933 4 года назад

    please make more videos on it

  • @Unapersona37438w
    @Unapersona37438w 2 года назад

    ATTENTION WEB!!! is not supported USING this Packages so this it is worthless and expose credential for those starting like me better go to the other tutorial using API to get data from MYSQL from Flutter

  • @medimad-eddineboucenda2250
    @medimad-eddineboucenda2250 2 года назад

    Thank you !

  • @dahmanedh2036
    @dahmanedh2036 4 года назад

    Good job

  • @emersonuyghur007
    @emersonuyghur007 3 года назад

    Awesome 😎

  • @MrNatucha09
    @MrNatucha09 2 года назад

    Thanks!!!

  • @TechnoSoft.developer
    @TechnoSoft.developer 10 месяцев назад +1

    هل ممكن ان تتواصل معي لاحل هذه المشكلة وانا ادعمك ما تريد ..
    لاني تابعت الفيديو الخاص بك ولم يتم الاتصال بالسيرفر ولا حتى قاعدة البيانات 😢

  • @TechnoSoft.developer
    @TechnoSoft.developer 10 месяцев назад +1

    ضروري جدا اخي الكريم؟؟