无法在AWS Lightail上访问MYSQL数据库

问题描述

我正在使用一个使用AWS / Lightsail的LAMP堆栈的简单应用程序。它曾经工作过一次,但是我重新启动了实例,但它停止了工作。数据不可用。我怀疑@R_502_5173@问题。下面是我尝试过的。有人可以为此提出任何解决方案吗?

bitnami@ip-123-45-67-89:~$ @R_502_5173@ -u root -p
Enter password: 
ERROR 2002 (HY000): Can't connect to local @R_502_5173@ server through socket '/opt/bitnami/@R_502_5173@
/tmp/@R_502_5173@.sock' (2)


bitnami@ip-123-45-67-89:~$  sudo /opt/bitnami/ctlscript.sh status
Cannot find any running daemon to contact. If it is running,make sure you are pointing to
 the right pid file (/var/run/gonit.pid)
   
bitnami@ip-123-45-67-89:~$ ps aux | grep @R_502_5173@
@R_502_5173@      607  0.0  6.0 1254660 29812 ?       Ssl  04:11   0:11 /usr/sbin/@R_502_5173@d
bitnami   3338  0.0  0.1   6076   824 pts/0    S+   14:27   0:00 grep @R_502_5173@
   
bitnami@ip-123-45-67-89:~$ sudo /opt/bitnami/ctlscript.sh status
Cannot find any running daemon to contact. If it is running,make sure you are pointing to
 the right pid file (/var/run/gonit.pid)

bitnami@ip-123-45-67-89:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            233M     0  233M   0% /dev
tmpfs            49M  2.8M   46M   6% /run
/dev/xvda1       20G  9.5G  9.2G  51% /
tmpfs           242M     0  242M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           242M     0  242M   0% /sys/fs/cgroup
/dev/xvda15     124M  262K  124M   1% /boot/efi
tmpfs            49M     0   49M   0% /run/user/1000

bitnami@ip-123-45-67-89:~$ sudo /opt/bitnami/ctlscript.sh stop @R_502_5173@
Stopped @R_502_5173@

bitnami@ip-123-45-67-89:~$ sudo /opt/bitnami/ctlscript.sh start @R_502_5173@
Failed to start @R_502_5173@: Failed to start @R_502_5173@

bitnami@ip-123-45-67-89:~$ ps aux | grep @R_502_5173@
@R_502_5173@      607  0.0  3.8 1254660 18912 ?       Ssl  04:11   0:11 /usr/sbin/@R_502_5173@d
bitnami   3560  0.0  0.1   6076   884 pts/0    S+   14:39   0:00 grep @R_502_5173@

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)