For problems and solutions related to database compatibility.

Persistent DB connections – supported or not?

I recently red the following comment (by chx) about Drupal not supporting persistent connections: http://drupal.org/node/49836#comment-254512

As database.pgsql.inc states the following, I've always thought that they were actually supported (at least to some extent):

/**
 * Initialize a database connection.
 *
 * Note that you can change the pg_connect() call to pg_pconnect() if you
 * want to use persistent connections. This is not recommended on shared hosts,
 * and might require additional database/webserver tuning. It can increase
 * performance, however, when the overhead to connect to your database is high
 * (e.g. your database and web server live on different machines).
 */

So, as I've most of the time ran the the database in different machine, I've been using pg_pconnect(). Only after I had red the said comment I realised that this is probably the reason I've been getting “table already exists” errors with code using temporary tables (e.g. search).

Now I'm considering filing a bug report to get that comment removed, or to get it patched with a statement that warns that persistent connections are not actually supported. Because right now it gives admins a quite confusing message that using persistent connetions is indeed at least partially supported.

user warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

Hi,

When i opened my site i saw these errors and i don't know what to understand from this. Could someone let me know what is the issue here. The site is used to work fine lately and this is the first time i'm seeing these errors. When i refresh the page the errors are gone. I think it should be something from Hosting server because i see the home directory of the site. Please let me know.

user warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) query: SELECT DISTINCT(n.nid), n.title, n.created FROM node n INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = -1 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'cac_lite') OR (na.gid = 0 AND na.realm = 'tac_lite') OR (na.gid = 1 AND na.realm = 'term_access'))) AND ( n.type = 'blog' AND n.status = 1 ) ORDER BY n.created DESC LIMIT 0, 10 in /home/paradesi/public_html/includes/database.mysql.inc on line 167.

Sample Database project

Hello,

I installed Durpal 5.1 in My PC.

I configure couple of module with drupal 5.1,

I want to developed new project in drupal, I'm very Know LAMP(Linux Apache Mysql PHP).

So anybody can you guide me that " How we can integrate database of project with drupal database ?" and
"How we can create page according that database ?"

For example

database name Student
table name is stud ( rollno, name, address )

we have to view the All student with Edit / Delete

Please let me know anybody can I help

Thanks

Need some information

Hi there,
please let me know how to connect the databse in drupal and how to insert the data into the database.
Thanks in advance

User has exceeded the 'max_conn_per_hour' resource

After a year when my drupal works fine I get such error:

User has exceeded the 'max_conn_per_hour' resource

After a year when my drupal works fine I get such error:

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility