drupal.org - Deprecated - Database compatibility http://drupal.org/taxonomy/term/48/0 For problems and solutions related to database compatibility. en Announcement: This forum has been deprecated http://drupal.org/node/261472 <p>This forum is no longer in use.</p> <p>For alternatives, please see the <a href="http://drupal.org/project/issues?projects=3060&amp;components=database%20system&amp;states=1,16,8,13,14,15,2,4&amp;priorities=&amp;categories=&amp;users=" rel="nofollow">Database related issues for Drupal</a>.</p> <p>There is also group dedicated to discussions around Drupal and PostgreSQL at <a href="http://groups.drupal.org/postgresql" title="http://groups.drupal.org/postgresql" rel="nofollow">http://groups.drupal.org/postgresql</a></p> Deprecated - Database compatibility Thu, 22 May 2008 12:11:06 +0000 catch 261472 at http://drupal.org American Pro Moving and Storage, Unsupported operand types http://drupal.org/node/515640 <p>Hi,</p> <p>I stat getting this error "Unsupported operand types" .. and i don't know how to fix it.. i heard it has something to do with php version ? i use PHP5..</p> <p>any suggestions will be appreciated.</p> <p>Thanks in advance,<br /> American Pro Moving and Storage</p> http://drupal.org/node/515640#comments Deprecated - Database compatibility Drupal 6.x Fri, 10 Jul 2009 13:56:26 +0000 American Pro Moving and Storage 515640 at http://drupal.org Insert data using mysql_query in drupal 6.11 http://drupal.org/node/506850 <p>Hello,</p> <p>Iam using drupal 6.11.</p> <p>My problem :<br /> I created one separate table. Then i want to insert data in that table by using xxx.php file.<br /> The insert query presented in the xxx.php file.<br /> I Called that file using ajax from page.tpl.php file...</p> <p>here the file called SUCCESSFULLY, but it returned the error named as "<b>Fatal error: Call to undefined function db_query()</b>"..</p> <p>This is the query presented in that file....</p> <p> $query="insert into page_ajax set sname='$name'";<br /> db_query($query);</p> <p> if($result)<br /> {<br /> echo 'Connected successfully';<br /> }<br /> else<br /> {<br /> echo 'Not Connected SuccessFully';<br /> }</p> <p>But it returns the above error..</p> <p>The mysql_query() itself not worked...how to insert the data...</p> <p>or</p> <p>tell me how i can used the db_query() in that file...</p> <p>Kindly solve give me a solution...</p> <p>Regards<br /> Mani</p> http://drupal.org/node/506850#comments Deprecated - Database compatibility Drupal 6.x Wed, 01 Jul 2009 04:23:06 +0000 mani8php 506850 at http://drupal.org Creating Nodes programmatically via FTP uploads http://drupal.org/node/496460 <p>Hi, I'm pretty new to Drupal. I've built a site that I want to be able to upload to the database using an FTP through another software package (LabVIEW). I have 2 issues:</p> <p>1) I can get the FTP to successfully upload to the database file structure but Drupal doesn't seem to recognize that the files are in this folder until I go on the site and manually upload them and attach them to a node. Is there a way to make Drupal recognize that these files are in place? I've also tried the WebFM module which requires enters every file within a giving folder structure into the database, however it adds the files to a different location in the database and the Views module doesn't display files saved there.</p> <p>2) Is the a way to programmatically fill in the form for creating a node - i.e. some .php code that can enter the title, tags, body and attach an image and file and then publish the node?</p> <p>Thanks in advance for the help!</p> http://drupal.org/node/496460#comments Deprecated - Database compatibility Drupal 6.x Fri, 19 Jun 2009 15:22:57 +0000 psneer01 496460 at http://drupal.org Query for get data by node id http://drupal.org/node/466790 <p>how to get the node fields data by node id in drupal.</p> <p>i have the node id, but i need all the data of particular node, i need query</p> <p>anybody can help me.</p> <p>please</p> http://drupal.org/node/466790#comments Deprecated - Database compatibility Drupal 6.x Tue, 19 May 2009 10:18:00 +0000 dhinesh132 466790 at http://drupal.org Ste off-line http://drupal.org/node/449356 <p>Strange things happens.</p> <p>I'm starting my site and it writes Site off-line and:<br /> The mysql error was: Access denied for user 'correctusername'@'localhost' (using password: YES).</p> <p>Then most interesting thing happens: when i go to see what is wrong with the DB with myPHPadmin, everything magically becomes OK, website is working! Then i'm working with my site, then i visit it next day - Site offline again! </p> <p>Maybe this is some trouble with settings.php, ive set rights to 664.</p> http://drupal.org/node/449356#comments Deprecated - Database compatibility Drupal 6.x Thu, 30 Apr 2009 07:31:02 +0000 iex 449356 at http://drupal.org some field of Drupal's Db...? http://drupal.org/node/434662 <p>I want to know what information are stored in some field of the table users and vocabulary.</p> <p>users table:<br /> a) mode<br /> b) sort<br /> c) threshold<br /> d) init<br /> e) data</p> <p>vocabulary table:<br /> a) module</p> <p>thank you</p> http://drupal.org/node/434662#comments Deprecated - Database compatibility Drupal 5.x Wed, 15 Apr 2009 19:03:25 +0000 yoyitoxp 434662 at http://drupal.org a little help ...please http://drupal.org/node/428216 <p>hy.<br /> i need a little help with my drupal site.<br /> how can i create a new table in my database, and afther that too sea it in my drupal site(web page)?i don't know how can i see my database in my drupal site:(. a little help please<br /> tnx<br /> by</p> http://drupal.org/node/428216#comments Deprecated - Database compatibility Drupal 6.x Wed, 08 Apr 2009 20:59:13 +0000 alecsia_kiss9 428216 at http://drupal.org DB2 V9.5 replaces MySQL 5 database http://drupal.org/node/411552 <p>I have read on IBM pages that DB2 can be used with Drupal. However, there is no detailed documentation to follow.</p> <p>I am trying to use DB2 V9.5 with Drupal 6. But I am having a difficult time making it work.</p> <p>I have recompiled PHP 5, using extension IBM_DB2. I have run a sample PHP test program which connects to a DB2 database and performs SQL insert,update and delete statements. I discovered that Drupal, as part of the installation process, requires that DB2 installation script /includes/install.ibmdb2.inc be present so that Drupal can create a temporary table and perform similar SQL statements. So far so good: PHP talks to DB2 and PHP/DB2 runs in Drupal.</p> <p>However, Drupal has one more requirement: it tests to see whether DB2 conforms to its database abstraction layer. It does this by running various tests against file /includes/database.ibmdb2.inc. At this point I run out of luck and I receive the following error messages:</p> <p>PHP Warning: db2_exec() [<a href='function.db2-exec' rel="nofollow">function.db2-exec</a>]: Statement Execute Failed in /var/www/html/includes/database.ibmdb2.inc on line 90</p> <p><a href="http://drupal.org/node/411552" target="_blank">read more</a></p> http://drupal.org/node/411552#comments Deprecated - Database compatibility Drupal 6.x Mon, 23 Mar 2009 22:54:00 +0000 DrupalMTS 411552 at http://drupal.org My database made some... http://drupal.org/node/397064 <p>I got this error code... I Turned off some modules, and it stopped. But I have to fix it.. I turned off on i18n modules and Developer module too becouse there was more errors... This happend once before too and I just erased and installed database. Its not the solution, and now I got some users too...</p> <p> <div class="codeblock"><code>&nbsp; * user warning: Can&#039;t create/write to file &#039;/tmp/#sql_eaf_0.MYI&#039; (Errcode: 28) query: SELECT t.* FROM term_node r INNER JOIN term_data t ON r.tid = t.tid INNER JOIN vocabulary v ON t.vid = v.vid WHERE r.vid = 1 ORDER BY v.weight, t.weight, t.name in /home/yksikvan/public_html/modules/taxonomy/taxonomy.module on line 618.<br />&nbsp;&nbsp;&nbsp; * user warning: Can&#039;t create/write to file &#039;/tmp/#sql_eaf_0.MYI&#039; (Errcode: 28) query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta LEFT JOIN i18n_blocks i18n ON b.module = i18n.module AND b.delta = i18n.delta WHERE (i18n.language =&#039;et&#039; OR i18n.language =&#039;&#039; OR i18n.language IS NULL) AND ( b.theme = &#039;yksikvanem&#039; AND b.status = 1 AND (r.rid IN (2) OR r.rid IS NULL) )ORDER BY b.region, b.weight, b.module in /home/yksikvan/public_html/modules/block/block.module on line 407.</code></div></p> <p>In logs I saw this too:</p> <p><a href="http://drupal.org/node/397064" target="_blank">read more</a></p> http://drupal.org/node/397064#comments Deprecated - Database compatibility Drupal 6.x Tue, 10 Mar 2009 09:31:07 +0000 kaido24 397064 at http://drupal.org Weight of my backup file... http://drupal.org/node/388786 <p>I'm just with a simple doubt. My files of backup are variating in weight... sometimes they get lighter then the previous one. Is it a problem? or just compression?</p> <p>If my backup is broken, will i see the site as usual with a problem in some part or will i have a big white screen describing errors in database? that is: is it ok if my backup is as expected in a single page? or is there a possibility of my site to get a problem only in some pages?</p> <p>thanks!</p> http://drupal.org/node/388786#comments Deprecated - Database compatibility Drupal 6.x Mon, 02 Mar 2009 18:11:04 +0000 a.luiz.n 388786 at http://drupal.org Importing databace http://drupal.org/node/380026 <p>Hello,<br /> Currently, I'm creating a new dictionary website.<br /> I have a database in excel/CSV and wish to upload all the content.<br /> Doing it manually is almost impossible.</p> <p>Please advice how can I import all the database in one shot.</p> <p>Thanks,<br /> Barak</p> http://drupal.org/node/380026#comments Deprecated - Database compatibility Drupal 6.x Sun, 22 Feb 2009 12:09:37 +0000 barak2009 380026 at http://drupal.org Incorrect key file for table '/ramdisk/mysql/tmp/#sql_****_*.MYI' http://drupal.org/node/335529 <p>Our webhosting company upgraded over the weekend, and today we are getting an error message that shows up when we add a story, delete a node, publish a node, accessing the logs, and when accessing the taxonomy.</p> <p>Currently the host is running :<br /> Apache version 2.2.9 (Unix)<br /> PHP version 5.2.6<br /> MySQL version 5.0.67-community-<br /> log</p> <p>It seems like it is sporadic as it does not happen every single time.</p> <p>Haven't upgraded to 5.0 because of theming issues. Running the 4.7.11 drupal install. </p> <p>Has anyone else had this problem?</p> <p>Is there an easy fix?</p> <p>Here it the error message. It looks like we don't have write permissions or access to the .myi file, but the host says that is not the case.</p> <blockquote><p>Incorrect key file for table '/ramdisk/mysql/tmp/#sql_****_*.MYI'; try to repair it query: SELECT DISTINCT(n.nid), n.title, r.body, sticky, created FROM term_node t INNER JOIN node n ON t.nid = n.nid INNER JOIN node_revisions r ON r.vid = n.vid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view &gt;= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND ( t.tid IN (2,3,1,7,4,8,6,56) AND n.status = 1 ) ORDER BY sticky DESC, created DESC LIMIT 6 in /includes/database.mysql.inc on line 121</p></blockquote> http://drupal.org/node/335529#comments Deprecated - Database compatibility Drupal 4.7.x Mon, 17 Nov 2008 20:01:00 +0000 Dan01 335529 at http://drupal.org Site Moving: Mysql 5.0.51a to 5.0.37 issue http://drupal.org/node/329800 <p>Hi everybody,</p> <p>I'm new to drupal administration. I had configured drupal 6 on an internal test machine. Mysql version is 5.0.51a and it works fine for almost 6 months. Now I want to move the entire site to a server, with mysql version 5.0.37. I have backed up the site files, and the database using mysqldump (/opt/lampp/bin/mysqldump -p --user=$dbuser --host=$dbhost --add-drop-table --socket=/opt/lampp/var/mysql/mysql.sock $dbname &gt; dbcontent.sql) and important it to the new machine (echo "use $dbname; source dbcontent.sql;" | mysql --password --user=$dbuser --host=$dbhost). After that (in new machine), The main pages comes fine, but when I click on any other links, it says "page can not be found". What would be the issue, how can I fix it, is there any mysqldump compatibility mode? please help me!</p> <p>PS: Please note, in old server Mysql database is 5.0.51a (higer version) and in the new server it is 5.0.37 (older). I can not change the mysql version @ server!</p> <p>Best Regards,<br /> -Vivek<br /> Bangalore</p> http://drupal.org/node/329800#comments Deprecated - Database compatibility Drupal 6.x Tue, 04 Nov 2008 04:03:31 +0000 vivekkc 329800 at http://drupal.org Error when trying to add actions to imagecache http://drupal.org/node/325375 <p>Whenever I try and add an action to imagecache I receive this error.</p> <p> pg_query() [<a href='function.pg-query' rel="nofollow">function.pg-query</a>]: Query failed: ERROR: column &quot;action&quot; of relation &quot;imagecache_action&quot; does not exist LINE 1: ...TO imagecache_action (actionid, presetid, weight, action, da... ^ in /var/www/example.com/html/includes/database.pgsql.inc on line 126.</p> <p> query: INSERT INTO imagecache_action (actionid, presetid, weight, action, data) VALUES (12, 6, 0,&#039;imagecache_scale&#039;, &#039;a:3:{s:5:&quot;width&quot;;s:3:&quot;80%&quot;;s:6:&quot;height&quot;;s:0:&quot;&quot;;s:7:&quot;upscale&quot;;i:1;}&#039;) in /var/www/example.com/html/includes/database.pgsql.inc on line 145.</p> <p>Can some one help me out with this.</p> http://drupal.org/node/325375#comments Deprecated - Database compatibility Drupal 5.x Thu, 23 Oct 2008 22:00:04 +0000 Gompho 325375 at http://drupal.org how to setup? http://drupal.org/node/314787 <p>Yesterday, I downloaded this version, but it can not be successfully installed.<br /> There is no tutorial</p> http://drupal.org/node/314787#comments Deprecated - Database compatibility Drupal 7.x Mon, 29 Sep 2008 11:18:56 +0000 kelisi 314787 at http://drupal.org Database problem http://drupal.org/node/312496 <p>Hi</p> <p>I keep getting this message while trying to install drupal. the database info is right but i keep getting this</p> <p>Failed to connect to your MySQL database server. MySQL reports the following message: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2).</p> <p> * Are you sure you have the correct username and password?<br /> * Are you sure that you have typed the correct database hostname?<br /> * Are you sure that the database server is running?</p> <p>For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.</p> <p>can anyone help me out here?</p> http://drupal.org/node/312496#comments Deprecated - Database compatibility Drupal 6.x Tue, 23 Sep 2008 21:49:10 +0000 tony_b 312496 at http://drupal.org Getting so many "Cannot modify header information" warnings http://drupal.org/node/310191 <p>Dear,</p> <p>I am getting so many "Cannot modify header information - headers ... " and some Table warning, it seems there had been something unusuall.</p> <p>FYI here are the errors that I get:</p> <p>Warning: Unknown column 'data' in 'field list' query: SELECT data, created, headers, expire, serialized FROM ishc_cache WHERE cid = 'variables' in /home/plastasia/domains/plastica.asia/public_html/dp/includes/database.mysql.inc on line 128</p> <p>Warning: Unknown column 'cid' in 'where clause' query: UPDATE ishc_cache SET data = 'a:252:{s:13:\"theme_default\";s:7:\"pixture\";s:13:\"filter_html_1\";i:1;s:18:\"node_options_forum\";a:1:{i:0;s:6:\"status\";}s:18:\"drupal_private_key\";s:64:\"967cce04a947437e02175642fbce40ec71cb6c44d3086f95cff9fede3bacf508\";s:10:\"menu_masks\";a:18:{i:0;i:63;i:1;i:62;i:2;i:61;i:3;i:59;i:4;i:31;i:5;i:30;i:6;i:29;i:7;i:24;i:8;i:21;i:9;i:15;i:10;i:14;i:11;i:11;i:12;i:7;i:13;i:6;i:14;i:5;i:15;i:3;i:16;i:2;i:17;i:1;}s:12:\"install_task\";s:4:\"done\";s:13:\"menu_expanded\";a:0:{}s:9:\"site_name\";s:17:\"www.plastica.asia\";s:9:\"site_mail\";s:18:\"info@plastica.asia\";s:21:\"date_default_timezone\";s:4:\"3600\";s:23:\"user_email_verification\";b:1;s:9:\"clean_url\";s:1:\"1\";s:12:\"install_time\";i:122089 in /home/plastasia/domains/plastica.asia/public_html/dp/includes/database.mysql.inc on line 128</p> <p><a href="http://drupal.org/node/310191" target="_blank">read more</a></p> http://drupal.org/node/310191#comments Deprecated - Database compatibility Drupal 6.x Thu, 18 Sep 2008 12:18:31 +0000 sad-plast 310191 at http://drupal.org Create New System Using Drupal CMS http://drupal.org/node/307305 <p>This is forum for who want to develop system using the drupal cms</p> http://drupal.org/node/307305#comments Deprecated - Database compatibility Drupal 6.x Fri, 12 Sep 2008 04:00:53 +0000 jebat_co 307305 at http://drupal.org Fatal Error ! while installing modules...... http://drupal.org/node/294280 <p>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1209949 bytes) in C:\xampp\htdocs\includes\database.mysqli.inc on line 303</p> <p>this was the error i got while i was saving a module config. ... what should i do now?<br /> has anyone else encountered this problem while hosting drupal on xampp?</p> http://drupal.org/node/294280#comments Deprecated - Database compatibility Drupal 6.x Tue, 12 Aug 2008 12:55:21 +0000 y_b 294280 at http://drupal.org intergration http://drupal.org/node/293691 <p>How do i intergrate flash chat with drupal I have installed drupal and i have the flash chat i bought installed please be in detail in not the brightest thanks also i just recently learned how to install my own scripts :P</p> http://drupal.org/node/293691#comments Deprecated - Database compatibility Drupal 6.x Mon, 11 Aug 2008 05:06:13 +0000 sabermouth 293691 at http://drupal.org Please help! out of memory! where can i set this? http://drupal.org/node/286969 <p>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1009540 bytes) in /home/ccebunet/public_html/mandaue/includes/database.inc on line 200</p> <p>Warning: Table 'watchdog' was not locked with LOCK TABLES query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (3, 'php', '<em>Table &#039;sessions&#039; was not locked with LOCK TABLES\nquery: SELECT sid FROM sessions WHERE sid = &#039;e8d6798d0c32b5761c62c15e94781edc&#039;</em> in <em>/home/ccebunet/public_html/mandaue/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://ccebu.net/mandaue/', '', '203.177.60.53', 1216949915) in /home/ccebunet/public_html/mandaue/includes/database.mysql.inc on line 172</p> <p><a href="http://drupal.org/node/286969" target="_blank">read more</a></p> http://drupal.org/node/286969#comments Deprecated - Database compatibility Fri, 25 Jul 2008 01:42:04 +0000 ryohio 286969 at http://drupal.org MySQL tables corrupted http://drupal.org/node/278447 <p>last weekend few of our Drupal MySQL tables are corrupted and we not sure how it happen.....Is there any way to check cause of this issue...</p> <p>Bala</p> http://drupal.org/node/278447#comments Deprecated - Database compatibility Drupal 6.x Fri, 04 Jul 2008 08:01:32 +0000 balram76 278447 at http://drupal.org change DB http://drupal.org/node/275231 <p>Can I make login check users from another database ?</p> http://drupal.org/node/275231#comments Deprecated - Database compatibility Drupal 5.x Thu, 26 Jun 2008 12:19:40 +0000 elhelaly1999 275231 at http://drupal.org ASP.NET 3.5? http://drupal.org/node/274615 <p>Hi i am new to drupal CMS. Can i code in C# (PHP i dont know) ? Instead of MySql can i connect to MS SQL SERVER 2005?</p> <p>If yes where can i get the related help?</p> <p>Thanks in Advance...!!!<br /> Mukesh</p> http://drupal.org/node/274615#comments Deprecated - Database compatibility Drupal 6.x Wed, 25 Jun 2008 05:08:30 +0000 mukesh.t 274615 at http://drupal.org