Updated version of the mysql World database? - mysql

I know it's meant only as a test database, but I can;t find an (updated) copy of the World DB anywhere. The one on the Mysql site is out of date for most countries (presidents/heads of state have changed, etc). Anyone know where this data came from?

It does not seem like there is an updated version. The source is Statistics Finland, according to MySQL's setup page.

Related

Find out the data update and data ingestion frequency of CiviCRM, phpMyAdmin

Hi I'm using CiviCRM for membership management. The database is not set up by me and it's old. I wonder where can I find out the database update frequency. I access the database via phpMyAdmin.
I had a look on the information schema but didn't see anything useful.
thanks!
if you mean code updates, which may impact db, civicrm.org/blog/tags/release
if you mean other minimum requirements (php and mysql) try here docs.civicrm.org/installation/en/latest/general/requirements
If you want to see the version of CiviCRM installed, you can see it in the column version of the table civicrm_domain :
SELECT version FROM civicrm_domain;
Since CiviCRM 5+, there is exactly one release every month. As we are at 5.50, it's quite easy to know how old is your CiviCRM. Also see here for the list of releases : https://civicrm.org/blog/tags/release
CiviCRM is not a standard module / plugins, it's more of it's own software that can be integrated with the CMS (Drupal / WordPress). There is no auto update so you need to do it manually using this procedure depending on the CMS :
https://docs.civicrm.org/sysadmin/en/latest/upgrade/drupal7/
https://docs.civicrm.org/sysadmin/en/latest/upgrade/drupal8/
https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/
https://docs.civicrm.org/sysadmin/en/latest/upgrade/joomla/
Lastly, if you have more questions on your CiviCRM, there is a specific StackExchange here : https://civicrm.stackexchange.com/

Adding MySQL functionality in LabView

I am new to LabVIEW and trying to make a small project. In LabVIEW from one device, I am measuring some values and then need to store them in database. Initially, I used Excel to store data. But now I need to add MySQL functionality to store data and then later retrieve when need for analyzing.
I look for NI toolkit but it is expensive. I need some free and open source solution for my project.
I search over SO and google to find any examples where I can start and make it work, but I couldn't find any.
If someone suggest me some resources or having some example code that I can use to achieve my goal. thanks in advance.
Take a look at LabSQL. This works in LabVIEW 2017, allowing connection to a MySQL database without NI's LabVIEW Database Connectivity Toolkit.
I normally use the Database Connectivity Toolkit, but I did confirm I could get this to work in 2017 as well (though connecting to a MSSQL database instead of MySQL).
The only thing that tripped me up at first was not using the Create Connection before Open Connection (because I was used to the aforementioned toolkit). I didn't try anything complicated; I just ran a simple selection query. But it looks like everything should work pretty similarly to the toolkit. As adambro said, if you have a more specific question, maybe we can help with an answer.
I would suggest you could use SQLite. It is a fairly easy toolkit. You can download it via the VI package manager. By dr. James Powell. SQLite is excellent in storing data locally.
Use the SQLite browser from sqlitebrowser.org.
Also a nice way to learn SQL!

DataModelling or ER model building software for MacBook and MYSQL

Hi Friends I have been looking for to build a ER Diagram for my database in Macbook.
Please help me finding a right tool for the same.
I have tried MYSQL Work bench but i need it to be updated dynamically if the DB gets changed.
Also have tried some online stuffs like gliffy.com but of no use.
Please help me I am new to Databases so quick help will be appreciated.
You won't get automatic updates (I understand automatic updates as something that happens in the background without any action from you).
MySQL Workbench however has a two-way sync that you can use to update your models at the same time you update your schema (from the model). You can select to do only one direction, but you have to trigger synchronization yourself.
SchemaCrawler is a free tool that generates diagrams from a database. It is driven from the commandline. You can generate a new diagram quickly, when your database changes, by re-running your command. Here is an example diagram:
Sualeh Fatehi, SchemaCrawler

