Установка на FreeBSD 10.2-RELEASE-p9 amd64

161 views
Skip to first unread message

Кирилл Кириллов

unread,
Feb 5, 2016, 4:11:18 PM2/5/16
to Pinba Engine development list (in Russian)
Здравствуйте.
Пытался собрать новую версию pinba
при компиляции возникают ошибки
mysql-5.6.27 установлен из портов

# make
Making all in src
make  all-am
/bin/sh ../libtool --preserve-dup-deps  --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H  -I.  -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/sql -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/include -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/regex -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27     -g -O2 -fno-exceptions -fno-rtti -I/usr/local/include -I/usr/local/include -DMYSQL_DYNAMIC_PLUGIN -DNDEBUG -DJUDYERROR_NOTEST -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cc
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/sql -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/include -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/regex -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27 -g -O2 -fno-exceptions -fno-rtti -I/usr/local/include -I/usr/local/include -DMYSQL_DYNAMIC_PLUGIN -DNDEBUG -DJUDYERROR_NOTEST -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cc  -fPIC -DPIC -o .libs/main.o
main.cc:141:3: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
                cpu_set_t mask;
                ^~~~~~~~~
                cpusetid_t
/usr/include/sys/types.h:84:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;
                        ^
main.cc:143:3: error: use of undeclared identifier 'CPU_ZERO'
                CPU_ZERO(&mask);
                ^
main.cc:144:3: error: use of undeclared identifier 'CPU_SET'
                CPU_SET(cpu_num, &mask);
                ^
main.cc:145:3: error: use of undeclared identifier 'pthread_setaffinity_np'
                pthread_setaffinity_np(D->thread_pool->threads[i], sizeof(mask), &mask);
                ^
main.cc:179:3: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
                cpu_set_t mask;
                ^~~~~~~~~
                cpusetid_t
/usr/include/sys/types.h:84:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;
                        ^
main.cc:181:3: error: use of undeclared identifier 'CPU_ZERO'
                CPU_ZERO(&mask);
                ^
main.cc:182:3: error: use of undeclared identifier 'CPU_SET'
                CPU_SET(settings.cpu_start + 0, &mask);
                ^
main.cc:183:3: error: use of undeclared identifier 'pthread_setaffinity_np'
                pthread_setaffinity_np(collector_thread, sizeof(mask), &mask);
                ^
main.cc:185:3: error: use of undeclared identifier 'CPU_ZERO'
                CPU_ZERO(&mask);
                ^
main.cc:186:3: error: use of undeclared identifier 'CPU_SET'
                CPU_SET(settings.cpu_start + 1, &mask);
                ^
main.cc:187:3: error: use of undeclared identifier 'pthread_setaffinity_np'
                pthread_setaffinity_np(data_thread, sizeof(mask), &mask);
                ^
main.cc:189:3: error: use of undeclared identifier 'CPU_ZERO'
                CPU_ZERO(&mask);
                ^
main.cc:190:3: error: use of undeclared identifier 'CPU_SET'
                CPU_SET(settings.cpu_start + 2, &mask);
                ^
main.cc:191:3: error: use of undeclared identifier 'pthread_setaffinity_np'
                pthread_setaffinity_np(stats_thread, sizeof(mask), &mask);
                ^
14 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /soft/pinba_engine-RELEASE_1_1_0/src
*** Error code 1

Stop.
make[1]: stopped in /soft/pinba_engine-RELEASE_1_1_0/src
*** Error code 1

Stop.
make: stopped in /soft/pinba_engine-RELEASE_1_1_0

Как с этим бороться?

wang...@gmail.com

unread,
Apr 1, 2016, 12:22:49 PM4/1/16
to Pinba Engine development list (in Russian)

пʼятниця, 5 лютого 2016 р. 23:11:18 UTC+2 користувач Кирилл Кириллов написав:
Здравствуйте.
Пытался собрать новую версию pinba
при компиляции возникают ошибки
mysql-5.6.27 установлен из портов

