mysql

The S-Files: When node_load won't load, and the anonymous user has vanished

Robert Douglass's picture

Tech Support Case Studies

Use these two SQL commands to repair your Drupal 6 site to restore the anonymous user database record:

INSERT INTO users (name, mail) VALUES ('', '');
UPDATE users SET uid=0 WHERE name='';

The symptoms you'll see that tip you off that this is needed:
  1. node_load() is not loading nodes that you can prove are in the node table.
  2. node_delete() is not deleting nodes that you can prove are in the node table.
  3. The query SELECT * FROM users WHERE uid=0; returns zero rows.
Read full article

DAMP causing error messages in /var/log/syslog

The following error messages keep repeating in the syslog file every 10 seconds:

Read full article

The S-Files: Acquia Drupal Stack installer Got packet bigger than max_allowed_packet bytes

Robert Douglass's picture

Tech Support Case Studies

The S-Files are a taste of the support that you get with a subscription to Acquia Support. Our support team helps you solve technical problems relating to your Drupal sites.

The Acquia Drupal Stack installer is a major productivity booster for getting up and running in the development of your Drupal site. Sometimes, though, Drupal modules like to cache huge data packets in the database. This results in an error in your browser that says this:

Got packet bigger than ‘max_allowed_packet’ bytes

This is an indication that the data being sent between Drupal and the database is large, and exceeds the default setting.

Fortunately the fix for this is easy. In the application installation directory of the stack installer you'll find the following directory and file:

Applications/acquia-drupal on my Mac

Edit the my.ini file with whatever text editor you like, and add these lines to the end:

#Max packets
max_allowed_packet = 128M

Now stop and start the Acquia Drupal Stack using the Acquia Drupal Control Panel, and the new setting will come into effect. This should solve your max_allowed_packet problem!

XDebug, Komodo, and the Acquia Drupal Stack Installer

Robert Douglass's picture

The Acquia Drupal Stack installer for Mac OS X 10.6 (Snow Leopard) has been released, and it’s pretty cool (works on 10.5 Leopard, too, of course). I’m now using it as my primary development environment, replacing MAMP. In this article I show how you can configure the stack installer to use XDebug for step through debugging.

Read full article

Database size limit

I would like to import our DB to the Acquia Mac Stack, but I am limited on size. How do I import a 10mb database?

Also to modify the www files of the stack, where should I look?

MySQL and Acquia Drupal: MyIsam or InnoDB?

I've set up Acquia Drupal on IIS 6, Win 2003, 1GB RAM VM server with multisites. Everything is working great. Acquia Drupal is fantastic, I like it tons.

Question: when installing MySQL 5.1, after reading everything I could find on Drupal.org, this site, and Sun's website, I finally went with the recommendation on Sun's site to install Mysql with mixed Myisam and Innodb, as there seem to be so many differing opinions on which is best for Drupal. I also read "Achieving Optimal Mysql Performance for Drupal".

Read full article

Many to one forms within forms

This is a common problem, so I'm sure I'm searching for the wrong things, but does anyone know where to find a stable module that will allow me to include children forms on parent node forms?

If I were, for instance, creating a recipe and wanted to add main ingredients from the same form.

CCK multi-fields would be adequate if each "field" could have multiple "fields" or could just create nodes instead of simple associated information.

Hopefully this ramble makes sense.

Thanks,
Josh

On The Market Value of a Brand

Jeff Whatcott's picture

Sandro Groganz has an interesting post where he attempts to calculate the value of the MySQL brand as a component of the acquisition price Sun paid. Here's the punch line: "As of today, a whopping 85% of MySQL’s economic value added can be attributed to its strong Open Source brand." I haven't checked Sandro's math in detail, but it's clear that brand is a huge component of the value of MySQL."

Read full article