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
2042 -
1:08:47
Man in America
12 hours agoDr. Makis EXPOSES Big Pharma’s SICK Vaccine Scam—RFK Jr. Must Act NOW!
79.5K17 -
1:28:21
Glenn Greenwald
10 hours agoRFK Jr. Hearing Reveals DC Pro-Pharma Consensus; Trump's Executive Order to Deport Student Protesters Criticizing Israel; Untangling DC Think Tank Funding & Influence | SYSTEM UPDATE #399
128K149 -
1:23:44
Space Ice
11 hours agoSpace Ice & Redeye: Van Damme's The Quest: Pirates, Clowns, James Bond & Bloodsport
41.5K3 -
59:57
The StoneZONE with Roger Stone
8 hours agoJ6 Martyr Enrique Tarrio Describes Inhumane Prison Conditions Ordered by Biden | The StoneZONE
38.1K4 -
16:48
Tundra Tactical
8 hours ago $4.50 earnedAffordable Medical Gear From ACETAC SHOT Show 2025
53.1K2 -
1:46:16
Redacted News
11 hours agoRFK CONFIRMATION: Kennedy goes to WAR with Big Pharma Democrats in Fiery Hearing | Redacted Live
242K417 -
57:31
Candace Show Podcast
11 hours agoBREAKING! Taylor Swift Turns Against Blake Lively & Ryan Reynolds | Candace Ep 141
222K206 -
1:04:59
Sarah Westall
8 hours agoRFK Jr Report, Constitution Suspended, War Time Procedures in Place, WHO Exit, DOD w/ Sasha Latypova
68.8K33 -
1:56:37
Melonie Mac
12 hours agoGo Boom Live Ep 35!
61.5K15