# impossible to establish a connection

**URL:** <https://forums.percona.com/t/impossible-to-establish-a-connection/7030>\
**Category:** LAMP Stack\
**Created:** [May 26, 2019, 11:58pm UTC](https://forums.percona.com/t/impossible-to-establish-a-connection/7030 "2019-05-26T23:58:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paweltech](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@paweltech](https://forums.percona.com/u/paweltech)\
**Post date:** [May 26, 2019, 11:58pm UTC](https://forums.percona.com/t/impossible-to-establish-a-connection/7030/1 "2019-05-26T23:58:57Z")

</div>

impossible to establish a connection  
I installed percona server in my ubuntu 18.04  
The status is active:  
root @ ubuntu1804lts: ~ # sudo service mysql status  
● mysql.service - Percona Server  
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)  
Active: active (running) since Mon 2019-05-27 05:13:08 UTC; 12min needle  
Process: 936 ExecStartPre = / usr / share / mysql / mysql-systemd-start pre (code = exited, status = 0 / SUCCESS)  
Main PID: 1071 (mysqld)  
Status: “SERVER\_OPERATING”  
Tasks: 39 (limit: 1004)  
CGroup: /system.slice/mysql.service  
└─1071 / usr / sbin / mysqld

May 27 05:13:01 ubuntu1804lts systemd [1]: Starting Percona Server …  
May 27 05:13:08 ubuntu1804lts systemd [1]: Started Percona Server.

Unfortunately, installing wordpress, I can’t connect to the database

root@ubuntu1804lts:~# ps aux | grep mysql  
mysql 1071 0.7 19.4 1374336 394372 ? Ssl 05:13 0:06 /usr/sbin/mysqld  
root 1724 0.0 0.0 13136 996 pts/0 S+ 05:26 0:00 grep --color=auto mysql

root@ubuntu1804lts:~# netstat -lntu  
Active Internet connections (only servers)  
Proto Recv-Q Send-Q Local Address Foreign Address State  
tcp 0 0 127.0.0.53:53 0.0.0.0:\* LISTEN

tcp6 0 0 :::33060 :::\* LISTEN  
tcp6 0 0 :::3306 :::\* LISTEN  
tcp6 0 0 :::80 :::\* LISTEN  
tcp6 0 0 :::22966 :::\* LISTEN  
udp 0 0 127.0.0.53:53 0.0.0.0:\*

Thank you

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [November 23, 2020, 9:51am UTC](https://forums.percona.com/t/impossible-to-establish-a-connection/7030/2 "2020-11-23T09:51:53Z")

</div>

Can you connect locally to the Percona Server using mysql client? Have you set up the MySQL users needed for Wordpress?

Also, is the app located on the same server or connecting remotely?
