如何修复/opt/lampp/bin/mysql.server:第261行:log_success_msg:找不到命令?

发布于 2025-02-10 06:25:33 字数 348 浏览 2 评论 0原文

在我的Linux Manjaro中安装XAMPP后,我面临这个错误。以前,即使存在此错误,我还是第一次打开phpmyadmin并进行一些查询,它做得很好。但是以某种方式,phpmyadmin显示空白的白屏。我该如何修复?

更新: 空白屏幕不再存在,但是警告代码仍然存在。警告代码对我的生产力没有任何作用。但是,仍然有点困扰我

I was facing this error after I installed xampp in my linux manjaro. Previously even with this error, first time I opened phpmyadmin and do some query it is doing fine. But somehow the phpmyadmin show blank white screen. How do I fix it?
my error

UPDATE:
The blank screen is no more, but the warning code is still present. The warning code did nothing to my productivity. But still, it is a bit bothering me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

流殇 2025-02-17 06:25:34

我只需删除log_success_msg函数即可在/opt/lampp/bin/mysql.server第261行,不是最优雅的解决方案,而是简单,我就解决了这个问题。值得注意的是,此编辑不会影响功能。

wait_for_ready () {
      i=0
      while test $i -ne $service_startup_timeout ; do
    
        if $bindir/mysqladmin ping >/dev/null 2>&1; then
          log_success_msg // ***Delete this function call***
          return 0
        elif kill -0 $! ; then
          :  # mysqld_safe is still running
        else
          # mysqld_safe is no longer running, abort the wait loop
          break
        fi
    
        echo $echo_n ".$echo_c"
        i=`expr $i + 1`
        sleep 1
    
      done
    
      log_failure_msg

  return 1
}
#

I solved this problem simply by removing the log_success_msg function call in /opt/lampp/bin/mysql.server at line 261, not the most elegant solution, but simple. It is worth noting that this edit does not affect the functionality.

wait_for_ready () {
      i=0
      while test $i -ne $service_startup_timeout ; do
    
        if $bindir/mysqladmin ping >/dev/null 2>&1; then
          log_success_msg // ***Delete this function call***
          return 0
        elif kill -0 $! ; then
          :  # mysqld_safe is still running
        else
          # mysqld_safe is no longer running, abort the wait loop
          break
        fi
    
        echo $echo_n ".$echo_c"
        i=`expr $i + 1`
        sleep 1
    
      done
    
      log_failure_msg

  return 1
}
#
一城柳絮吹成雪 2025-02-17 06:25:34

我在phpmyadmin上也有类似的问题:

[1] sudo nvim/opt/lampp/phpmyadmin/config.inc.inc.php 并更改此行:

// instead of localhost
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 

[2]在我的浏览器中更改URL从Localhost/phpMyAdmin127.0.0.1/phpmyadmin

这对我有用,希望能帮助某人。

I had a similar problem with phpMyAdmin and I resolved doing:

[1] sudo nvim /opt/lampp/phpmyadmin/config.inc.php and changing this line:

// instead of localhost
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 

[2] Changing in my browser the URL from localhost/phpmyadmin to 127.0.0.1/phpmyadmin

This worked for me, hope to help someone.

锦上情书 2025-02-17 06:25:34

您必须安装LBS模块,因为脚本使用它显示消息,如/opt/lamp/bin/bin/mysql.server Line 93的文档中所述

# Use LSB init script functions for printing
# messages, if possible

You have to install the LBS module, since the script uses it to display messages, as mentioned in the documentation of /opt/lamp/bin/mysql.server line 93

# Use LSB init script functions for printing
# messages, if possible
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文