I'm having trouble creating the database in MySQL in pythonanywhere the
error is this:
Error ticket for "plantaotcc"Ticket ID
177.158.224.217.2013-06-17.01-44-42.a6cbbaa6-02f4-44cd-b883-4f98a52c1102
<type 'exceptions.RuntimeError'> Failure to connect, tried 5 times:
Traceback (most recent call last): File
"/home/ovidiomarinho/w/web2py/gluon/dal.py", line 7348, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs) File
"/home/ovidiomarinho/w/web2py/gluon/dal.py", line 2499, in __init__ if
do_connect: self.reconnect() File
"/home/ovidiomarinho/w/web2py/gluon/dal.py", line 592, in reconnect
self.connection = f() File "/home/ovidiomarinho/w/web2py/gluon/dal.py",
line 2497, in connector return self.driver.connect(**driver_args) File
"/usr/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in
Connect return Connection(*args, **kwargs) File
"/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 187,
in __init__ super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2002, "Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)") Versão web2py™Version
2.4.6-stable+timestamp.2013.04.06.17.37.38PythonPython 2.7.3:
/usr/local/bin/uwsgi (prefix: /usr/local) Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
Traceback (most recent call last):
File "/home/ovidiomarinho/w/web2py/gluon/restricted.py", line 212,
in restricted
exec ccode in environment
File "/home/ovidiomarinho/w/web2py/applications/plantaotcc/models/db.py"
<https://www.ovidiomarinho.com.br/admin/default/edit/plantaotcc/models/db.py>,
line 22, in <module>
db = DAL('mysql.server://ovidiomarinho:ovidio@localhost/plantaotcc')
File "/home/ovidiomarinho/w/web2py/gluon/dal.py", line 7368, in __init__
raise RuntimeError("Failure to connect, tried %d times:\n%s" %
(attempts, tb))
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
File "/home/ovidiomarinho/w/web2py/gluon/dal.py", line 7348, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File "/home/ovidiomarinho/w/web2py/gluon/dal.py", line 2499, in __init__
if do_connect: self.reconnect()
File "/home/ovidiomarinho/w/web2py/gluon/dal.py", line 592, in reconnect
self.connection = f()
File "/home/ovidiomarinho/w/web2py/gluon/dal.py", line 2497, in connector
return self.driver.connect(**driver_args)
File "/usr/local/lib/python2.7/site-packages/MySQLdb/__init__.py",
line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py",
line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2002, "Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)")
Ovidio Marinho Falcao Neto
ITJP.NET.BR
[email protected]
83 8826 9088 - Oi
83 9336 3782 - Claro
Brasil
--
---
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/groups/opt_out.