Premium Only Content

How to Host a MySQL Server on Linux
In this video I will be showing how to host a MySQL server on a linux server. This involves downloading and installing MySQL on the linux server and configuring it so that it can be connected to remotely. In the last parts of the video I will demonstrate how to connect to the server from python code.
Thanks to linode for sponsoring this video! Take advantage of a free $20 credit towards a linode with the code "TWT19".
https://linode.com/techwithtim
Download Putty: https://www.putty.org
Playlist: https://www.youtube.com/watch?v=3vsC05rxZ8c&list=PLzMcBGfZo4-l5kVSNVKGO60V6RkXAVtp-
Process and Linux Commands
Once you have logged into the linux server run the following:
sudo apt-get install mysql-server
sudo mysql_secure_installation utility
sudo ufw enable # allows remote access
sudo ufw allow mysql
sudo systemctl start mysql
sudo systemctl enable mysql
cd to /etc/mysql/mysql.conf.d/mysqld.cnf
change bind to 0.0.0.0
sudo systemctl restart mysql # restart mysql
Now obtain your PUBLIC IPV4 Address from the machine you want to connect with.
mysql -u root -p
create database Test
Get ip address
GRANT ALL ON fooDatabase.* TO fooUser@'PUBLIC IPV4 ADDRESS' IDENTIFIED BY 'some password'
Then you can connect to the linux servers ip address as the host attribute for the MySQL connection. Use the username you set in the last command and the password.
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
https://tech-with-tim.teachable.com/p...
📸 Instagram: https://www.instagram.com/tech_with_tim
🌎 Website https://techwithtim.net
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/pr2k55t
📝 LinkedIn: https://www.linkedin.com/in/tim-rusci...
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
💵 One-Time Donations: https://www.paypal.com/donate/?token=...
💰 Patreon: https://www.patreon.com/techwithtim
◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
Tags:
- Tech With Tim
- Python Tutorials
- MySQL Tutorial
- How to host a MySQL server on linux
- Host mysql server on linux
- Linux install mysql
- Remote connection to mysql
#Python #MySQL #MySQLLinuxServer
-
7:54
Tech With Tim
1 year ago $0.01 earnedThese 7 Coding Skills Give You an UNFAIR Advantage
283 -
2:17:11
FreshandFit
9 hours agoMiami Street Debate
41.4K42 -
4:09:01
Parallel 8 Media
5 hours agoFriday Night Huddle - Ep 8
49.6K9 -
2:04:46
TimcastIRL
8 hours agoFBI Releases TRANS Shooter MANIFESTO Exposing Anti-Christian HATE | Timcast IRL
248K117 -
1:12:03
Man in America
13 hours ago🚨 They're SPRAYING Us Like Insects—And Now They're Targeting Our Kids
48K27 -
2:12:01
I_Came_With_Fire_Podcast
10 hours agoA Brave New Vice: Numb the Conscience, Call it Progress
30.7K6 -
4:14:29
SynthTrax & DJ Cheezus Livestreams
1 day agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream Feel The Waves Edition
32.3K1 -
2:09:19
Side Scrollers Podcast
8 hours agoNerd Duel Tournament of Champions! Who Will Win?!
59.4K5 -
8:53:50
SpartakusLIVE
9 hours agoNEW Easter Egg, SPECIALIST || Duos w/ @GloryJean followed by quads later!
60.4K1 -
1:40:06
Glenn Greenwald
9 hours agoAaron Maté and Special Guests on the U.S. Role in Ukraine, Gaza's Future & More | SYSTEM UPDATE #462
162K109