Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

MySQL Connection Failure

Name: Anonymous 2007-07-27 2:05 ID:1CFt/ngh

So, how do you fix this error?

Name: Anonymous 2007-07-27 2:09 ID:t6skE9nW

hire an expert programmer

Name: Anonymous 2007-07-27 2:11 ID:vTdcm6Cd

MySQL is causing your connections to fail. Removing it will fix your connections.

Name: Anonymous 2007-07-27 2:44 ID:1CFt/ngh

And replace with SQLite?  lol

Name: Anonymous 2007-07-27 4:49 ID:Heaven

>>4
Yes. Or PostgreSQL. MySQL is fail used only by noobs.

Name: Anonymous 2007-07-27 12:47 ID:NqZJ055D

Why is there so much hatred for MySQL?

Name: Anonymous 2007-07-27 12:48 ID:Heaven

>>6
Because it's a toy.

Name: Anonymous 2007-07-27 12:51 ID:Jp8eArej

>>6

Beats me. But consider that they're advocating SQLite...

Name: Anonymous 2007-07-27 13:33 ID:1h95mwqx

srsly. sqlite is fine w/ 1 hit/sec or for a desktop app used by 1 person, but you need something > sqlite for 4chan. mysql/postgresql are the only options... fer reals.

Name: Anonymous 2007-07-27 13:38 ID:zqTMG8SM

>>6
Because it lacks standard RDBMS features and is fucking slow for anything remotely complicated. Use PostgreSQL.

Name: Anonymous 2007-07-27 13:45 ID:zqTMG8SM

SQLite is awesome for a lot of things, it's fast and easy to deploy/use/manage. It's grate for local applications and also a good choice for very simple web applications.

Name: Anonymous 2007-07-27 13:56 ID:Jp8eArej

Hey guys, let's use flat files. Screw caching!

Name: Anonymous 2007-07-27 14:47 ID:NqZJ055D

>>10
it lacks standard RDBMS features and is fucking slow for anything remotely complicated
What in the fuck, are you still living 10 years ago? That was MySQL 3.23. MySQL 5.0 is fully ACID-compliant with several storage engines, supports unions, subqueries, foreign keys, stored procedures/functions/triggers (though they suck), views, and strict data types, and it has a better optimizer and you don't need to lock before writing securely; in fact, InnoDB doesn't even lock reads when writing to the same row.

Name: Anonymous 2007-07-27 15:11 ID:Heaven

>>13
And all that is just a pile of cheap and poorly implemented hacks.

Name: Anonymous 2007-07-27 16:16 ID:t1qDFQ92

>>13
And I'll bet you $5 that 4chan is using MySQL4.

Name: Anonymous 2007-07-27 17:21 ID:YoFfXhCn

Microsoft SQL Server or GTFO

Name: Anonymous 2007-07-27 20:39 ID:NqZJ055D

>>14
InnoDB is not a "poorly implemented hack". Do you actually have any idea of what you're talking about? Many database engines in widespread use today can envy InnoDB's MVCC system.

>>15
Probably, but unlike PHP, MySQL 5 is fully backwards-compatible with MySQL 4 and upgrading from one to another is a snap. Basically, you get extra performance (and more features to use in future development) at no cost of any kind.

Name: Anonymous 2007-07-27 20:43 ID:ouvxLYDB

>>17
Absolutely correct. 14 sounds like a Microsoft/PostgreSQL/Oracle fanboy.

Name: Anonymous 2007-07-27 20:57 ID:Heaven

Oh, come on, even Wikipedia says that:
MySQL version 5.0, however, does not currently guarantee ACID consistency
So, there. MySQL sux.

Name: Anonymous 2007-08-22 16:42 ID:boJdmWQ9

Time for Firebird to go with that Firefox.

Name: Anonymous 2007-08-22 23:16 ID:Heaven

>>11
it's grate

Name: Anonymous 2007-08-23 2:36 ID:1/8BkN4U

You guys are all n00bs.

$file = file_get_contents('mysql_file.php');
$file = str_replace('mysql_','@mysql_',$file);
eval($file);

Name: Anonymous 2007-08-23 3:50 ID:j33uUPoi

>>22
@ is too slow for real time applications

