VPS侦探论坛

 找回密码
 注册
12
返回列表 发新帖
楼主: halfice

LNMP安装错误 (MySQL安装错误)

[复制链接]
发表于 2013-6-16 15:20:51 | 显示全部楼层

patch就是打补丁

=================================================================== 下面不就是patch
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-6-16 15:54:18 | 显示全部楼层

回复 16# 的帖子



军哥,你看我这样理解对不对呢?


就是找到这个文件: mysql-5.5.8/sql-common/client_plugin.c

地址在:./lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c

然后在文件中添加以下内容:

但是,那个地址不是在安装包中吗?是不是要先修改安装包,把这个文件添加以下内容,然后再次安装呢?


--- mysql-5.5.8.orig/sql-common/client_plugin.c
+++ mysql-5.5.8/sql-common/client_plugin.c
@@ -233,6 +233,7 @@ int mysql_client_plugin_init()
{
   MYSQL mysql;
   struct st_mysql_client_plugin **builtin;
+  va_list dummy;

   if (initialized)
     return 0;
@@ -249,7 +250,7 @@ int mysql_client_plugin_init()
   pthread_mutex_lock(&LOCK_load_client_plugin);

   for (builtin= mysql_client_builtins; *builtin; builtin++)
-    add_plugin(&mysql, *builtin, 0, 0, 0);
+    add_plugin(&mysql, *builtin, 0, 0, dummy);

   pthread_mutex_unlock(&LOCK_load_client_plugin);

@@ -293,6 +294,7 @@ struct st_mysql_client_plugin *
mysql_client_register_plugin(MYSQL *mysql,
                              struct st_mysql_client_plugin *plugin)
{
+  va_list dummy;
   if (is_not_initialized(mysql, plugin->name))
     return NULL;

@@ -307,7 +309,7 @@ mysql_client_register_plugin(MYSQL *mysq
     plugin= NULL;
   }
   else
-    plugin= add_plugin(mysql, plugin, 0, 0, 0);
+    plugin= add_plugin(mysql, plugin, 0, 0, dummy);

   pthread_mutex_unlock(&LOCK_load_client_plugin);
   return plugin;

[ 本帖最后由 halfice 于 2013-6-16 15:59 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-6-17 09:48:07 | 显示全部楼层

必须手动编译安装,不能用安装包安装
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 17:19 , Processed in 0.036920 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表