You are not logged in.
I've compiled MySQL 5.1.69 from the source. It works fine with PHP/Apache. But whenever I try to connect to port 3306 with something from my Windows 7 desktop to administer a database I get this error:
cloud-new(/apps/mysql/var): cat cloud-new.err
18:29:55 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=268435456
read_buffer_size=1048576
max_used_connections=2
max_threads=250
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 = 776741 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x13c8230
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fef2908bd20 thread_stack 0x40000
[0x699f76]
[0x5b9d33]
[0x63ec80]
/usr/lib/libnss_files.so.2(+0x355c) [0x7fef2a79e55c]
/usr/lib/libnss_files.so.2(_nss_files_gethostbyaddr_r+0xb9) [0x7fef2a79fb39]
[0x781879]
[0x781618]
[0x4d4cec]
[0x4d5d5b]
[0x4d63b4]
[0x63b4af]
[0x77ec79]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): is an invalid pointer
Connection ID (thread ID): 12
Status: NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
130526 14:29:55 mysqld_safe Number of processes running now: 0
130526 14:29:55 mysqld_safe mysqld restarted
130526 14:29:55 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
130526 14:29:55 [Note] Event Scheduler: Loaded 0 events
130526 14:29:55 [Note] /apps/mysql/libexec/mysqld: ready for connections.
Version: '5.1.69' socket: '/tmp/mysql.sock' port: 3306 Source distribution
Has anyone seen something like this? Note MySQL does run and work fine, it only crashes like this when I try to connect to it over port 3306.
Offline
Not an Installation issue, moving to Nteworking, Server & Protection...
Offline
I fixed it, I reduced my compile options to just "./configure --prefix=/apps/mysql --with-mysqld-user=mysql --with-big-tables --enable-local-infile" instead of
CPPFLAGS="-I/usr/lib" CFLAGS="-O3 -pipe -fomit-frame-pointer -ffixed-ebp"
CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/apps/mysql --with-mysqld-user=mysql --with-big-tables --without-debug --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static
Offline
I'm not sure if you really want to use -O3. It's not recommended and can give the opposite of the intended effect.
Offline