How to Install Mysql

How to Install Mysql

am 24.12.2010 06:37:41 von Adarsh Sharma

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


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: How to Install Mysql

am 24.12.2010 12:40:08 von Johan De Meersman

--00032557474ec3a5630498267221
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Dec 24, 2010 at 6:37 AM, Adarsh Sharma wrote:

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

Unless you have very specific needs, it's always best to use official
packages for production. That also makes it easier to get support, since you
have a known build.


--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--00032557474ec3a5630498267221--