Showing entries 21366 to 21375 of 44106
« 10 Newer Entries | 10 Older Entries »
running mysql with “memlock”

The documentation says that we need to run mysql as “root” user for it to be effective. The code also indicates the same thing where it tries to do a getuid call to check if the server is running as root user (sql/mysqld.cc:  if (locked_in_memory && !getuid())). The general rule of thumb is that we don’t want to run mysql or rather any database as root user since that leads to vulnerabilities.

Historically memlock seems to cause issues on some OS flavors where “mlockall” implementation is not stable. This is documented in mysql code with the below warning message.

The "–memlock" argument, which was enabled, uses system calls that are

unreliable and unstable on some operating systems and operating-system

versions (notably, some versions of Linux).  This crash could be due to use

of those buggy OS calls.  You should consider whether you really …

[Read more]
running mysql with “memlock”

The documentation says that we need to run mysql as “root” user for it to be effective. The code also indicates the same thing where it tries to do a getuid call to check if the server is running as root user (sql/mysqld.cc:  if (locked_in_memory && !getuid())). The general rule of thumb is that we don’t want to run mysql or rather any database as root user since that leads to vulnerabilities.

Historically memlock seems to cause issues on some OS flavors where “mlockall” implementation is not stable. This is documented in mysql code with the below warning message.

The "–memlock" argument, which was enabled, uses system calls that are

unreliable and unstable on some operating systems and operating-system

versions (notably, some versions of Linux).  This crash could be due to use

of those buggy OS calls.  You should consider whether you really …

[Read more]
MySQL Partitioning – can save you or kill you

I wanted for a while to write about using MySQL Partitioning for Performance Optimization and I just got a relevant customer case to illustrate it. First you need to understand how partitions work internally. Partitions are on the low level are separate table. This means when you're doing lookup by partitioned key you will look at one (or some of) partitions, however lookups by other keys will need to perform lookup in all partitions and hence can be a lot slower. The gain from updates typically comes from having smaller BTREE on the active partition(s) which allows for a lot better fit. Having potentially fewer level in BTREE is not that significant issue.

So lets see at example:

PLAIN TEXT SQL:

  1. CREATE TABLE `tbl` (
  2.   `id` bigint(20) UNSIGNED AUTO_INCREMENT NOT NULL,
  3.   `uu` varchar(255) DEFAULT NULL,
[Read more]
CAOS Theory Podcast 2010.12.10

Topics for this podcast:

*Oracle, Java, the Apache Software Foundation and open source
*An update on some open source database and data management players
*CorraTech grows with support for open source application alternatives
*Red Hat-Makara acquisition analysis and impact
*Linux kernel report shows strong support, but what now for Novell?

iTunes or direct download (29:31, 5.1MB)

Shinguz's Blog (en): MySQL logon and logoff trigger for auditing

I while ago I did some research about MySQL audit functionality and logon a and logoff triggers. MySQL and MariaDB provide a logon trigger in the form of the init_connect variable but no logoff trigger where most of the work for auditing would be done. When we would have a logoff trigger we could track the login and possibility some activity of a user and implement auditing functionality.

Yesterday when I was looking into the code for an answer to the question of one of my customers this research came into my mind again. Today I was a bit more curious and I tried to find a way to patch the MySQL code to get a logoff trigger. Luckily I was successful right away and I created the exit_connect variable which acts as the logoff trigger.

The patches for the logoff trigger you can find …

[Read more]
MariaDB and TokuDB

I was happy to see the announcement yesterday from Tokutek regarding their addition of MariaDB to their list of supported platforms for the TokuDB storage engine.

One particular item in the press release caught my eye: “Our customers are choosing MariaDB more and more frequently for their most demanding database applications.” We’ve added many new features over the past year in our various 5.1 and 5.2 releases, but beyond the new goodies we’ve focused a lot of energy on removing bugs and improving performance. We’ve known for a while that MariaDB is the …

[Read more]
Moving from MySQL to CouchDB: Part 2

The follow-up blog post on moving your MySQL applications to CouchDB has been posted on the CouchOne blog. Part 2 digs into a bit more detail on the specifics of views, and how to perform some of the more common operations used in MySQL, such as paging and aggregation in your CouchDB view. You can read Part 2 here


Technology Update on MySQL: Dec. 15, 10am US PT

Please join us at 10am US PT on Dec. 15th as we provide an important technology update on MySQL. In this live webcast, Tomas Ulin, VP MySQL development and Rob Young, Senior Product Manager, will update you on the latest developments with MySQL.

Mark your calendar!

Register now.

Technology Update on MySQL: Dec. 15, 10am US PT

Please join us at 10am US PT on Dec. 15th as we provide an important technology update on MySQL. In this live webcast, Tomas Ulin, VP MySQL development and Rob Young, Senior Product Manager, will update you on the latest developments with MySQL.

Mark your calendar!

Register now.

MySQL Cluster session and demo booth at OOW Beijing


I’ll be presenting on MySQL Cluster at Oracle OpenWorld in Beeijing next week – the conference runs from 13th through to 16th December, you can register here. The MySQL Cluster session is on Thursday at 11:45 in room E2-235.

I’ll also be helping with the demos of MySQL Cluster, WorkBench and MySQL Enterprise Monitor - if you’re at the conference, please pop round to booth DMI-13 in the Oracle Demo Grounds.

Showing entries 21366 to 21375 of 44106
« 10 Newer Entries | 10 Older Entries »