Olá Gabriel,
Estou no passo a passo de criar o WordPress em um servidor com WordOps.
No meu primeiro site de WordPress, apareceu o seguinte erro no banco de dados.
File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 633, in connect
sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/bin/wo”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/main.py”, line 102, in main
app.run()
File “/opt/wo/lib/python3.11/site-packages/cement/core/foundation.py”, line 882, in run
return_val = self.controller._dispatch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 477, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_create.py”, line 399, in default
wo_wp_creds = setupwordpress(self, data, vhostonly)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_functions.py”, line 288, in setupwordpress
data = setupdatabase(self, data)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_functions.py”, line 200, in setupdatabase
WOMysql.execute(self, “create database {0}
”
File “/opt/wo/lib/python3.11/site-packages/wo/core/mysql.py”, line 71, in execute
connection = WOMysql.connect(self)
^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/core/mysql.py”, line 34, in connect
connection = pymysql.connect(
^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 358, in init
self.connect()
File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 711, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)