Requirement 2 of the PCI DSS v1.2 is: “Do not use vendor-supplied defaults for system passwords and other security parameters” Understanding that we’re limiting the discussion solely to MySQL (OS, Network Devices, and other software will no doubt apply to overall compliance), we can do this easily. The vendor-supplied default MySQL 5.1.43 (they’re similar across [...]
If you are planning to take a certification exam at the MySQL
Users conference next week, please bring a laptop with WiFi and
plan to come early! Testing will be in the Magnolia Room by the
escalators in the Hyatt Lobby from 8:30 AM to 3:00 PM starting
Tuesday.
The exams are online which means you will need a laptop.
And this year there is a limit of 250 exams total. Once
that hard limit is reached, there will be no more exams given at
the UC in 2010. So do not wait to the last minute to finish off
that certification.
Allow Your Applications To Access The XAMPP MySQL Server Directly
If you want to have a full featured "LAMP" server with one step you can use "XAMPP", it's easy and fast but you can't access its MySQL database server using the regular "mysql" client (/usr/bin/mysql), you have to use its own client (/opt/lampp/bin/mysql) to do that.
As announced previously, our MySQL/Replication/Pacemaker webinar is on tomorrow (Wednesday April 7) at 1500 UTC. A few seats are still left; you may want to register quickly.
[Read more]Facebook employees have three presentations at the MySQL Conference next week. The database performance team presents High Concurrency MySQL on Tuesday at 10:50am. The database operations team presents Database Operations at Scale on Wednesday at 2pm. The database engineering team presents High-throughput MySQL on Thursday at 10:50am
While it appears that the performance team swiped the title for their talk from the engineering team, the talks are not the same. All talks will have many stories and details.
I spent some time this weekend fixing up the Gearman MySQL UDFs (user defined functions) and fixed a few bugs in the Gearman Server. You can find links to the new releases on the Gearman website. The UDFs now use Monty Taylor’s pandora-build autoconf files instead of the old fragile autoconf setup that relied on pkgconfig.
If you are attending the MySQL Conference & Expo next week and want to learn more about Gearman, be sure to check out one of the three sessions Giuseppe Maxia and I are giving:
[Read more]
MySQL has inet_aton and inet_ntoa functions for converting IPv4
addresses to an unsigned 32 bit integer value, and back into
dotted decimal format. Since IPv6 is becoming more popular, I
decided to create a couple functions for handling IPv6 addresses
as well. In this case, we want to convert the friendly
::0:53D6:0001 style addresses to a 16 byte binary value that is
easier to store. But we also want to extract them in a human
readable format as well. To do that we now have
inet_aton6() and inet_ntoa6().
Examples:
[Read more]
mysql> SELECT inet_aton6('0:0:0:0:0:0:af00:b001');
+------------------------------------------+
| inet_aton6('0:0:0:0:0:0:af00:b001') |
+------------------------------------------+
| 000000000000000000000000AF00B001 |
+------------------------------------------+
mysql> SELECT …
I have been annoyed by the fact that I couldn’t easily print file count for all of the folders in certain directory. Most of the time I just want to see what space each folder is using (du -hs *) but there are times when I need to know how many files are in each folder (checking cache folder, session folders etc).  So I whipped together a command line which does just that for me:
for i in `find -maxdepth 1 -type d`; do echo -n $i "
";find $i|wc -l; done
I am sure there are many different ways to show file count for each folder in a directory and I am curious to see what people do so please do post comments with what you do.
Above command is pretty simple and can be expanded to do whatever you need. For example, you can throw it into a bash script and be able to pass parameters. For example: count_files /home/ In this case your command line would …
[Read more]In this post I’m going to describe how to write an authentication plugin for Drizzle. The plugin I’ll be demonstrating is a simple file-based plugin that takes a file containing a list of ‘username:password’ entries (one per line like a .htpasswd file for Apache). The first step is to setup a proper build environment and create a branch, see the Drizzle wiki page to get going. From here I’ll assume you have Drizzle checked out from bzr and are able to compile it.
Setup a development branch and plugin directory
Change to your shared-repository directory for Drizzle and run (assuming you branched ‘lp:drizzle’ to ‘drizzle’):
shell$ bzr branch drizzle auth-file Branched 1432 revision(s). shell$ cd auth-file
Next, we’ll want to create the plugin directory and create …
[Read more]As you all are aware you can create a job is MS SQL using the SQL server Job agent and run the jobs in at any interval. Unlike MS SQL, MySQL does not have a Job agent to schedule the jobs and hence you need to create a CRON job in Linux or the MySQL 5.1.12 and above has been introduced with EVENT. You can write a event to run a SP at an interval.
We will see how to write a CRON job to run a Stored Procedure at an Interval. Follow the steps below
At the Prompt> CRON –e
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/Call_SP.sh 2>&1 >> /root/call_sp.log
Here I’m specifying an interval of 5 mins, hence the cron job will run the sp every 5 mins
Now create a shell script to call the sp from a database.
At the Prompt> vi Call_SP.sh
mysql -h ‘IPADDRESS’ -u root –p’password’ mydatabase -e "call …
[Read more]