Name: Anonymous 2007-08-23 4:09 ID:FH1HYvG1

>>6
I don't know, maybe because of GNU/hippies? I don't understand why SQLite is "good" and MySQL is "bad". To me, SQLite, MySQL and PostgreSQL are all good products, which have their advantages and disadvantages, and different uses in the case of SQLite.

>>10
Fail. See >>13.

>>19
What? Those fags got it wrong. If you use InnoDB with its default options, it's fully ACID-compliant. You can give up on up to a second of data to increase performance a lot (like in any database) by setting innodb_flush_log_at_trx_commit to 0, but that's not even its default value.

Name: Anonymous 2007-08-23 7:52 ID:TESuNPdY

>>23
error_reporting(0);

Name: Anonymous 2007-09-18 22:13 ID:AMKoKt6J

Roh roh

Name: Anonymous 2007-09-18 22:16 ID:yJsQPViR

>>7
ironic coming from a board of people who circlejerk to useless academia languages like lisp

Name: Anonymous 2007-09-19 0:08 ID:QrVUCOHk

I just don't understand why MySQL is so popular.  Postgres, Firebird, and I presume other free ones leave it in the dust.

Name: Anonymous 2007-09-19 0:54 ID:M6UFrgGX

I just don't understand why Java is so popular.  C, D, and I presume other free ones leave it in the dust.

Name: Anonymous 2007-09-19 2:12 ID:v8JVQQiE

ehh im thinking more liek...

<?
echo "MySQL Connection Error!";
//code so that we can MODGET goes here
exit();
?>

Name: Anonymous 2007-09-19 4:59 ID:oCIbvFNm

>>28
In which ways?

Name: Anonymous 2007-09-19 15:21 ID:XX3OADKF

while(true) {

if (@mysql_connect("host","user","pass")) {
return true;
}
else {
return false;
}

faggots, learn2php

Name: Anonymous 2007-09-19 15:30 ID:LBzVRfRy

>>32
faggot, learn2closingbracket

Name: Anonymous 2007-09-19 17:46 ID:Heaven

>>32
faggot, how are you going to close that handleless connection?

Name: Anonymous 2007-09-20 9:02 ID:WTLtLR5x

>>34
faggot, php closes it automatically

Name: Anonymous 2007-09-20 9:18 ID:Heaven

>>35
faggot, faggot

Name: Anonymous 2007-09-20 11:11 ID:4vT8tob0

mysql_pconnect, faggots.

Name: Anonymous 2007-09-20 12:58 ID:HaoXBKtn

faggot, no need to keep its handle because next call to mysql_pconnect will reuse it, but persistent connections work like shit and are not recommended, besides MySQL takes microseconds to open a connection

Name: Anonymous 2007-09-20 13:39 ID:Heaven

>>38
faggot, opening a connection is hundreds of times more expensive than executing a query.

Name: Anonymous 2007-09-20 17:17 ID:gr3YLgw9

>>39
faggot, this is true for other databases, but it's really really fast on MySQL, try it

Name: Anonymous 2007-09-20 17:46 ID:GGucVbg7

>>40
faggot, it's just as slow in MySQL as it is in Oracle. I have benchmarks

Name: Anonymous 2007-09-20 23:46 ID:LNmeG1Kb

>>38
How do I tuned database and PHP.

Name: Anonymous 2007-09-21 0:48 ID:R2R4difF

>>42
faggot

Name: Anonymous 2007-10-09 14:38

Oh, noes!

Name: Anonymous 2007-10-09 15:47

>>40
faggot, make some real applications on a real server, not on your localhost

Name: Anonymous 2007-10-09 15:54

>>40
faggot, i'm not sure if I completely believe that, but I'm honestly too lazy to set up a benchmark right now to test it, so I can offer no substantial response. faggot.

Name: Anonymous 2007-10-09 16:41

faggot.

Name: Anonymous 2007-10-09 16:42

>>39
faggot, read up on connection pooling, faggot.

Name: Anonymous 2007-10-09 16:43

>>43
IDfag.

Name: Anonymous 2011-02-03 1:20

Name: Anonymous 2011-02-03 6:51

Don't change these.
Name: Email:
Entire Thread Thread List