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
-
12:49
Tech With Tim
2 years ago $0.01 earnedMust-Try Coding Automation Projects - That are Actually Useful…
164 -
LIVE
Game On!
12 hours agoChiefs Dynasty OVER, New Longest FG RECORD, and Patriots Are Winning The Super Bowl!
439 watching -
LIVE
The Bubba Army
2 days agoIS AMERICA OVER TRUMP? - Bubba the Love Sponge® Show | 11/03/25
2,526 watching -
48:57
Man in America
16 hours agoThe Sinister Reason They Put Fluoride in Everything w/ Larry Oberheu
343K88 -
1:06:56
Sarah Westall
14 hours agoAstrological Predictions, Epstein & Charlie Kirk w/ Kim Iversen
91.6K64 -
2:06:49
vivafrei
23 hours agoEp. 289: Arctic Frost, Boasberg Impeachment, SNAP Funding, Trump - China, Tylenol Sued & MORE!
275K202 -
2:56:28
IsaiahLCarter
18 hours ago $11.30 earnedThe Tri-State Commission, Election Weekend Edition || APOSTATE RADIO 033 (Guest: Adam B. Coleman)
45.7K7 -
15:03
Demons Row
13 hours ago $13.21 earnedThings Real 1%ers Never Do! 💀🏍️
61.7K22 -
35:27
megimu32
16 hours agoMEGI + PEPPY LIVE FROM DREAMHACK!
181K15 -
1:03:23
Tactical Advisor
20 hours agoNew Gun Unboxing | Vault Room Live Stream 044
272K41