For problems and solutions related to database compatibility.

drupal mysql database falls asleep

Hello,

I have searched on these forums for this bug but nothing solid came up. I am using drupal 4.7.3 with php 5.1.6 and mysql 4.1.21. My old site did not use drupal (oscommerce) and this bug never came up. Saying that, it seems that some of the connections is not disconnected after a page completely loads. I get many connections a day that are sleeping. If I don't manually delete them throughtout the day I will reach my maximum connections which is set at 50.

Firebird(data base) and Drupal

Hello that so.
not eh seen in the documentation, since make work drupal with firebird (data base), there some form?

greetings thanks

Database Problems..... can someone HELP me!!!!!

I have been trying to recover my drupal forum for over a week now.

Here are my recent posts asking for help...
1) http://drupal.org/node/83965
2) http://drupal.org/node/84275

All I'm asking for is a step-by-step instruction on how to get my site back up and running again.

Here's what I understand...
1) I can create a database from another hosting company and use that for my forum

Ok, I created a new database, redirected the paths in my "settings.php" file.... I am still getting an error message...
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'db405.perfora.net' (1) in /home2/mwt/public_html/rc96/rcForum/includes/database.mysql.inc on line 31
Unknown MySQL server host 'db405.perfora.net' (1)

This is how line 81 looks on my settings.php file...
.....url = 'mysql://dbo164533420:pebbles4@db405.perfora.net/db164533420'

Just so you know, my hosting company just shut my site down and did not contact me to let me know that there was a problem. After numerous emails (because phone contact was completely impossible), they told me that it was due to high sql inquiries and that my drupal database was the culprit.

So, they then backed-up the database prior to deleting it.
The filename was called... drpl1.gz
But somehow, I may have accidentally extracted it? and it now has no file extension to it, but I am able to read it via my browser or notepad.

Postgres db_lock_table behavior

Hello:

I'm read the Drupal API.
The function db_lock_table have this description:

"Lock a table. This function automatically starts a transaction"

And the MySQL code is:

"db_query('BEGIN; LOCK TABLE {'. db_escape_table($table) .'} IN EXCLUSIVE MODE'); "

What happend if I use this function with Postgres?
It's starts a transaction?
And the db_unlock_tables commits a transaction?
How I can rollback a transaction?

Thank's for your answer.

Ricardo

Database is not refreshed

I found one of the problems in using drupal database is sometimes it doesn't refresh.
In version 4.6x when i import the nodes, the existing data disappered on the page. But it is in the DB and so i did one by one edit and it appears on the page again.
In version 4.7x, sometimes the content created with flexinode automatically disappear and cannot view. But it is in DB and it can be editable.
Can anyone help to solve that problem?
I think it is database problem and if i'm wrong, please correct me by explaining more detail for that problem.

db_query could have array input for multiple database types

db_query accepts SQL then substitution values. On occasions the SQL has to be radically different for various databases which leads to people checking the database type then submitting different SQL. The database choice could be moved into db_query.

If db_query accepted an array for the SQL then the entries in the array could fit different databases. You could have a default entry and then named alternatives. The array could have the default as follows:

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility