♫musicjinni

MySQL | Remote Access | MySQL Server | Linux CentOS 6.3 Part 1 // Tips from a Self Taught Developer

video thumbnail
In this tutorial the self-taught developer talks you through installing and configuring a MySQL server to allow remote access on Linux using CentOS 6.3.

So first, download and install the MySQL server: yum install MySQL MySQL-server

Next make it so as the MySQL server with be running on server startup, issue the following command:

chkconfig mysqld on

Next start the mysqld service

service mysqld start

Next, run the command /usr/bin/mysql_secure_installation in order to set the root password and to delete other users and ultimately to stop the root user from having remote access.

Then you can access the MySQL server, to make a new user, which you can login in as rather than using the root user all of the time.

We then edited the /etc/my.cnf, to allow the server to be accessed remotely only on the address of 10.10.10.30, which was the static IP address of this machine which we install the MySQL server on.

We add the following line to this file below the area which is [mysqld]
bind-address=10.10.10.30

Note: this IP address needs to be the static IP address of this single machine.

Next, we added a rule to the firewall by editing the /etc/sysconfig/iptables file, by adding the following line to it, above the ssh line:

-A INPUT -p tcp -m state --state NEW,ESTABLISHED -m tcp --dport 3306 -j ACCEPT

Once you have saved and close this file, restart or reload the iptables:

service iptables restart

Potentially, this is the server ready to be used remotely, although you are still required to add a user which has the correct privileges:

No more space available...best just watch the video!!!!

#davidsvideos #SelfTaughtDeveloper #DavidThorn

MySQL - Allow remote connections from any host

MySQL Remote Connection with MySQL Workbench

MySQL | Remote Access | MySQL Server | Linux CentOS 6.3 Part 1 // Tips from a Self Taught Developer

Enable MySQL/MariaDB Remote Login on Ubuntu/Debian

docker: connecting to localhost outside the container (intermediate) anthony explains #555

How to SSH Tunnel (simple example)

MariaDB SQL over SSL/TLS

How to Access your Raspberry Pi Website over the Internet (with port forwarding)

Security Home Lab - Part 5 - Remote Access

Linux Server - Installing Apache, MySQL & PHP (LAMP Stack)

MySQL Security from Data Protection to Regulation Compliance

How to install Mysql, PHP 5 and Apache 2.2 Web server

How to Setup an FTP Server on Windows 10/11

How to Make Virtual Machines Talk to Each Other in VirtualBox

305CDE L14 - Building a Database Server

10ZiG Manager Webinar – Best Practices for Remote Management & Configuration of Thin & Zero Clients

How to install a Linux Server

HP ProLiant DL580 Gen 3

How to Deploy ASP.NET Core Web API on IIS Windows Server || Deploy ASP.NET Web API on IIS .NET 7.0

Sonarqube setup from scratch and Code analysis | [Latest 2024]

Java 2 - Chap 32 JDBC Connection to MySQL on Kronos - Fall 2016

Web Scraping - Using VPN | Scrapy on a Raspberry Pi Server

DIAMOL 14: Configuring Docker for secure remote access and CI/CD

11 - MetasploitAllTheThings - The Exploits (Privilege Escalation)

DayZ Package - Using HeidiSQL to Manage Database

Arch Linux as a Server?! Setting up Tiny Tiny RSS on a Cloud Instance

Getting Started HTB

HIP17 - Talk 04 - The forgotten interface: Windows named pipes by GIL COHEN

How to Install WordPress on Ubuntu in Azure using Apache Web Server, Mariadb, Lets Encrypt, ProFTPd

Microsoft Azure OpenDev—June 2017

Disclaimer DMCA