Application issues, downtimes and outages are the responsibility
of IT to resolve. However, at the end of the day they are,
essentially, business issues.
Businesses compete for customers online everyday and the latter
are not a patient bunch. Every second of your web application
performance counts building up or taking away both revenue
and brand reputation. There’s always a risk that even though
your application may appear to be working fine, its flow’s key
parts, such as shopping carts, registration pages, etc. may not
be functioning properly. So it’s critical to have a full
controll across the entire application delivery
chain. With Node.js, MySQL, Oracle, Java/JMX, Log, and
Tomcat application monitors, you can track your app’s
performance bottom-up.
Check out the infographic below to see …
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
The MySQL Windows Experience Team is proud to announce the release of MySQL for Visual Studio 1.2.5. This is a maintenance release for 1.2.x. It can be used for production environments.
MySQL for Visual Studio is a product that includes all of the Visual Studio integration functionality to create and manage MySQL databases when developing .NET applications.
MySQL for Visual Studio is installed using the MySQL Installer for Windows which comes in 2 versions:
- Full (150 MB) which includes a complete set of MySQL products with their binaries included in the downloaded bundle.
- Web (1.5 MB – a network install) which will just pull MySQL for Visual Studio over the web and install it when run.
You can download MySQL Installer from our …
[Read more]Workbench announced support for a spatial view in 6.2, but examples are somewhat lacking. Just how do you get a SHP into MySQL?
Download and unpack a SHP file such as these country boundaries.
In the Workbench installation directory, you'll find a program "ogr2ogr" that can convert .shp to .csv. Run it like this:
"C:\Program Files\MySQL\MySQL Workbench 6.3\ogr2ogr.exe" -f CSV countries.csv countries.shp -lco GEOMETRY=AS_WKT
Now create a table and load the CSV.
CREATE TABLE worldmap (
OBJECTID smallint unsigned,
NAME varchar(50),
ISO3 char(3),
ISO2 char(2),
FIPS varchar(5), …[Read more]
In this series of blogs, I will cover Windows performance
counters infrastructure, collecting and interpreting the data
and, in final blog, provide the Powershell script built on this.
I should note that I am very new to Powershell so take my
empirical findings with grain of salt. Also, coming from Linux
bash, I found Powershell confusing at first but, after getting
comfortable with concept of passing Objects down the pipe, I have
to say I like it a lot.
It all starts in WDM framework (Windows Driver Model) where metrics is
collected for WMI-for-WDM enabled device drivers. The classes
created by the WDM provider to represent device driver data
reside in the "Root\WMI" namespace. I will talk of namespaces
shortly.
So, the WDM provider records information about WDM operations in
the …
While reworking our initial code completion implementation in MySQL Workbench I developed an approach that can potentially be applied for many different situations/languages where you need code completion. The current implementation is made for the needs of MySQL Workbench, but with some small refactorings you can move out the MySQL specific parts and have a clean core implementation that you can easily customize to your needs.
Since this implementation is not only bound to MySQL Workbench I posted the full description on my private blog.
If you're one of the users having updated HeidiSQL this morning
to revision 5002, then you will surely see a crash when starting
heidisql.exe . This is due to an accidental commit of a file with
unfinished changes from me. Sorry for that. I have just reverted
that in revision 5003.
As the program crashes at the very start, you won't be able to
update HeidiSQL automatically. As a solution, you can use the
installer from that fixed build for updating:
32/64bit: http://www.heidisql.com/installers/HeidiSQL_9.3.0.5003_Setup.exe
32bit only: http://www.heidisql.com/installers/HeidiSQL_9.3.0.5003-32_Setup.exe
See this forum thread for details.
Looking through our exception tracker the other day, I ran across
a notice from our slow-query logger that caught my eye. I saw a
SELECT … WHERE … LIKE query with lots of percent
signs in the LIKE clause. It was pretty obvious that
this term was user-provided and my first thought was SQL
injection.
[3.92 sec] SELECT ... WHERE (profiles.email LIKE '%64%68%6f%6d%65%73@%67%6d%61%69%6c.%63%6f%6d%') LIMIT 10
Looking at the code, it turned out that we were using a
user-provided term directly in the LIKE clause
without any checks for metacharacters that are interpreted in
this context (%, _, \).
def self.search(term, options = {})
limit = (options[:limit] || 30).to_i
friends = options[:friends] || []
with_orgs = options[:with_orgs].nil? ? false : options[:with_orgs]
if term.to_s.index("@")
users = User.includes(:profile) …[Read more]
Looking through our exception tracker the other day, I ran across
a notice from our slow-query logger that caught my eye. I saw a
SELECT … WHERE … LIKE query with lots of percent
signs in the LIKE clause. It was pretty obvious that
this term was user-provided and my first thought was SQL
injection.
[3.92 sec] SELECT ... WHERE (profiles.email LIKE '%64%68%6f%6d%65%73@%67%6d%61%69%6c.%63%6f%6d%') LIMIT 10
Looking at the code, it turned out that we were using a
user-provided term directly in the LIKE clause
without any checks for metacharacters that are interpreted in
this context (%, _, \).
def self.search(term, options = {})
limit = (options[:limit] || 30).to_i
friends = options[:friends] || []
with_orgs = options[:with_orgs].nil? ? false : options[:with_orgs]
if term.to_s.index("@")
users = User.includes(:profile) …[Read more]
English: Madrid MySQL Users Group will be holding their next meeting on Tuesday, 10th November at 19:30h at the offices of Tuenti in Madrid. David Fernández will be offering a presentation “MySQL Automation @ FB”. If you’re in Madrid and are interested please come along. We have not been able to give much advance notice so if … Continue reading MMUG14: MySQL Automation at Facebook
The post MMUG14: MySQL Automation at Facebook first appeared on Simon J Mudd's Blog.
MySQL 5.7 came out with support for JSON, improved geometry, and virtual columns. Here's an example showing them all playing together.
Download citylots.json.
It comes as one big object, so we'll break it up into separate
lines:
grep "^{ .type" citylots.json > properties.json
Connect to a 5.7 instance of MySQL.
CREATE TABLE citylots (id serial, j json, p geometry as
(ST_GeomFromGeoJSON(j, 2)));
LOAD DATA LOCAL INFILE 'properties.json' INTO TABLE citylots
(j);
A few of the rows don't contain useful data:
DELETE FROM citylots WHERE j->'$.geometry.type' IS
NULL;
In …
[Read more]