DEV Community

Discussion on: How to get data from an MySQL database in React Native

 
saulojoab profile image
Saulo Joab

Is your MySQL database working fine on the localhost? I really can't see the problem...

Thread Thread
 
saadazghour profile image
Azghour-Saad

Finally,
Problem solved !!

i have added these lines :

Alt text of image

and MySQL port of my Database: Alt text of image

then it's pop up another problem these: (ER_NOT_SUPPORTED_AUTH_MODE)
then it solved with just executing this command:

alter user 'root'@'localhost' identified with mysql_native_password by 'password'

inside Query file, finally all is well.

source :

stackoverflow.com/questions/449462...

Thread Thread
 
saulojoab profile image
Saulo Joab

That's awesome! I'm glad it worked out! Sorry I couldn't help you, that never happened to me...

Thread Thread
 
saadazghour profile image
Azghour-Saad

No problem, thank you a lot .