Обсуждение: help with *mysql*

Поиск
Список
Период
Сортировка

help with *mysql*

От
pilsl@goldfisch.at
Дата:
my nightmare is coming true: I need to port a whole CMS from postgres
to mysql. I just started taking the first looks on mysql and all seems so wrong ;)

it doesnt have system-unique OID's, it doesnt have something like
offset, it doesnt accept my ROLLBACK.

but: I will have to learn how to move around all this things, so what
I want to ask here is, if someone knows some docs about all these
things a programmer will have to face if switching from postgres to
mysql.


and the reason for all this is, that all this cheep providers offer
mysql and all customers think, hey : this provider is 100USD less per
month and offer 100.000 emailaliases. I tried to mention "transaction"
and "sql-standard" but they only stared at me ...


thnx,
peter

ps: sorry for this whiny-posting

Re: help with *mysql*

От
"Joel Burton"
Дата:
Find out what version of mysql they're using. Recent versions include UNION
queries and allow table types that have (limited) support for transactions
and foreign key constraints; older versions don't.

MySQL can be run in ANSI-compliant mode, which fixes things like: SELECT foo
|| bar means concatenate foo + bar, rather than meaning foo OR bar, which is
the usual MySQL interpretation.

There's a document I wrote in techdocs about moving from mysql to pgsql.
Read it backwards.

Sorry to hear. PG is (IMHO) much nicer than mysql, especially if you take
advantage of its features like transactions, foreign keys, triggers, etc.,
which are missing or less featureful in mysql.

- J.

Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant

> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org]On Behalf Of
> pilsl@goldfisch.at
> Sent: Monday, May 06, 2002 5:45 PM
> To: pgsql-general@postgresql.org
> Subject: [GENERAL] help with *mysql*
>
>
> my nightmare is coming true: I need to port a whole CMS from postgres
> to mysql. I just started taking the first looks on mysql and all
> seems so wrong ;)
>
> it doesnt have system-unique OID's, it doesnt have something like
> offset, it doesnt accept my ROLLBACK.
>
> but: I will have to learn how to move around all this things, so what
> I want to ask here is, if someone knows some docs about all these
> things a programmer will have to face if switching from postgres to
> mysql.
>
>
> and the reason for all this is, that all this cheep providers offer
> mysql and all customers think, hey : this provider is 100USD less per
> month and offer 100.000 emailaliases. I tried to mention "transaction"
> and "sql-standard" but they only stared at me ...
>
>
> thnx,
> peter
>
> ps: sorry for this whiny-posting
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>


Re: help with *mysql*

От
wsheldah@lexmark.com
Дата:

Once you come up with all the conversion steps, I'd suggest you both come up
with a migration plan and a cost for the plan. If it's possible to put a dollar
figure on either ongoing costs or added risks, do that too. Then show those
numbers to your customer. Also figure out how many months of saving $100/month
it will take to recover the costs of the initial conversion, taking the time
value of money into account.

If they still go forward with it, see if you can't get a transaction-enabled
version of MySQL going. Haven't worked with MySQL since they added transactions,
but it's supposed to be supported at some level. See what NuSphere is offering
these days. I wish you the best of luck.

Hope this helps,

Wes Sheldahl



pilsl%goldfisch.at@interlock.lexmark.com on 05/06/2002 05:45:15 PM

To:   pgsql-general%postgresql.org@interlock.lexmark.com
cc:    (bcc: Wesley Sheldahl/Lex/Lexmark)
Subject:  [GENERAL] help with *mysql*


my nightmare is coming true: I need to port a whole CMS from postgres
to mysql. I just started taking the first looks on mysql and all seems so wrong
;)

it doesnt have system-unique OID's, it doesnt have something like
offset, it doesnt accept my ROLLBACK.

but: I will have to learn how to move around all this things, so what
I want to ask here is, if someone knows some docs about all these
things a programmer will have to face if switching from postgres to
mysql.


and the reason for all this is, that all this cheep providers offer
mysql and all customers think, hey : this provider is 100USD less per
month and offer 100.000 emailaliases. I tried to mention "transaction"
and "sql-standard" but they only stared at me ...


thnx,
peter

ps: sorry for this whiny-posting

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org





Re: help with *mysql*

От
Gregory Seidman
Дата:
pilsl@goldfisch.at sez:
} my nightmare is coming true: I need to port a whole CMS from postgres to
} mysql. I just started taking the first looks on mysql and all seems so
} wrong ;)

Yup. I am in the process of migrating my company's web backend from mysql
to postgresql because I couldn't stand the limitations on the SQL I could
write. I kept having to escape to a procedural language for things that can
be done in standard SQL.

[...]
} and the reason for all this is, that all this cheep providers offer
} mysql and all customers think, hey : this provider is 100USD less per
} month and offer 100.000 emailaliases. I tried to mention "transaction"
} and "sql-standard" but they only stared at me ...

Yup, we are in the process of moving to a host provider who only provides
mysql. My solution? I'm running my own postgresql DB, with the host's
blessing (but not support). It might be worth your while to do the same.
You might even be able to make the argument to management that the money
saved by not wasting your time porting to another (painfully limited) DB
can be spent on a support contract for PostgreSQL.

} thnx,
} peter
--Greg