Showing entries 511 to 520 of 1121
« 10 Newer Entries | 10 Older Entries »
Displaying posts with tag: PHP (reset)
How To Fix Intermittent MySQL Errcode 13 Errors On Windows

The Problem

I've had MySQL on my Windows 7 laptop for a bit (as part of wampserver), mostly for local offline WordPress development.

However, even though MySQL is relatively stable, I've been observing a vast quantity of intermittent MySQL errors, as reported by WordPress in the PHP error log (C:\wamp\logs\php_error.log). Here are some examples:

[05-Jan-2010 09:47:51] WordPress database error Error on delete of
'C:\Windows\TEMP\#sql17e0_1a2_6.MYD' (Errcode: 13) for query SELECT t.*, tt.* 
FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id 
INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = 
tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (3) 
ORDER BY t.name ASC made by require, require_once, include, get_footer, 
locate_template, load_template, require_once, dynamic_sidebar, 
call_user_func_array, …
[Read more]
How to build a fast, good scaling user notification system pt. 2

This post is the second part of my earlier post on How to build a fast, good scaling user notification system where we discussed the problem areas of the said system. This post will be mostly about a strategy on the infrastructure to store all those notifications and retrieve them as fast as possible. The most common approach to store data like user notifications would be to create a table

A handy regular expression for 'tokenizing' a SQL statement

Often times I find myself having to handle a particular portion of a SQL statement via a script. I've written a lot of specialized regular expressions over time to handle these tasks, but the one that I've had to write the most is a basic 'tokenizer' which understands the quoting semantics of a MySQL statement. That is, it understands `BackTick`, 'Single Quote' and "Double Quoted" strings.

#PHP Heredoc syntax
$regex = <<< END_OF_REGEX
/
  [^ \"'`(),]*\([^)]*\)    #match functions like concat(x,"y",`a`.`z`) or sum(`xyz`);
  |\([^)]*?\)              #match grouped items
  |"[^"]*?"                #match double quoted items
  |'[^']*?'                #match single quoted items
  |`[A-Za-z0-9_ .'\"()+\\-&^%\$+?%\\/\\\\!`]+`  #match backtick mysql names
  |[^ ,]+                  #match keywords, operators and aliases
  |,
/xi
END_OF_REGEX;



EDIT: After some comments and further testing, I've …

[Read more]
PHP Hacking

I don't feel like it to change my patches with every new release of PHP. In order to give something back to the community and to support my laziness, I publish a few patches for the PHP language. Some are really useful, some are quite okay and others are only to help in a more particular case. But read over the new featureset to make you an own opinion.

Read the rest »

Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 9.10

Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 9.10

Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an Ubuntu 9.10 server with PHP5 support (through FastCGI) and MySQL support.

Installing Apache2 With PHP5 And MySQL Support On Mandriva 2010.0 (LAMP)

Installing Apache2 With PHP5 And MySQL Support On Mandriva 2010.0 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a Mandriva 2010.0 server with PHP5 support (mod_php) and MySQL support.

Former MySQL CEO represents Oracle at EC hearing?

I just came across several blog posts regarding the Oracle/Sun/MySQL war, including this one. There are a lot of interesting clarifications and opinions, but I want to highlight this comment from MySQL's founder Monty about Mårten Mickos which is worth reading. One excerpt:

That could however explain why he [Mårten] is now so eager to help Oracle buy MySQL and even represented Oracle at the EC hearing.

MySQL's former CEO representing Oracle in the EC hearing? Is it because Mårten converted to the dark side of the planet or is it because he believes MySQL will have a great future under Oracle's umbrella? Or has it to do with stock options as Monty's …

[Read more]
Option D

Lots of people writing about Snorkle again today ,Monty Says, help saving MySQL

He gives us different options, a , b or c .. but I , and some others, want an option d

No I don't trust Oracle, it's not like they have been a very good Open Source Citizen, yes they contribute to the kernel and other projects but my feeling says it's only because they have to (Kernel, Xen and others ) not because they Want to (thinking about Unfakable etc) , if they would really want to they probably would work with the CentOS community more etc, and as Monty mentions their InnoDB track record could be better.

But on the other hand I don't think the EU should block the deal because Monty wants his baby back , cheap , as honestly imvho that's what they really want, be able to buy MySQL back for a nice price, either beceause Oracle is being forced by the …

[Read more]
Version 1.1.5 of improved Cacti templates released

I’ve released version 1.1.5 of my improved Cacti templates for MySQL and other components of a LAMP application. This is a pure bug-fix release. One of the bug fixes prevents spikes in graphs, but requires you to rebuild your RRD files. There are upgrade instructions on the project wiki for this and all releases. Use the project issue tracker to view and report issues, and use the project mailing list to discuss the templates and scripts.

The full changelog follows:

2009-12-13: version 1.1.5

  * Support for getting slave lag via mk-heartbeat was broken (issue 87).
  * The …
[Read more]
MySQL: from Midrange to the Enterprise market

First of all, I want to link to a blog article written by the founder of MySQL to help MySQL being rescued - everybody can stand up and tell the European Commision why the Oracle/Sun deal threatens MySQL. Second, due to a personal request, I want to make clear that this posting reflects my personal opinion of the case.

 

Third, I have been thinking about the markets both database systems address and why MySQL really competes to Oracle in one way or another. There are several voices who claimed that MySQL is not a competitor to Oracle, but if you know "Project Peter", Sun (the current owner of the trademark MySQL and its source code) targets Oracle customers in order to convince them migrating to MySQL.

[Read more]
Showing entries 511 to 520 of 1121
« 10 Newer Entries | 10 Older Entries »