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
-
11:30
Tech With Tim
1 year ago $0.01 earnedBuilding A Machine Learning Resume Project From Scratch
2713 -
LIVE
The Jimmy Dore Show
1 hour agoGaza Ceasefire Is ON — But Will It Hold? Trump CONSIDERING Ghislaine Maxwell Pardon! w/ Ian Carroll
4,569 watching -
LIVE
Stephen Gardner
34 minutes ago🔥Trump's 2 HUGE wins the media REFUSES to report!
512 watching -
LIVE
Dr Disrespect
8 hours ago🔴LIVE - DR DISRESPECT - BATTLEFIELD 6 - THE WAR BEGINS | BF6 LAUNCH DAY
1,952 watching -
LIVE
Nerdrotic
2 hours agoTron: Ovaries! | Peacemaker GUNNS Down DCU | Hollywood Death Spiral | Friday Night Tights 375
1,552 watching -
LIVE
LFA TV
18 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/10/25
1,188 watching -
1:09:03
vivafrei
4 hours agoCriminals Are Getting Nervous! Democrats Can't Give Trump Credit! AND MORE!
72.4K27 -
12:56
Dr. Nick Zyrowski
8 days agoFasting Is THE Cure: No Food For 2 Days Is The Perfect Fast! (Here’s Why)
6.3K5 -
LIVE
Badlands Media
17 hours agoMAHA News [10.10]: Cannabis Reform, Kennedy Exposes "Vaccines Saved Lives", An Inconvenient Study
486 watching -
1:51:23
The Quartering
5 hours agoTrump Snub Backfires, Matt Walsh Sounds The Alarm, Candace Owens Theory On Charlie Kirk
104K47