For problems and solutions related to database compatibility.

Unable to connect to databse

hello ,

i m using xaampp..on my local computer . i have to connect to database my sql.... at my local computer its working

(
$link=mysql_connect("localhost","root","");
if(!$link)
{
echo "Unable to connect to DATABASE:" .mysql_error();
exit;
}
$res=mysql_select_db('icng') or die('could not select database');)

but when i load my files to remote computer at that time it is not connecting to mysql..

it gives an error of " unable to connect to localhost 10061"..

MySQL Server has gone away

I know there have been numerous posts about this, and I've read a lot of the solutions.

http://drupal.org/node/186384

But like a few people are experiencing (refer link above), when being hosted by Go Daddy, or anyother host, we don't have access to to the my.ini file, to change the env variables.. like timeout or packetsize.

Siteground as low-cost remote MySQL server

Advance thanks to anyone who can chime in.

I run a popular, though not wildly so, science news site. I have a VPS through the terrific Servint.com.

I'd like to use a low-cost Siteground.com (or comparable) account strictly as a MySQL server for my Drupal installation.

I'm having trouble and I've searched the boards.

Specifically, I don't know how to change settings.php to account for the remote server. The db URL seems like the trick, but I can't seem to get it right.

I've been trying variations on:

How to avoid entries in "node" table when an image or video gets updated? instead of that can i put entry in some other table?

hi..

i feel that entry of uploaded images or videos in the ' node' table decreases the performance of site.. can i avoid it?But I need an entry when the particular image or video is uploaded related to "node"

regards,
sunitha

Request contained a malicious JavaScript or SQL injection attack

I'm using BB2 ( badbehavior2 ). Today I had the following in the log files:

403 Request contained a malicious JavaScript or SQL injection attack 2007-11-14 18:09:40 72.14.193.1 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; IEMB3; IEMB3)

The code used:
/node/4124#comment-477

Headers:
GET /node/4124#comment-477 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */* Accept-Encoding: gzip Accept-Language: en-us Cookie: PHPSESSID=554c98325f86ae95927204be27b834bc; bb2_screener_=1195063773+72.14.193.1+86.106.50.55 Host: www.mysite.com Referer: http://www.mysite.com/node/4124 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; IEMB3; IEMB3) X-Forwarded-For: 86.106.50.55 X-moz: prefetch

IP Whois = 72.14.193.1 - - [20/May/2007:12:38:06 +0200] "GET /images/cs.gif HTTP/1.1" 200 546 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;)"

IP Whois = 86.106.32.0/19 inetnum: 86.106.32.0 - 86.106.63.255
netname: SC-UPC-ROMANIA-SA
descr: SC UPC Romania SA
descr: str. Herastrau 17
descr: Bucuresti 1
country: ro
admin-c: AH1598-RIPE
tech-c: MA190-RIPE
status: ASSIGNED PA
remarks: Registered trough http://www.jump.ro/ip.html

Problems with table index (Sorry for crossposting. I realized that here is the best place)

My website www.operatoridelbenessere.com is going well but checking with phpmyadmin it shows:
(I translate from Italian)

Problems with table index of table`community_tags`
keys PRIMARY e INDEX should not be assigned both to 'tid' column

Problems with table index of table`node`
keys PRIMARY e INDEX should not be assigned both to 'nid' column
More than one key INDEX has been created for the column `status`

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility