List:General Discussion« Previous MessageNext Message »
From:Adarsh Sharma Date:December 24 2010 5:37am
Subject:How to Install Mysql
View as plain text  
Dear all,

Yesterday I am trying to build Mysql-5.5.8 from source code and don't 
know why I am failing at the last step.


I am able to successfully build Mysql 5.5.8 from its source code on CentOS
but when I issued the following command , it doesn't shows the mysql prompt, there is no
error in log file.

root@ws-test mysql-5.5.8]# bin/mysql -U mysql -p

Welcome to the MySQL monitor.  Commands end with; or \g. Your MySQL connection id is 2
Server version: 5.5.8 Source distribution

 Copyright (c) 2000, 2010, 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*

[root@ws-test mysql-5.5.8]# 

Some guided to use gdb or memtester but I find this error occurs due to \n compatibility
in *my.cnf* file
I researched a lot about this error and find that this error occurs due to wrong access to
bad memory.

My OS :- CentOS release 5.4 (Final)
Kernel :- Linux ws-test 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64
x86_64 GNU/Linux
gcc      :-  gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Mysql  :-  5.5.8

I have my.cnf in following directories :-

[root@ws-test mysql-5.5.8]# find /opt/mysql-5.5.8 -name my.cnf
/opt/mysql-5.5.8/mysql-test/suite/rpl_ndb/my.cnf
/opt/mysql-5.5.8/mysql-test/suite/rpl/my.cnf
/opt/mysql-5.5.8/mysql-test/suite/ndb/my.cnf
/opt/mysql-5.5.8/mysql-test/suite/federated/my.cnf

Don't know what to do. Please help.

Or I am going to install through rpm which is the easiest way. But which is best for our
Production Servers.



Thanks & Regards 

Adarsh Sharma

Thread
How to Install MysqlAdarsh Sharma24 Dec
  • Re: How to Install MysqlJohan De Meersman24 Dec