How to use Web2py with Postgres SQL or MySQL installed through XAMPP (Windows) ?

411 views
Skip to first unread message

ArrC

unread,
Jul 23, 2011, 4:03:09 AM7/23/11
to web...@googlegroups.com
I somehow manged to install to install Postgres into Xampp directory ( by following a tutorial i found on web ) to use it under xampp environment which is working perfectly fine.
But now i think that python dosnt know where is Postgres located on my machine.

I have instlled Psycopg2 using http://www.stickpeople.com/projects/python/win-psycopg/  and MinGW GCC.

Will web2py will work with this kind of postgres installation or i have to install it the normal way i.e outside of xampp directory?

Thanks.

Kenneth Lundström

unread,
Jul 23, 2011, 4:24:16 AM7/23/11
to web...@googlegroups.com
web2py doesn´t care where your Postgres is installed. If you can get
Psycopg2 to work with your Postgres then web2py should work too.


Kenneth

Jay

unread,
Jul 23, 2011, 10:18:47 AM7/23/11
to web2py-users
ArrC, the proper way is to start the database using xampp (using
control panel, or script) then use web2py. Actually web2py will come
up even when the database it not up, but to actually interact with it
the db needs to be up.

So if yo get something like, "failed to ... after 5 tries", just start
the db via xampp. db is accessed by network location that is host and
port, if those are correct you are good to go.

On Jul 23, 4:03 am, ArrC <justmailnav...@gmail.com> wrote:
> I somehow manged to install to install Postgres into Xampp directory ( by
> following a tutorial i found on web ) to use it under xampp environment
> which is working perfectly fine.
> But now i think that python dosnt know where is Postgres located on my
> machine.
>
> I have instlled Psycopg2 usinghttp://www.stickpeople.com/projects/python/win-psycopg/ and MinGW GCC.

Ovidio Marinho

unread,
Jul 23, 2011, 11:42:56 AM7/23/11
to web...@googlegroups.com
install web2py.src, not web2py for windows.ok.
      


       Ovidio Marinho Falcao Neto
             ovid...@gmail.com
                     88269088
                   Paraiba-Brasil



2011/7/23 ArrC <justmai...@gmail.com>

Vasile Ermicioi

unread,
Jul 23, 2011, 12:21:46 PM7/23/11
to web...@googlegroups.com
I have experience with mysql:

if mysql is started that will work just fine

db = DAL('mysql://root:@localhost/mydb')


python shouldn't know where is mysql - it runs a on a port 3306, and python mysql drivers know that :)
Reply all
Reply to author
Forward
0 new messages