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
-
41:38
Tech With Tim
2 years ago $0.08 earned3 Python Automation Projects - For Beginners
7092 -
8:41
Russell Brand
7 hours agoMy thoughts on this
55.3K16 -
2:57:38
TimcastIRL
5 hours agoTHIS CROSSES THE LINE | Timcast IRL #1438
252K133 -
58:43
Isabella Moody
3 hours agoEx Daily Wire CEO Calls Out Nick Fuentes & FAILS MISERABLY! WHEN WILL THESE ZIONISTS LEARN? RIP!
17.7K7 -
27:22
Her Patriot Voice
7 hours ago $2.12 earnedFascists Vs REAL Venezuelans
24.2K23 -
1:06:22
Sarah Westall
5 hours agoChallenger Dopplegangers No One Can Explain | Justin Harvey
33.5K16 -
DVR
DLDAfterDark
4 hours ago $0.70 earnedIt's All A Psyop - The Globalists Are Playing Their Hand To Thin The Heard & Gain Control
21.2K2 -
1:22:06
Precision Rifle Network
13 hours agoGuns & Grub - PRS Is Crazy Expensive & shotshow drops
21.9K -
27:25
Jasmin Laine
7 hours agoJournalist TORCHES Canadian Media—“Trump Derangement Is Real”
31.5K8 -
2:02:18
AlaskanBallistics
5 hours ago $1.12 earnedI Love this Gun Podcast #87
21.9K2