VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

ODBC для MySQL

Общие вопросы по операционной системе

Модераторы: april22, Zavr2008

DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

мне тут не понять :cry:

Код: Выделить всё

20168 16:26:36.185811 execve("/usr/bin/isql", ["isql", "test", "-v"], [/* 17 vars */]) = 0
20168 16:26:36.186453 brk(0)            = 0xd83000
20168 16:26:36.186550 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.186639 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545611000
20168 16:26:36.186713 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.186786 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.186847 fstat(3, {st_mode=S_IFREG|0644, st_size=32322, ...}) = 0
20168 16:26:36.186928 mmap(NULL, 32322, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0545609000
20168 16:26:36.186982 close(3)          = 0
20168 16:26:36.187034 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.187099 open("/usr/lib/x86_64-linux-gnu/libodbc.so.1", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.187163 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200n\0\0\0\0\0\0@\0\0\0\0\0\0\0008`\6\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\33\0\32\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\364\351\5\0\0\0\0\0\364\351\5\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0"..., 832) = 832
20168 16:26:36.187301 fstat(3, {st_mode=S_IFREG|0644, st_size=419576, ...}) = 0
20168 16:26:36.187380 mmap(NULL, 2518464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f054518a000
20168 16:26:36.187436 mprotect(0x7f05451e9000, 2093056, PROT_NONE) = 0
20168 16:26:36.187495 mmap(0x7f05453e8000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5e000) = 0x7f05453e8000
20168 16:26:36.187567 mmap(0x7f05453f0000, 3520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f05453f0000
20168 16:26:36.187635 close(3)          = 0
20168 16:26:36.187695 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.187760 open("/lib/x86_64-linux-gnu/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.187823 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\"\1\0\0\0\0\0@\0\0\0\0\0\0\0000\6\4\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\33\0\32\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\34\215\3\0\0\0\0\0\34\215\3\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0"..., 832) = 832
20168 16:26:36.187919 fstat(3, {st_mode=S_IFREG|0644, st_size=265456, ...}) = 0
20168 16:26:36.187988 mmap(NULL, 2366184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0544f48000
20168 16:26:36.188041 mprotect(0x7f0544f81000, 2097152, PROT_NONE) = 0
20168 16:26:36.188097 mmap(0x7f0545181000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x39000) = 0x7f0545181000
20168 16:26:36.188162 mmap(0x7f0545189000, 2792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0545189000
20168 16:26:36.188228 close(3)          = 0
20168 16:26:36.188287 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.188348 open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.188411 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200l\0\0\0\0\0\0@\0\0\0\0\0\0\0\360\203\1\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0#\0 \0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.188506 fstat(3, {st_mode=S_IFREG|0755, st_size=135366, ...}) = 0
20168 16:26:36.188574 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545608000
20168 16:26:36.188637 mmap(NULL, 2212904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0544d2b000
20168 16:26:36.188693 mprotect(0x7f0544d43000, 2093056, PROT_NONE) = 0
20168 16:26:36.188749 mmap(0x7f0544f42000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f0544f42000
20168 16:26:36.188815 mmap(0x7f0544f44000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0544f44000
20168 16:26:36.188883 close(3)          = 0
20168 16:26:36.188942 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.189018 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.189081 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0@\0\0\0\0\0\0\0\370\231\33\0\0\0\0\0\0\0\0\0@\0008\0\n\0@\0#\0\"\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0000\2\0\0\0\0\0\0000\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.189175 fstat(3, {st_mode=S_IFREG|0755, st_size=1811128, ...}) = 0
20168 16:26:36.189247 mmap(NULL, 3925208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f054496c000
20168 16:26:36.189301 mprotect(0x7f0544b21000, 2093056, PROT_NONE) = 0
20168 16:26:36.189357 mmap(0x7f0544d20000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b4000) = 0x7f0544d20000
20168 16:26:36.189424 mmap(0x7f0544d26000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0544d26000
20168 16:26:36.189489 close(3)          = 0
20168 16:26:36.189549 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.189610 open("/usr/lib/x86_64-linux-gnu/libltdl.so.7", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.189672 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\36\0\0\0\0\0\0@\0\0\0\0\0\0\0P\222\0\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\33\0\32\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0L~\0\0\0\0\0\0L~\0\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0"..., 832) = 832
20168 16:26:36.189766 fstat(3, {st_mode=S_IFREG|0644, st_size=39184, ...}) = 0
20168 16:26:36.189835 mmap(NULL, 2134448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0544762000
20168 16:26:36.189889 mprotect(0x7f054476a000, 2097152, PROT_NONE) = 0
20168 16:26:36.189944 mmap(0x7f054496a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f054496a000
20168 16:26:36.190014 close(3)          = 0
20168 16:26:36.190074 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.190135 open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.190197 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\301\0\0\0\0\0\0@\0\0\0\0\0\0\0 g\2\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\33\0\32\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\304\36\2\0\0\0\0\0\304\36\2\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0"..., 832) = 832
20168 16:26:36.190291 fstat(3, {st_mode=S_IFREG|0644, st_size=159200, ...}) = 0
20168 16:26:36.190359 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545607000
20168 16:26:36.190421 mmap(NULL, 2255936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f054453b000
20168 16:26:36.190476 mprotect(0x7f054455d000, 2097152, PROT_NONE) = 0
20168 16:26:36.190530 mmap(0x7f054475d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7f054475d000
20168 16:26:36.190600 close(3)          = 0
20168 16:26:36.190662 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.190723 open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.190785 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0@\0\0\0\0\0\0\0\2601\0\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0 \0\37\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.190879 fstat(3, {st_mode=S_IFREG|0644, st_size=14768, ...}) = 0
20168 16:26:36.190949 mmap(NULL, 2109704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0544337000
20168 16:26:36.191003 mprotect(0x7f0544339000, 2097152, PROT_NONE) = 0
20168 16:26:36.191058 mmap(0x7f0544539000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0544539000
20168 16:26:36.191128 close(3)          = 0
20168 16:26:36.191210 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545606000
20168 16:26:36.191311 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545605000
20168 16:26:36.191387 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545604000
20168 16:26:36.191447 arch_prctl(ARCH_SET_FS, 0x7f0545605700) = 0
20168 16:26:36.191944 mprotect(0x7f0544d20000, 16384, PROT_READ) = 0
20168 16:26:36.192050 mprotect(0x7f0544539000, 4096, PROT_READ) = 0
20168 16:26:36.192167 mprotect(0x7f054475d000, 16384, PROT_READ) = 0
20168 16:26:36.192233 mprotect(0x7f054496a000, 4096, PROT_READ) = 0
20168 16:26:36.192300 mprotect(0x7f0544f42000, 4096, PROT_READ) = 0
20168 16:26:36.192482 mprotect(0x7f0545181000, 8192, PROT_READ) = 0
20168 16:26:36.192609 mprotect(0x7f05453e8000, 4096, PROT_READ) = 0
20168 16:26:36.192676 mprotect(0x605000, 4096, PROT_READ) = 0
20168 16:26:36.192736 mprotect(0x7f0545613000, 4096, PROT_READ) = 0
20168 16:26:36.192787 munmap(0x7f0545609000, 32322) = 0
20168 16:26:36.192857 set_tid_address(0x7f05456059d0) = 20168
20168 16:26:36.192907 set_robust_list(0x7f05456059e0, 0x18) = 0
20168 16:26:36.192955 futex(0x7fffe8b0db9c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f0545605700) = -1 EAGAIN (Resource temporarily unavailable)
20168 16:26:36.193026 rt_sigaction(SIGRTMIN, {0x7f0544d31750, [], SA_RESTORER|SA_SIGINFO, 0x7f0544d3acb0}, NULL, 8) = 0
20168 16:26:36.193108 rt_sigaction(SIGRT_1, {0x7f0544d317e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f0544d3acb0}, NULL, 8) = 0
20168 16:26:36.193174 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
20168 16:26:36.193237 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
20168 16:26:36.193714 brk(0)            = 0xd83000
20168 16:26:36.193795 brk(0xda4000)     = 0xda4000
20168 16:26:36.193869 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.193939 fstat(3, {st_mode=S_IFREG|0644, st_size=4414512, ...}) = 0
20168 16:26:36.194013 mmap(NULL, 4414512, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0543f01000
20168 16:26:36.194075 close(3)          = 0
20168 16:26:36.194284 open("/etc/odbcinst.ini", O_RDONLY) = 3
20168 16:26:36.194363 fstat(3, {st_mode=S_IFREG|0644, st_size=156, ...}) = 0
20168 16:26:36.194432 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0545610000
20168 16:26:36.194489 read(3, "[MySQL]\nDescription = ODBC for MySQL\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc"..., 4096) = 156
20168 16:26:36.194595 read(3, "", 4096) = 0
20168 16:26:36.194653 read(3, "", 4096) = 0
20168 16:26:36.194708 close(3)          = 0
20168 16:26:36.194759 munmap(0x7f0545610000, 4096) = 0
20168 16:26:36.194833 open("/root/.odbcinst.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
20168 16:26:36.194932 access("/etc/odbc.ini", F_OK) = 0
20168 16:26:36.194997 stat("/etc/odbc.ini", {st_mode=S_IFREG|0644, st_size=427, ...}) = 0
20168 16:26:36.195070 semget(0x79000005, 1, IPC_CREAT|IPC_EXCL|0666) = -1 EEXIST (File exists)
20168 16:26:36.195129 semget(0x79000005, 1, IPC_CREAT|0666) = 98305
20168 16:26:36.195181 shmget(0x79000005, 808, IPC_CREAT|IPC_EXCL|0666) = -1 EEXIST (File exists)
20168 16:26:36.195233 shmget(0x79000005, 808, 0666) = 0
20168 16:26:36.195343 shmat(0, 0, 0)    = ?
20168 16:26:36.195414 semop(98305, {{0, 0, 0}, {0, 1, SEM_UNDO}}, 2) = 0
20168 16:26:36.195483 semop(98305, {{0, -1, SEM_UNDO}}, 1) = 0
20168 16:26:36.195545 semop(98305, {{0, 0, 0}, {0, 1, SEM_UNDO}}, 2) = 0
20168 16:26:36.195602 semop(98305, {{0, -1, SEM_UNDO}}, 1) = 0
20168 16:26:36.195668 open("/etc/odbcinst.ini", O_RDONLY) = 3
20168 16:26:36.195732 fstat(3, {st_mode=S_IFREG|0644, st_size=156, ...}) = 0
20168 16:26:36.195799 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.195853 read(3, "[MySQL]\nDescription = ODBC for MySQL\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc"..., 4096) = 156
20168 16:26:36.195938 read(3, "", 4096) = 0
20168 16:26:36.196000 read(3, "", 4096) = 0
20168 16:26:36.196051 close(3)          = 0
20168 16:26:36.196111 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.196176 open("/root/.odbcinst.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
20168 16:26:36.196265 semop(98305, {{0, 0, 0}, {0, 1, SEM_UNDO}}, 2) = 0
20168 16:26:36.196328 semop(98305, {{0, -1, SEM_UNDO}}, 1) = 0
20168 16:26:36.196398 getuid()          = 0
20168 16:26:36.196467 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
20168 16:26:36.196533 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
20168 16:26:36.196623 close(3)          = 0
20168 16:26:36.196681 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
20168 16:26:36.196734 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
20168 16:26:36.196810 close(3)          = 0
20168 16:26:36.196878 open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.196943 fstat(3, {st_mode=S_IFREG|0644, st_size=466, ...}) = 0
20168 16:26:36.197011 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.197068 read(3, "# /etc/nsswitch.conf\n#\n# Example configuration of GNU Name Service Switch functionality.\n# If you have the `glibc-doc-reference'"..., 4096) = 466
20168 16:26:36.197152 read(3, "", 4096) = 0
20168 16:26:36.197203 close(3)          = 0
20168 16:26:36.197252 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.197325 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.197387 fstat(3, {st_mode=S_IFREG|0644, st_size=32322, ...}) = 0
20168 16:26:36.197455 mmap(NULL, 32322, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f05455fc000
20168 16:26:36.197507 close(3)          = 0
20168 16:26:36.197558 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.197623 open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.197688 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\22\0\0\0\0\0\0@\0\0\0\0\0\0\0\340\203\0\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0\36\0\35\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.197787 fstat(3, {st_mode=S_IFREG|0644, st_size=35680, ...}) = 0
20168 16:26:36.197861 mmap(NULL, 2131240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0543cf8000
20168 16:26:36.197918 mprotect(0x7f0543d00000, 2093056, PROT_NONE) = 0
20168 16:26:36.197977 mmap(0x7f0543eff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f0543eff000
20168 16:26:36.198050 close(3)          = 0
20168 16:26:36.198113 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.198176 open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.198239 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`@\0\0\0\0\0\0@\0\0\0\0\0\0\0`t\1\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0\36\0\35\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.198335 fstat(3, {st_mode=S_IFREG|0644, st_size=97248, ...}) = 0
20168 16:26:36.198409 mmap(NULL, 2202328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0543ade000
20168 16:26:36.198466 mprotect(0x7f0543af5000, 2093056, PROT_NONE) = 0
20168 16:26:36.198522 mmap(0x7f0543cf4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f0543cf4000
20168 16:26:36.198591 mmap(0x7f0543cf6000, 6872, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0543cf6000
20168 16:26:36.198658 close(3)          = 0
20168 16:26:36.198747 mprotect(0x7f0543cf4000, 4096, PROT_READ) = 0
20168 16:26:36.198816 mprotect(0x7f0543eff000, 4096, PROT_READ) = 0
20168 16:26:36.198877 munmap(0x7f05455fc000, 32322) = 0
20168 16:26:36.198954 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.199017 fstat(3, {st_mode=S_IFREG|0644, st_size=32322, ...}) = 0
20168 16:26:36.199085 mmap(NULL, 32322, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f05455fc000
20168 16:26:36.199148 close(3)          = 0
20168 16:26:36.199201 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.199299 open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.199371 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260 \0\0\0\0\0\0@\0\0\0\0\0\0\0\300\262\0\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0\36\0\35\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.199468 fstat(3, {st_mode=S_IFREG|0644, st_size=47680, ...}) = 0
20168 16:26:36.199541 mmap(NULL, 2143552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f05438d2000
20168 16:26:36.199599 mprotect(0x7f05438dc000, 2097152, PROT_NONE) = 0
20168 16:26:36.199655 mmap(0x7f0543adc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f0543adc000
20168 16:26:36.199729 close(3)          = 0
20168 16:26:36.199794 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20168 16:26:36.199856 open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.199920 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@!\0\0\0\0\0\0@\0\0\0\0\0\0\0\30\304\0\0\0\0\0\0\0\0\0\0@\0008\0\t\0@\0\36\0\35\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\370\1\0\0\0\0\0\0\370\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832
20168 16:26:36.200015 fstat(3, {st_mode=S_IFREG|0644, st_size=52120, ...}) = 0
20168 16:26:36.200087 mmap(NULL, 2148472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f05436c5000
20168 16:26:36.200142 mprotect(0x7f05436d1000, 2093056, PROT_NONE) = 0
20168 16:26:36.200198 mmap(0x7f05438d0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f05438d0000
20168 16:26:36.200269 close(3)          = 0
20168 16:26:36.200351 mprotect(0x7f05438d0000, 4096, PROT_READ) = 0
20168 16:26:36.200415 mprotect(0x7f0543adc000, 4096, PROT_READ) = 0
20168 16:26:36.200478 munmap(0x7f05455fc000, 32322) = 0
20168 16:26:36.200553 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.200644 lseek(3, 0, SEEK_CUR) = 0
20168 16:26:36.200979 fstat(3, {st_mode=S_IFREG|0644, st_size=1256, ...}) = 0
20168 16:26:36.201363 mmap(NULL, 1256, PROT_READ, MAP_SHARED, 3, 0) = 0x7f054560f000
20168 16:26:36.201418 lseek(3, 1256, SEEK_SET) = 1256
20168 16:26:36.201492 munmap(0x7f054560f000, 1256) = 0
20168 16:26:36.201545 close(3)          = 0
20168 16:26:36.201603 open("/root/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
20168 16:26:36.201665 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.201733 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.201785 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.201850 lseek(3, 0, SEEK_SET) = 0
20168 16:26:36.201897 close(3)          = 0
20168 16:26:36.201947 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.202008 open("/root/.odbc.ini", O_RDONLY) = 3
20168 16:26:36.202068 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.202133 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.202185 read(3, "", 4096) = 0
20168 16:26:36.202242 close(3)          = 0
20168 16:26:36.202294 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.202357 open("/etc/odbc.ini", O_RDONLY) = 3
20168 16:26:36.202417 close(3)          = 0
20168 16:26:36.202472 open("/etc/odbc.ini", O_RDONLY) = 3
20168 16:26:36.202530 fstat(3, {st_mode=S_IFREG|0644, st_size=427, ...}) = 0
20168 16:26:36.202597 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.202648 read(3, "\357\273\277[MySQL-asteriskcdrdb]\nDescription           = MySQL connection to 'asterisk' database\nDriver                = MySQL\nDatabase "..., 4096) = 427
20168 16:26:36.202726 close(3)          = 0
20168 16:26:36.202776 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.202854 getuid()          = 0
20168 16:26:36.202909 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
20168 16:26:36.202970 lseek(3, 0, SEEK_CUR) = 0
20168 16:26:36.203018 fstat(3, {st_mode=S_IFREG|0644, st_size=1256, ...}) = 0
20168 16:26:36.203085 mmap(NULL, 1256, PROT_READ, MAP_SHARED, 3, 0) = 0x7f054560f000
20168 16:26:36.203138 lseek(3, 1256, SEEK_SET) = 1256
20168 16:26:36.203194 munmap(0x7f054560f000, 1256) = 0
20168 16:26:36.203270 close(3)          = 0
20168 16:26:36.203336 open("/root/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
20168 16:26:36.203398 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.203465 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.203517 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.203581 lseek(3, 0, SEEK_SET) = 0
20168 16:26:36.203628 close(3)          = 0
20168 16:26:36.203677 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.203731 open("/root/.odbc.ini", O_RDONLY) = 3
20168 16:26:36.203790 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
20168 16:26:36.203894 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.203952 read(3, "", 4096) = 0
20168 16:26:36.204002 close(3)          = 0
20168 16:26:36.204050 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.204112 open("/etc/odbc.ini", O_RDONLY) = 3
20168 16:26:36.204172 close(3)          = 0
20168 16:26:36.204227 open("/etc/odbc.ini", O_RDONLY) = 3
20168 16:26:36.204283 fstat(3, {st_mode=S_IFREG|0644, st_size=427, ...}) = 0
20168 16:26:36.204349 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.204402 read(3, "\357\273\277[MySQL-asteriskcdrdb]\nDescription           = MySQL connection to 'asterisk' database\nDriver                = MySQL\nDatabase "..., 4096) = 427
20168 16:26:36.204480 close(3)          = 0
20168 16:26:36.204529 munmap(0x7f054560f000, 4096) = 0
20168 16:26:36.204631 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
20168 16:26:36.204705 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f054560f000
20168 16:26:36.204768 write(1, "[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified\n", 93) = 93
20168 16:26:36.204971 write(2, "[ISQL]ERROR: Could not SQLConnect\n", 34) = 34
20168 16:26:36.205149 semop(98305, {{0, 0, 0}, {0, 1, SEM_UNDO}}, 2) = 0
20168 16:26:36.205216 semop(98305, {{0, -1, SEM_UNDO}}, 1) = 0
20168 16:26:36.205278 shmdt(0x7f0545610000) = 0
20168 16:26:36.205379 exit_group(1)     = ?
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

Результат выполнения команд:

Код: Выделить всё

root@VOIP-SRV:~# file /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
/usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x0213549e1ec69383c5ce20eba6ceac1a96a3123c, stripped
root@VOIP-SRV:~# file /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x1217641a5428f061b5b92e0379e5aeecc4fc9478, stripped
root@VOIP-SRV:~# ldd /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
        linux-vdso.so.1 =>  (0x00007fff7fb46000)
        libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007f27c439d000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f27c4180000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f27c3f7b000)
        libodbcinst.so.1 => /usr/lib/x86_64-linux-gnu/libodbcinst.so.1 (0x00007f27c3d69000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f27c39aa000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f27c3792000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f27c3496000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f27c4b37000)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f27c328c000)
root@VOIP-SRV:~# ldd /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
        linux-vdso.so.1 =>  (0x00007fffee193000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff73f510000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff73f151000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff73f93a000)
root@VOIP-SRV:~# ls -l /usr/lib/i386-linux-gnu/odbc*
ls: невозможно получить доступ к /usr/lib/i386-linux-gnu/odbc*: Нет такого файла или каталога
root@VOIP-SRV:~# file /usr/bin/isql
/usr/bin/isql: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xa96a580b0423d1ca5393fb513cd7274ace527d7d, stripped
root@VOIP-SRV:~# ldd /usr/bin/isql
        linux-vdso.so.1 =>  (0x00007fffb915f000)
        libodbc.so.1 => /usr/lib/x86_64-linux-gnu/libodbc.so.1 (0x00007ff5b4b6e000)
        libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007ff5b492c000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff5b470e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff5b434f000)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007ff5b4145000)
        libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007ff5b3f1d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff5b4ddf000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff5b3d19000)
root@VOIP-SRV:~#
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

Код: Выделить всё

root@VOIP-SRV:~# ls -l /usr/lib/odbc/
итого 0
lrwxrwxrwx 1 root root 43 сент. 25 17:33 libmyodbc.so -> /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
lrwxrwxrwx 1 root root 44 сент. 25 17:33 libodbcmyS.so -> /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so

Код: Выделить всё

[test]
Driver = MySQL
SERVER = localhost
PORT = 3306
DATABASE = asteriskcdrdb
USER = asteriskuser
PASSWORD = amp109
Socket = /var/run/mysqld/mysqld.sock

Код: Выделить всё

root@VOIP-SRV:~# isql test -v
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
Все теже ошибки :( . Какая-то складывается безнадежная ситуация
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

Там пусто
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

не помогло
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: ODBC для MySQL

Сообщение Vlad1983 »

странный случай
не вижу поиск сокета
можно попробовать
SERVER = 127.0.0.1
ЛС: @rostel
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: ODBC для MySQL

Сообщение Vlad1983 »

и что за левые символы в начале файла?
\357\273\277[MySQL-asteriskcdrdb]
ЛС: @rostel
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: ODBC для MySQL

Сообщение Vlad1983 »

в любом случае лучше убрать всё лишнее
ЛС: @rostel
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

ddkprog писал(а):в /etc/odbcinst.ini внесите
[ODBC]
Trace = yes
TraceFile = /tmp/odbctrace.log
и еще раз тест isql
и показывайте трейс
Лог не выводится
DIMMon
Сообщения: 72
Зарегистрирован: 22 мар 2013, 11:08

Re: ODBC для MySQL

Сообщение DIMMon »

Vlad1983 писал(а):странный случай
не вижу поиск сокета
можно попробовать
SERVER = 127.0.0.1
не помогает
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH