title: MySQL Client Segmentation Fault
body: <p>I have been attempting to install MySQL 5.1.59 from source for the last couple of days on a Debian server. Every time I run the build process everything appears to go completely smooth(including make test). After completing post install steps I try running the client and get a segmentation fault as seen below. I understand that I could easily install this using apt, but I am determined to build MySQL from source at least once. Any ideas or helpful hints would be greatly appreciated. Thanks ahead of time!</p>
  
  <pre><code>debiantesting-01:/usr/local/mysql# bin/mysql -u root -p
  Enter password: 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 2
  Server version: 5.1.59-log Source distribution
  
  Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
  
  Oracle is a registered trademark of Oracle Corporation and/or its
  affiliates. Other names may be trademarks of their respective
  owners.
  
  Segmentation fault
  </code></pre>
  
  <p>Here is a complete list of the commands I ran in order.</p>
  
  <pre><code>groupadd mysql
  useradd -g mysql mysql
  tar -xvf mysql*
  cd mysql*
  ls
  ./configure --prefix=/usr/local/mysql --with-extra-charsets=all
  make
  make test
  make install
  cd /usr/local/mysql
  ls
  chown -R mysql .
  chgrp -R mysql .
  bin/mysql_install_db --user=mysql
  chown -R root .
  chown -R mysql var
  cp /usr/local/src/mysql*/support-files/my-medium.cnf /etc/my.cnf
  /usr/local/mysql/share/mysql/mysql.server start --user=mysql
  /usr/local/mysql/bin/mysql_secure_installation
  bin/mysql -u root -p
  </code></pre>
  
  <p>I have tried starting the server with and without the --user flag and it doesn't change the outcome. Also I have tried the command that it says "cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &amp;" and it stays in the foreground and displays:</p>
  
  <pre><code>[1] 31150
  debiantesting-01:/usr/local/mysql# 111115 09:37:30 mysqld_safe Logging to '/usr/local/mysql/var/debiantesting-01.err'.
  111115 09:37:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  </code></pre>
  
  <p>After running that the log shows:</p>
  
  <pre><code>111115 10:30:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  111115 10:30:42 [Note] Event Scheduler: Loaded 0 events
  111115 10:30:42 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
  Version: '5.1.59-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
  </code></pre>
  
  <p>If you need anymore information please feel free to ask and thank you very much for your time!</p>
  
  <p>-Josh</p>