I made a python program here and i wanted to send the code to my friend and he was unable to add values through the program to my database, is there a way i can allow his access
This is happening because you are running MySQL locally on your computer (as given by your use of 127.0.0.1
). In other words, you have a process/program (MySQL) running in the background of only your computer. For your friend to have access to this database, you will need to either of two things:
127.0.0.1
, you would connect to a mysql://website.com:33060/path/to/your/database
Method 2 is the easiest. You can use free services online to create a MySQL server that you and your friend can access.