i'm working on a local MySQL that installed on windows 7 in my company we are using ms access for the data entry .. we add new data every hour
and also we have a website that's connected to a public MySQL server "via web application" for clients .. and one of my tasks to copy all the database from the local MySQL server to the public one "to be shown for our clients".. so my question is there's any way to "auto" copy the new entered data from my local MySQL server to the public one ?
OR like when we add new record it goes to 2 different MySQL servers in same time?
i'm forced to do it that way because i cant figure out how to directly connect the website with the local MySQL machine
sorry the question might sounds stupid but i don't have much knowledge in this field .. thanks in advance
There many different ways to do that.
1) you can use a MySQL replication, so MySQL copy all inserts and
updates to your Slave Database (public Server). Also it synced
automaticl when the Connection dropped to the public server.
2) you can use a very good tool "percona toolkit". there is a toll
that synced tables or schemas to a other Database.
3) You can use a Proxy like MaxScale from MariaDB. They can split Querys
like insert or update and send it to 2 differnt servers.
Related
My plan is to store data in my local MySQL database and after a time interval it will update my MySQL database remotely.
The real problem is in our country net connection drops suddenly. So I want to first write to the local MySQL database and then it will update the real server. In any situation like internet connection dropped the script will work locally to gather data and retrieve data. When the internet connection comes back it will update the data to the real server. I want to protect against internet connection failures.
Nothing will update the real server in the mean time because the users are only in the office where the internet connection will drop. No one from the outside will able to update the database.
The short answer is, you don't do this with a function node.
The longer answer is that this should be 2 independent groups of nodes.
1 to store the required data in the local database.
1 with an inject node that runs at the interval you want to copy the data from the local DB to the remote DB that runs a query on the local instance that then inserts it into the remote DB. Pretty much all of this can be done with just the MySQL Database nodes and may be a split node to break up the results of the query into separate messages to feed into the node updating the remote DB.
Please I need help, I have an application running well on the Internet but the Network go down drastically sometimes,
So I imported the online database to my offline version. I want to be running the offline version and update the live version on regular basis either automatically with php code or through phpmyadmin. Please anyone with an idea of how I can do that should please help.
Thanks
You can update the local database automatically when the live server gets a chance.
This concept calls database replication(Master Slave Model).
You can slave your local database which doesn't need static IP. You can set it anywhere.
Master Database need must need static IP. And you can connect as many slaves as you want with the master database.
The Master database automatically sent changes to all slaves.
I have recently started using MySQL Workbench, hence I apologise if this is not the proper platform to ask this question. I tried to figure out the solution of my own, but could not find any appropriate one.
Here is my situation: At my workplace, we have a huge set of data about the operational and financial figures such as sales, employee, profit, etc for European companies spread over past 7-8 years and new data keeps coming regularly. However, the problem is we work from different remote locations, me in one city and the other two colleagues in a different city. Normally, we share our work files (.xls/.doc) etc through Dropbox. So, we thought of creating a database in MySQL wherein we all can submit/edit/add this data so that we can filter and analyse this data on several ways once the collection is complete. And we plan to use and access it thereafter. We believe that this is ease a lot of our work. So all I want to know is: can all three of us collaborate simultaeousy (in order to add or edit the data) through workbench Server administration, like the way we collaborate our work through Dropbox? I want to be the host (like the administrator) and then want to allow the access to my colleagues.
Thank you for your time and answer. You may also refer me to any site or link to read more about it.
I think you are a bit confused about what MySQL Workbench is.
MySQL workbench is just a data viewer and administration tool that connects to a MySQL server, there's no data "stored" in MySQL workbench, all the data is stored in the server.
MySQL workbench can:
Connect to a MySQL server
Send SQL instructions and show the results: You can create and drop databases, send SQL queries, create and execute stored procedures and functions... all assuming you have the right privileges.
Perform administration tasks: You can create and drop users, grant or revoke permissions, etcétera
But the fact is: all is stored in a MySQL server... so the answer to your question is: Yes, you can work simmultaneously with your colleagues, if and only if all of you can connect to the same database server (as Mike W commented).
Addressing your comments, and clarifying more details:
MySQL is a database server. When you install it in a computer, all data is stored in that computer (aside from replication and other fine details). You should make regular backups of your data (MySQL has tools for that, one is mysqldump). If you want to access the data stored in your database server, you can do it:
By ussing the command-line client,
By using MySQL workbench or another GUI client program, or
By any program that can connect to the database server (via ODBC or specific libraries).
Focusing on MySQL Workbench, and addressing your specific question: If your machine breaks down, you can install the MySQL Server in any other machine, and load the backup into it. You will have to configure that new machine so that any of your coworkers can connect to it (that may imply that a new set of connection parameters is created).
I have a software dumping values to a local SQL Express database once a day. What I really need is this data in an online MySQL database. The software cannot be reconfigured to save to a different database setup.
Is there any way of linking the two and having any updates to the local database sent to the MySQL database?
Thanks,
Joe
Do you have access to the server the software sits on? I would create a script and a scheduled task that is on the server, and pulls from one and pushes to the other. This would allow you to code and configure some sort of fail safe mechanism should one or the other be down. Otherwise one other option is to add a trigger for the SQL server for inserts/updates, and configure a MySQL DSN:
http://www.ideaexcursion.com/2009/02/25/howto-setup-sql-server-linked-server-to-mysql/
I use Mysql query browser on my pc for data entry,appreciate that let me how can i update my table on server after enter new records in Mysql query browser? is there any way that we sync to table(on server and on client )and sending new records to server?
thanks
If you want to keep your local and remote MySQL databases in sync, the obvious solution would be to use the replication features built into MySQL.
It sounds as if you have 2 data stores - one local, and one remote. Your question doesn't explicitly state that you actually have 2 separate databases, only that you're using MySQL Query Browser. You mention the MySQL Query Browser is on your PC, but it's not clear which database(s) it's connecting to. Is it a local database? Remember: the MySQL Query Browser is just an application that connects to a MySQL database.
It sounds as if you're looking for replication between MySQL servers. You mention 'sending new records' to the 2nd server. Are you looking for delete & update operations to be synchronized as well? A bit more information/requirements are needed before deciding on a solution.
The MySQL docs on Replication will get you started on replication, if that's the solution you need. This assumes your database hosts are in a master-slave relationship. That is, there is one good copy of data, and the other is to be a mirror for the master.