Synchronizing tables on 2 MySQL servers

I have 2 MySQL servers: one for development, other for production. Both contain same table structure, but different data on tables.
When I have done change on dev server, like add column to table, I have manually made the same change later to production server. But this slow and error prone, especially if there are many changes to be made at once.
Is there better way to do this? I have phpMyAdmin, maybe that has some neat trick?
Also, is there a dedicated term for what this process is called? Searching for 'table update' or similar does not yield results on this topic.
EDIT:
Forgot to mention that I am using Windows.
So apparently I need some kind of diff tool for this. I haven't tested all of these proposed software yet, but so far they seem very useful.
I've used Red Gate's SQL Compare before for SQL Server; this is their MySQL product. I don't have the budget to buy it myself, but if it works anything like SQL Compare did, it'll do exactly what you want it to do.
When ever I do this I have used the data or structure sync in a Mysql GUI app called Navicat, there is a free version available and it does what you asked perfectley.
Try to compare and synchronize databases with schema/data comparers in dbForge Studio for MySQL.

How to synchronize development and production database

Do you know any applications to synchronize two databases - during development sometimes it's required to add one or two table rows or new table or column.
Usually I write every sql statement in some file and during uploading path I evecute those lines on my production database (earlier backing it up).
I work with mySQL and postreSQL databases.
What is your practise and what applications helps you in that.
You asked for a tool or application answer, but what you really need is a a process answer. The underlying theme here is that you should be versioning your database DDL (and DML, when needed) and providing change scripts to be able to update any version of your database to a higher version.
This set of links provided by Jeff Atwood and written by K. Scott Allen explain in detail what this ought to look like - and they do it better than I can possibly write up here: http://www.codinghorror.com/blog/2008/02/get-your-database-under-version-control.html
For PostgreSQL you could use Another PostgreSQL Diff Tool . It can diff two SQL Dumps very fast (a few seconds on a db with about 300 tables, 50 views and 500 stored procedures). So you can find your changes easily and get a sql diff which you can execute.
From the APGDiff Page:
Another PostgreSQL Diff Tool is simple PostgreSQL diff tool that is useful for schema upgrades. The tool compares two schema dump files and creates output file that is (after some hand-made modifications) suitable for upgrade of old schema.
Have scripts (under source control of course) that you only ever add to the bottom off. That combined with regular restores from your production database to dev you should be golden. If you are strict about it, this works very well.
Otherwise I know lots of people use redgate stuff for SQLServer.
Another vote for RedGate SQL Compare
http://www.red-gate.com/products/SQL_Compare/index.htm
Wouldn't want to live without it!
Edit: Sorry, it seems this is only for SQL Server. Still - if any SQL Server users have the same question I'd definitely recommend this tool.
If you write your SQL statements for your development database (which are, I imagine, series of DDL instructions such as CREATE, ALTER and DROP), why don't you keep track of them by recording them in a table, with a "version" index? You will then be able to:
track your version changes
make a small routine allowing the "automatic" update of your production database by sending the recorded instructions to the database.
I really like the EMS tools.
There tools are available for all popular DB's and you have the same user experience for every type of DB.
One of the tools is the DB Comparer.
TOAD
saved many an ass several times in the past. Why do people run sql with no exit strategy?
the redgate one is good also.
Siebel (CRM, Sales, etc. management product) has a built-in tool to align the production database with the development one (dev2prod).
Otherwise, you've got to stick with manually executed scripts.
Navicat has a structure synchronisation wizard that handles this.
I solve this by using Hibernate. It can detect and autocreate missing tables, columns, etc.
You could add some automation to your current way of doing things by using dbDeploy or a similar script. This will allow you to keep track of your schema changes and to upgrade/rollback your schema as you see fit.
Here's a straight linux bash script I wrote for syncing Magento databases... but you can easily modify it for other uses :)
http://markshust.com/2011/09/08/syncing-magento-instance-production-development
DBV - "Database version control, made easy!" (PHP)