# make
Making all in src
make  all-am
/bin/sh ../libtool --preserve-dup-deps  --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H  -I.  -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/sql -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/include -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/regex -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27     -g -O2 -fno-exceptions -fno-rtti -I/usr/local/include -I/usr/local/include -DMYSQL_DYNAMIC_PLUGIN -DNDEBUG -DJUDYERROR_NOTEST -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cc
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/sql -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/include -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27/regex -I/usr/ports/databases/mysql56-server/work/mysql-5.6.27 -g -O2 -fno-exceptions -fno-rtti -I/usr/local/include -I/usr/local/include -DMYSQL_DYNAMIC_PLUGIN -DNDEBUG -DJUDYERROR_NOTEST -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cc  -fPIC -DPIC -o .libs/main.o
main.cc:141:3: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
                cpu_set_t mask;
                ^~~~~~~~~
                cpusetid_t
/usr/include/sys/types.h:84:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;

По мотивам patch-src__ha_pinba.cc из ports/devel/pinba_engine теперь нужен patch-src__main.cc:
--- ./src/main.cc.orig  2015-02-12 15:10:49.000000000 +0200
+++ ./src/main.cc       2016-04-01 19:07:32.000000000 +0300
@@ -19,6 +19,10 @@
 #include <sys/types.h>
 #include <sys/socket.h>

+#ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
+#include <pthread_np.h>
+#endif
+
 struct timeval null_timeval = {0, 0};
 static pthread_t data_thread;
 static pthread_t collector_thread;
