Sometime you may need to populate(sync) local testing table with
the production table which is hosted on a remote server.
# This command should be run on local server(SINGLE
COMMAND)
mysqldump -t -h [remote_host_ip] -u[remote_User]
-p[remote_Password] [remote_DbName] [remote_TableName] | mysql -h
localhost -u [local_User] -p[local_Password] [local_DbName]
What if you want to copy last month data only?
mysqldump -t -h [remote_host_ip] -u[remote_User]
-p[remote_Password] [remote_DbName] [remote_TableName] -w
"column_date_time > NOW() - INTERVAL 1 MONTH"| mysql -h
localhost -u [local_User] -p[local_Password]
[local_DbName]
7TKU66CE8V5W
FISL stands for "Forum Internacional Software Livre" in the
Portuguese language and means "International Free Software
Forum" in the English language. The punch line is "A
technologia que liberta" and means "The technology that
liberates". This is the biggest event about free software in America and was attended by 7417 participants in 2008. |
Just like "Freedom of Speech" is a basic human right, "Freedom of
Software" is a basic right for the technology evolution. GlassFish gives you the
freedom:
- To Pick your own framework: Java EE, Ruby-on-Rails, Python/Django, Groovy/Grails, or any other
- Choose your IDE: …
FISL stands for "Forum Internacional Software Livre" in the
Portuguese language and means "International Free Software
Forum" in the English language. The punch line is "A
technologia que liberta" and means "The technology that
liberates". This is the biggest event about free software in America and was attended by 7417 participants in 2008. |
Just like "Freedom of Speech" is a basic human right, "Freedom of
Software" is a basic right for the technology evolution. GlassFish gives you the
freedom:
- To Pick your own framework: Java EE, Ruby-on-Rails, Python/Django, Groovy/Grails, or any other
- Choose your IDE: …
Baron got a great amount of response from his 50 things to know before migrating Oracle to MySQL. I’m glad I invited him as a fellow MySQL colleague to my presentation to the Federal Government on Best Practices for Migrating to MySQL from Oracle and SQL Server for his inspiration.
Oracle will always be a more featured product then MySQL. There are however features that MySQL has that Oracle does not. While I’ve got a draft of a list of my own, I have several hundred incomplete drafts.
One of these features I was able to demonstrate to a client is the ability to have multiple VALUES clauses for a single INSERT statement. For example.
INSERT INTO t1(c1) VALUES (1), (2), (3), (4), (5);
…
[Read more]
MySQL Connector/Net 6.0.4, a new version of the all-managed .NET
driver
for MySQL has been released. This is the first post-GA
release of the new
6.0 connector and includes several bug fixes from the initial GA
release.
This release is approved for use in all scenarios and
officially
supports MySQL servers 4.1 and higher. It is now
available in source and binary form from
[http://dev.mysql.com/downloads/connector/net/6.0.html] and
mirror sites
(note that not all mirror sites may be up to date at this point
of time
- if you can't find this version on some mirror, please try again
later
or choose another download site.)
IMPORTANT
We have had some reports of
installer problems with this package. We are working hard to find
the problem. For now it appears that making sure your system is
fully updated sometimes helps. We will release …
Giuseppe stumbled over this website and recommended it to me as a potential useful service for organizing the registrations of the OpenSQL Camp: Eventbrite is a Python/MySQL-powered web site (judging from their job openings) that provides the following:
Eventbrite is the leading provider of online event management and ticketing services. Eventbrite makes it easy for anyone to hold a successful event of any type and size. Eventbrite is free if your event is free. If you sell tickets to your event, Eventbrite collects a small fee per ticket. So just like you, Eventbrite wants your event …
[Read more]Recently I came across another configuration option I’d not heard of before. I profess to not know them all, however I do know when I find something unusual. If you are a beginner DBA, learn what is normal and expected, and identify what is out of the normal, investigate, research and question if necessary.
I gave away a MySQL Administrator’s Book based on seeing a configuration with safe-show-database, an option I’d not seen before, and then requesting people giving basic configuration options in that situation.
The latest is max_tmp_tables. So, what does the manual say for this option. I quote:
The maximum number of temporary tables a client can keep open at the same …
[Read more]I figured that it was time to check out how to install, configure, run and use MySQL Cluster on Windows. To keep things simple, this first Cluster will all run on a single host but includes these nodes:
- 1 Management node (ndb_mgmd)
- 2 Data nodes (ndbd)
- 3 MySQL Server (API) nodes (mysqld)
Downloading and installing
Browse to the Windows section of the MySQL Cluster 7.0 download page and download the installer (32 or 64 bit).
MySQL Cluster Windows Installer
Run the .msi file and choose the “Custom” option. Don’t worry about the fact that it’s branded as “MySQL Server 7.0″ and that you’ll go on to see adverts for MySQL Enterprise – that’s just an artefact …
[Read more]Hello everyone,
I began MySQL Magazine in the early summer of 2007. It was began, not as a lark, but without any idea that it would ever become so popular. It was just a way I thought I could contribute to the MySQL community. Over time it has grown very well with recent issues being downloaded around 10,000 times directly from the website. I have no way of counting other downloads although I know issues are posted in multiple other locations.
I have been debating for about six months on changing things up a bit. As I said in my last post, change for the sake of change is almost never good. This isn’t change just for change’s sake. I am convinced that enlarging the old MySQL Magazine to include any open source db will be beneficial to everyone. More content and an exchange of …
[Read more]It is a known fact that ext3 is not the most efficient file system out there and for example file removals can be painfully slow and cause a lot of random I/O. However, as it turns out, it can sometimes have a much more severe impact on the MySQL performance that it would seem. When or why?
When you run DROP TABLE
there are several things
that need to happen – write lock on a table so it cannot be used
by any other thread, the data file(s) removal by the storage
engine and of course in the end MySQL has to destroy the
definition file (.frm). That's not all that happens, there is one
other thing:
PLAIN TEXT CODE:
- VOID(pthread_mutex_lock(&LOCK_open));
- error= mysql_rm_table_part2(thd, tables, if_exists, drop_temporary, 0, 0);
- pthread_mutex_unlock(&LOCK_open); …