Published on June 8, 2017 by CodeWithChris

In this video series, I’ll show you how to connect an iPhone app to MySQL. We’ll go through it step by step starting from the beginning.

You’ll learn how to:
– Sign up for web hosting
– Create a new MySQL database
– Set up a MySQL database user
– Set access permission for that user
– Create a PHP web service to access the data
– Create an iOS app with a tableview, multiple screens and a map
– Access the PHP web service via the app to download the data from your MySQL database.

This is a video version of the tutorial here:

The Best Way to Connect Your iOS App to MySQL Database (4 Steps)

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

Website: codewithchris.com

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 3, Xcode 8 and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (www.betterwithmusic.com/)

Leave a Reply

18 Comments on "How to Connect an iOS App to a MySQL Database (Step by Step) – Part 1"

Notify of
avatar

Gabo Mendoza
Guest
Gabo Mendoza
1 month 5 days ago

just what i need…Thanks a lot for this tutorials Chris !

CodeWithChris
Guest
CodeWithChris
1 month 2 days ago

+Gabo Mendoza glad you liked it!

Silicon Info
Guest
Silicon Info
1 month 7 days ago

Really Excellent Post. Ive been looking for a tutorial like this. Very easy to understand. Thanks for this video very helpful.

rgl168
Guest
rgl168
1 month 8 days ago

an other reason why MySQL is preferred: when writing internal apps in a corporate environment, there are restrictions where you can store the data. In these cases if you start storing corporate data on an external database (such as Firebase) you will most likely get "lectured" by the IT department.

Jesse Zamudio
Guest
Jesse Zamudio
1 month 10 days ago

hey chris, i was wondering if you make apps for people. i would like to hire you to make my app. please message me if interested. z

sanjib de
Guest
sanjib de
1 month 10 days ago

Can you help me out with one topic? i want to create a design like android app store, which have a collection view under tableview cell. i am implemented it with objective c. but my problem is that, all the collectionview show same data. i know, i use a self datasource and delegate method. but i can't implement it.I go throw all many of the documents, but all are using swift, but i want to objective-c. If u create that type of design using objective-c than i am thakfull to you. Waiting for ur rply

Rawkfist1501
Guest
Rawkfist1501
1 month 11 days ago

Hey Chris! Im not sure if you have any videos dealing in this.. But im stuck trying to figure out how to save an array to an app so when i close the app and open it back up the array will show up on my table. Is this going to be core data?

Rawkfist1501
Guest
Rawkfist1501
1 month 9 days ago

I was able to figure it out. I used Userdefaults which is apparently able to store things like user settings to the app as long as its installed.. soo yeah. If anyone else needed that info there you go. let defaults = UserDefaults.standard// in override functionlet array = defaults.object(forKey: "savedArray") as [string?]// in function where you save your array or whateverdefaults.set(self.userInput.text, forKey: "savedArray") defaults.synchronize()

tylp
Guest
tylp
1 month 12 days ago

Thank you! Ive been looking for a tutorial like this for 2 weeks and here comes ur video!

Robert Tillman
Guest
Robert Tillman
1 month 12 days ago

YES!! Please hurry with the vids haha

Ali Akkawi
Guest
Ali Akkawi
1 month 12 days ago

Hello sir, thanks for the interesting tutorials, are you gonna also cover how to transfer data from app to MySql, delete and update data? Thanks a lot.

Kerem
Guest
Kerem
1 month 12 days ago

Nice!!

wpDiscuz