@@ -138,7 +142,7 @@
 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
        cpu_num = 0;
        for (i = 0; i < D->thread_pool->size; i++, cpu_num = (cpu_num == (cpu_cnt-1)) ? 0 : cpu_num + 1) {
-               cpu_set_t mask;
+               cpuset_t mask;

                CPU_ZERO(&mask);
                CPU_SET(cpu_num, &mask);
@@ -176,7 +180,7 @@

 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
        {
-               cpu_set_t mask;
+               cpuset_t mask;

                CPU_ZERO(&mask);
                CPU_SET(settings.cpu_start + 0, &mask);
@@ -208,6 +212,7 @@

        D->in_shutdown = 1;

+       pthread_detach(collector_thread);
        pthread_cancel(collector_thread);
        pthread_join(collector_thread, NULL);



Antony Dovgal

unread,
Apr 4, 2016, 6:44:54 AM4/4/16
to pinba-e...@googlegroups.com
После этого собирается на FreeBSD?
А работает нормально?
--
You received this message because you are subscribed to the Google Groups "Pinba Engine development list (in Russian)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinba-engine-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

wang...@gmail.com

unread,
Apr 4, 2016, 7:58:47 AM4/4/16
to Pinba Engine development list (in Russian)
понеділок, 4 квітня 2016 р. 13:44:54 UTC+3 користувач tony2001 написав:
После этого собирается на FreeBSD?
А работает нормально?

Работает, причем со штатным пакетом mysql55-server:
pkg info pinba_engine-2015.02.12 (это я так локально в ports указал)

pinba_engine-2015.02.12
Name           : pinba_engine
Version        : 2015.02.12
Installed on   : Fri Apr  1 19:11:59 2016 EEST
Origin         : devel/pinba_engine
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : devel
Licenses       :
Maintainer     : rave...@gmail.com
WWW            : http://pinba.org/
Comment        : Mysql-engine part of statistics server for PHP
Shared Libs required:
        libJudy.so.1
        libevent-2.0.so.5
Shared Libs provided:
        libpinba_engine.so.0
Annotations    :
Flat size      : 330KiB

pkg info mysql55-server-5.5.46

mysql55-server-5.5.46
Name           : mysql55-server
Version        : 5.5.46
Installed on   : Fri Apr  1 18:30:44 2016 EEST
Origin         : databases/mysql55-server
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : databases ipv6
Licenses       : GPLv2
Maintainer     : a...@FreeBSD.org
WWW            : http://www.mysql.com/
Comment        : Multithreaded SQL database (server)
Options        :
        FASTMTX        : off
        SSL            : on
Annotations    :
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 67.2MiB

Собственно, я сделал ровно такие же правки (ещё один include, замена на cpuset_t и pthread_detach), что были в ports для старой версии:

Единственное что смущает - в конфиге заданы и порт, и сокет, бинарник запущен с --socket=/tmp/mysql.sock --port=3306, но на 3306 не слушает:
sockstat -l | grep mysql
mysql    mysqld     29617 12 udp4   *:30002               *:*
mysql    mysqld     29617 13 stream /tmp/mysql.sock

mysql> show global variables like '%port';
+---------------------+-------+
| Variable_name       | Value |
+---------------------+-------+
| large_files_support | ON    |
| pinba_port          | 30002 |
| port                | 0     |
| report_port         | 0     |
+---------------------+-------+
4 rows in set (0.00 sec)

Правда я не смотрел было-ли со старой версией такое же поведение.

Для devel/php5-pinba вообще просто поменял GH_TAGNAME на 7e7cd25 + distinfo для другого архива и тоже со штатным 5.5.33 работает.

Antony Dovgal

unread,
Apr 4, 2016, 8:51:03 AM4/4/16
to pinba-e...@googlegroups.com
On 04/04/2016 02:58 PM, wang...@gmail.com wrote:
понеділок, 4 квітня 2016 р. 13:44:54 UTC+3 користувач tony2001 написав:
После этого собирается на FreeBSD?
А работает нормально?

Работает, причем со штатным пакетом mysql55-server:

Отлично, спасибо большое.
А сможете проверить патч для поддержки FreeBSD?

wang...@gmail.com

unread,
Apr 4, 2016, 9:34:39 AM4/4/16
to Pinba Engine development list (in Russian)
понеділок, 4 квітня 2016 р. 15:51:03 UTC+3 користувач tony2001 написав:
On 04/04/2016 02:58 PM, wang...@gmail.com wrote:
понеділок, 4 квітня 2016 р. 13:44:54 UTC+3 користувач tony2001 написав:
После этого собирается на FreeBSD?
А работает нормально?

Работает, причем со штатным пакетом mysql55-server:

Отлично, спасибо большое.
А сможете проверить патч для поддержки FreeBSD?

Смогу.
Есть желание обновить версию в портах до актуальной?

Antony Dovgal

unread,
Apr 4, 2016, 11:30:08 AM4/4/16
to pinba-e...@googlegroups.com
Не представляю себе как это сделать.
Постараюсь правильный патч завтра сделать.

Antony Dovgal

unread,
Apr 5, 2016, 8:26:07 AM4/5/16
to pinba-e...@googlegroups.com
https://gist.github.com/04ee10cbc6d46d6c8aa6cc1cbaad2a2e
вот патч для devel-бранча.
можете проверить, что у вас собирается и работает всё?

Oleksandr V. Typlyns'kyi

unread,
Apr 6, 2016, 8:06:45 AM4/6/16
to pinba-e...@googlegroups.com
2016-04-05 15:26 GMT+03:00 Antony Dovgal <antony...@gmail.com>:
https://gist.github.com/04ee10cbc6d46d6c8aa6cc1cbaad2a2e
вот патч для devel-бранча.
можете проверить, что у вас собирается и работает всё?

Для master выходит так:
--- ./src/main.cc.orig  2015-02-12 15:10:49.000000000 +0200
+++ ./src/main.cc       2016-04-06 12:21:37.000000000 +0300
@@ -19,6 +19,15 @@
 #include <sys/types.h>
 #include <sys/socket.h>

+#ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
+# ifdef __FreeBSD__
+#  include <pthread_np.h>
+  typedef cpuset_t pinba_cpu_set_t;
+# else
+  typedef cpu_set_t pinba_cpu_set_t;
+# endif

+#endif
+
 struct timeval null_timeval = {0, 0};
 static pthread_t data_thread;
 static pthread_t collector_thread;
@@ -138,7 +147,7 @@

 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
        cpu_num = 0;
        for (i = 0; i < D->thread_pool->size; i++, cpu_num = (cpu_num == (cpu_cnt-1)) ? 0 : cpu_num + 1) {
-               cpu_set_t mask;
+               pinba_cpu_set_t mask;

                CPU_ZERO(&mask);
                CPU_SET(cpu_num, &mask);
@@ -176,7 +185,7 @@

 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
        {
-               cpu_set_t mask;
+               pinba_cpu_set_t mask;

                CPU_ZERO(&mask);
                CPU_SET(settings.cpu_start + 0, &mask);
@@ -207,7 +216,9 @@
        pinba_debug("shutting down..");

        D->in_shutdown = 1;
-
+#ifdef __FreeBSD__
+       pthread_detach(collector_thread);
+#endif
        pthread_cancel(collector_thread);
        pthread_join(collector_thread, NULL);

Собралось и запустилось.
Собственно, не вижу причин почему бы было иначе - изменения практически такие же, но ifdef __FreeBSD__ позволит внести их в основной код, а не держать patch в ports.

А вот для devel df7b7c2 не собирается sparsehash - для него тоже патчи нужны http://svnweb.freebsd.org/ports/head/devel/google-sparsehash/files/
Может, лучше сделать его зависимостью как protobuf?
А libevent и judi, насколько я понимаю, для devel больше ненужны.

Плюс ещё пара cpu_set_t пропущена:
--- main.cc.tony        2016-04-06 13:20:26.000000000 +0300
+++ main.cc     2016-04-06 13:26:33.000000000 +0300
@@ -223,7 +223,7 @@

 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
                {
-                       cpu_set_t mask;
+                       pinba_cpu_set_t mask;

                        CPU_ZERO(&mask);
                        CPU_SET(i, &mask);
@@ -243,7 +243,7 @@

 #ifdef PINBA_ENGINE_HAVE_PTHREAD_SETAFFINITY_NP
        {
-               cpu_set_t mask;
+               pinba_cpu_set_t mask;

                CPU_ZERO(&mask);
                CPU_SET(settings.cpu_start + 1, &mask);


После этого собралось и запустилось.
На 3306 не слушает как и прежде или это так задумано?

160406 14:35:57 [Note] /usr/local/libexec/mysqld (mysqld 5.5.46) starting as process 21450 ...
160406 14:35:57 [Warning] option 'pinba-temp-pool-size-limit': signed value 0 adjusted to 1000
160406 14:35:57 [Warning] option 'plugin-pinba-temp-pool-size-limit': signed value 0 adjusted to 1000
160406 14:35:57 InnoDB: The InnoDB memory heap is disabled
160406 14:35:57 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160406 14:35:57 InnoDB: Compressed tables use zlib 1.2.8
160406 14:35:57 InnoDB: Initializing buffer pool, size = 1.0G
160406 14:35:57 InnoDB: Completed initialization of buffer pool
160406 14:35:57 InnoDB: highest supported file format is Barracuda.
160406 14:35:58  InnoDB: Waiting for the background threads to start
160406 14:35:59 InnoDB: 5.5.46 started; log sequence number 52697268092
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing request pool (0x2e8fd48) with the size of 1000000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing timer pool (0x2e8fe88) with the size of 2621440 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[0][0] (0x2e90200) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[1][0] (0x2e90700) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_tmp_pool[0] (0x2e90c00) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[0][1] (0x2e90340) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[1][1] (0x2e90840) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_tmp_pool[1] (0x2e90d40) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[0][2] (0x2e90480) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[1][2] (0x2e90980) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_tmp_pool[2] (0x2e90e80) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[0][3] (0x2e905c0) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_request_pool[1][3] (0x2e90ac0) with the size of 10000 items
[2016-04-06 14:35:59] [PINBA] notice: pool.cc:150 initializing per_thread_tmp_pool[3] (0x2e90fc0) with the size of 10000 items
160406 14:35:59 [Note] Event Scheduler: Loaded 0 events
160406 14:35:59 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.5.46'  socket: '/tmp/mysql.sock'  port: 0  Source distribution

Если в таблицу status добавить build_string и dictionary_size, то от select из неё mysql падает:

11:38:20 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=33554432
read_buffer_size=2097152
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 652962 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Без них, когда она такая же как в master, работает:

mysql> select * from status;
+------------------------+-------------------------+------------------+-----------------+----------------------+
| current_temp_pool_size | current_timer_pool_size | lost_tmp_records | invalid_packets | invalid_request_data |
+------------------------+-------------------------+------------------+-----------------+----------------------+
|                      0 |                 2621440 |                0 |               0 |                    0 |
+------------------------+-------------------------+------------------+-----------------+----------------------+
1 row in set (0.00 sec)

Antony Dovgal

unread,
Apr 6, 2016, 11:48:16 AM4/6/16
to pinba-e...@googlegroups.com
On 04/06/2016 03:06 PM, Oleksandr V. Typlyns'kyi wrote:
2016-04-05 15:26 GMT+03:00 Antony Dovgal <antony...@gmail.com>:
https://gist.github.com/04ee10cbc6d46d6c8aa6cc1cbaad2a2e
вот патч для devel-бранча.
можете проверить, что у вас собирается и работает всё?

Собралось и запустилось.
Собственно, не вижу причин почему бы было иначе - изменения практически такие же, но ifdef __FreeBSD__ позволит внести их в основной код, а не держать patch в ports.

А вот для devel df7b7c2 не собирается sparsehash - для него тоже патчи нужны http://svnweb.freebsd.org/ports/head/devel/google-sparsehash/files/
Может, лучше сделать его зависимостью как protobuf?

Надо подумать, что будет лучше.
Проблема в том, что если protobuf достаточно известен, чтобы было понятно где брать и ставить, то с sparsehash немного иначе.


А libevent и judi, насколько я понимаю, для devel больше ненужны.

Всё так.


Плюс ещё пара cpu_set_t пропущена:
А, да, спасибо.



После этого собралось и запустилось.
На 3306 не слушает как и прежде или это так задумано?

В смысле? Это же MySQL слушает, а не Pinba и это конфигурируется в my.cnf.



Если в таблицу status добавить build_string и dictionary_size, то от select из неё mysql падает:

Спасибо! Исправил и запушил.

Oleksandr V. Typlyns'kyi

unread,
Apr 6, 2016, 1:25:58 PM4/6/16
to pinba-e...@googlegroups.com
6 апреля 2016 г., 18:48 пользователь Antony Dovgal <antony...@gmail.com> написал:

On 04/06/2016 03:06 PM, Oleksandr V. Typlyns'kyi wrote:
А вот для devel df7b7c2 не собирается sparsehash - для него тоже патчи нужны http://svnweb.freebsd.org/ports/head/devel/google-sparsehash/files/
Может, лучше сделать его зависимостью как protobuf?
Надо подумать, что будет лучше.
Проблема в том, что если protobuf достаточно известен, чтобы было понятно где брать и ставить, то с sparsehash немного иначе.

Альтернатива - самому поддерживать патчи под разные компиляторы и системы.
RPM-ы будут традиционно отставать, но сильно-ли там важна версия?

FreeBSD: pkg search sparsehash
google-sparsehash-2.0.2_2      Extremely memory-efficient hash_map implementation

CentOS: yum list sparsehash\*
sparsehash-devel.noarch        1.7-3.el6        epel
sparsehash-devel.x86_64        1.12-3.el7     epel

Ubuntu: apt-cache search sparsehash
libsparsehash-dev - Google's extremely memory-efficient C++ hash_map implementation
sparsehash - memory-efficient C++ hash_map implementation (transition package)

Я, например, про judy до сборки pinba не знал и мог даже не обратить внимание - в ports о зависимостях позаботились.
По запросу sparsehash поисковики выдают только нужное, а для judy - много женщин :)

После этого собралось и запустилось.
На 3306 не слушает как и прежде или это так задумано?
 
В смысле? Это же MySQL слушает, а не Pinba и это конфигурируется в my.cnf.

Как я уже писал ранее, в конфиге port = 3306 есть, ps для mysqld аргумент --port=3306 показывает, но в результате
160406 14:38:21 [Note] /usr/local/libexec/mysqld: ready for connections.

Version: '5.5.46'  socket: '/tmp/mysql.sock'  port: 0  Source distribution

Более пристальное исследование показало наличие ещё /etc/my.cnf cо skip-networking
Такой вот "сюрприз" от юного пингвиновода получился.

От status уже не падает:
mysql> select * from status;
+------------------------+-------------------------+------------------+-----------------+----------------------+--------------+-----------------+
| current_temp_pool_size | current_timer_pool_size | lost_tmp_records | invalid_packets | invalid_request_data | build_string | dictionary_size |
+------------------------+-------------------------+------------------+-----------------+----------------------+--------------+-----------------+
|                      0 |                 2621440 |                0 |               0 |                    0 | NULL         |               0 |
+------------------------+-------------------------+------------------+-----------------+----------------------+--------------+-----------------+

1 row in set (0.00 sec)

Это скоро будет 1.2.0 из devel ветки?
Reply all
Reply to author
Forward
0 new messages