On 24 May 2014 08:36, Nishmita Singhla <[email protected]> wrote:

Hey Fellow programmers,
>
> *Ticket ID*
>
> 127.0.0.1.2014-05-24.11-24-31.e7ecce1d-a357-4b8f-b912-1eb609468d81<type 
> 'exceptions.RuntimeError'> Failure to connect, tried 5 times: Traceback (most 
> recent call last): File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", 
> line 7845, in __init__ File 
> "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 688, in __call__ File 
> "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 2728, in __init__ 
> File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 648, in 
> reconnect File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 2726, 
> in connector File 
> "/home/mdipierro/make_web2py/web2py/gluon/contrib/pymysql/__init__.py", line 
> 93, in Connect File 
> "/home/mdipierro/make_web2py/web2py/gluon/contrib/pymysql/connections.py", 
> line 575, in __init__ File 
> "/home/mdipierro/make_web2py/web2py/gluon/contrib/pymysql/connections.py", 
> line 743, in _connect OperationalError: (2003, "Can't connect to MySQL server 
> on '127.0.0.1' (10061)")
>
>
> If you read the information on the line above you will see

Can't connect to MySQL server on '127.0.0.1


Apparently either you don't have a MySQL server running on your computer or
you have not setup the web2py application to communicate correctly with the
MySQL server.

Have a look in the 'models' directory in the db.py (or maybe 0.py if there
is one) and edit the lines that define the database connection according to
what you have seen in the Web2py book.

Regards
Johann

 --
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to