Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replicate my local database (Mysql) to remote database( phpmyadmin)

Tags:

mysql

My MySQL database (local server) is connected to a weather station. The data are updated continuously on my local server. My idea is to develop a web application that allows me to access this data. My local database (MySQL) has to be replicated on a remote server (phpmyadmin) The architecture is as follows: Arquitecture

My questions are: 1- How I do the connection ? I know that I can import my cvs file manually but I don't want to do this. 2- Can I update the datas automatically in my remote server ?

NOTE: I only want to queries on my remote server (phpmyadmin), I will not create or modify new datas. Thanks you for your help.

like image 252
tipiwiny Avatar asked Jan 19 '16 23:01

tipiwiny


People also ask

How do I access a remote MySQL database in phpMyAdmin?

Access Remote MySQL database on phpMyAdmin. Step 1: Enable WSL on Window 10 ( Linux user skip this) Step 2: Install MySQL. Step 3: Install phpMyAdmin locally or on a remote server. Step 4: Edit configuration file. Step 5: Run phpMyAdmin to access a remote database.

What is data replication in MySQL?

MySQL is a widely used Database by big organizations to run their business activities. Data replication is one such technique that allows users to access data from numerous sources such as servers, sites, etc. in real-time. Companies Replicate MySQL Database to tackle the challenge of maintaining high data availability.

Are MySQL and phpMyAdmin on the same server?

In most cases, the MySQL server and phpMyAdmin both are installed on the same server so that the management of the database becomes easy. However, do you know? We can even access the remote server in the phpMyAdmin with just a little tweak. If not, then here is the tutorial on that.

How to login to phpMyAdmin using your IP address?

Whether you have installed it on the local or some remote cloud/hosting server, after installing the phpMyAdmin; open the browser and type the server’s ip-address/phpmyadmin. Note: replace the IP-address text with real IP of yours. Once the interface of this open-source database management tool appears you will see the login screen.


1 Answers

As i understood, you want to make a copy of your local mysql data on a remote server.

first of all phpmyadmin is a tool or webapp to access mysql , it is not a server itself.

and second

there are two type of replication approach

  • Master-slave (read from slave , write to master, that will sync to slave) How to do it
  • Master- Master (whatever operation are on master that will also replicate on other master) How to do it (Master-Master replication is deprecated. See Group Replication as a replacement)

You can choose the approach as per your requirement

Master-master vs master-slave database architecture?

How to achieve replication

http://dev.mysql.com/doc/refman/5.7/en/replication-howto.html

like image 171
developerCK Avatar answered Sep 19 '22 08:09

developerCK