How to Install mysql from source

How to Install mysql from source

am 18.10.2010 17:54:17 von ml ml

Hello List,

i am trying to install mysql on debian lenny from source. Here is what
i did (yes, i did read the INSTALL-SOURCE):

../configure --prefix=/usr/local/mysql/

make -j 4 && make install

cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
bin/mysql_install_db --user=mysql

FATAL ERROR: Could not find mysqld

The following directories were searched:

/usr/libexec
/usr/sbin
/usr/bin

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

==> Okay, this my make some sense. Whats the _correct_ way to solve
this? Which mysql_install_db options do i need here?

bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql/
Installing MySQL system tables...
101018 11:50:13 [ERROR] /usr/local/mysql//libexec/mysqld: unknown
option '--skip-bdb'
101018 11:50:13 [ERROR] Aborting

101018 11:50:13 [Note] /usr/local/mysql//libexec/mysqld: Shutdown complete


Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.


==> Why does it also log to /var/lib/mysql ?
find /var/lib/mysql/
/var/lib/mysql/
/var/lib/mysql/mysql
/var/lib/mysql/test
/var/lib/mysql/mysql-bin.index


Cheers,
Mario

--
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 from source

am 19.10.2010 06:25:42 von amoiz.shine

you should read the INSTALL file more patient,and know the difference
between prefix & exec-prefix.

Best regards,
Sharl.Jimh.Tsin (From China)



2010/10/18 ml ml :
> Hello List,
>
> i am trying to install mysql on debian lenny from source. Here is what
> i did (yes, i did read the INSTALL-SOURCE):
>
> ./configure --prefix=3D/usr/local/mysql/
>
>  make -j 4 && make install
>
> cp support-files/my-medium.cnf /etc/my.cnf
> cd /usr/local/mysql
> chown -R mysql .
> chgrp -R mysql .
> bin/mysql_install_db --user=3Dmysql
>
> FATAL ERROR: Could not find mysqld
>
> The following directories were searched:
>
>    /usr/libexec
>    /usr/sbin
>    /usr/bin
>
> If you compiled from source, you need to run 'make install' to
> copy the software into the correct location ready for operation.
>
> If you are using a binary release, you must either be at the top
> level of the extracted archive, or pass the --basedir option
> pointing to that location.
>
> ==> Okay, this my make some sense. Whats the _correct_ way to solve
> this? Which mysql_install_db options do i need here?
>
> bin/mysql_install_db --user=3Dmysql --basedir=3D/usr/local/mysql/
> Installing MySQL system tables...
> 101018 11:50:13 [ERROR] /usr/local/mysql//libexec/mysqld: unknown
> option '--skip-bdb'
> 101018 11:50:13 [ERROR] Aborting
>
> 101018 11:50:13 [Note] /usr/local/mysql//libexec/mysqld: Shutdown complet=
e
>
>
> Installation of system tables failed!  Examine the logs in
> /var/lib/mysql for more information.
>
>
> ==> Why does it also log to /var/lib/mysql ?
> find /var/lib/mysql/
> /var/lib/mysql/
> /var/lib/mysql/mysql
> /var/lib/mysql/test
> /var/lib/mysql/mysql-bin.index
>
>
> Cheers,
> Mario
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=3Damoiz.s=
hine@gmail.com
>
>

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

Re: How to Install mysql from source

am 19.10.2010 14:37:38 von Krishna Chandra Prajapati

--001636c5a91fe4bc680492f78e94
Content-Type: text/plain; charset=ISO-8859-1

Hi,

There is a detailed readme (text file) within the file you have downloaded.
It will gives you the complete picture.

Krishna
cgi.com

On Mon, Oct 18, 2010 at 9:24 PM, ml ml wrote:

> Hello List,
>
> i am trying to install mysql on debian lenny from source. Here is what
> i did (yes, i did read the INSTALL-SOURCE):
>
> ./configure --prefix=/usr/local/mysql/
>
> make -j 4 && make install
>
> cp support-files/my-medium.cnf /etc/my.cnf
> cd /usr/local/mysql
> chown -R mysql .
> chgrp -R mysql .
> bin/mysql_install_db --user=mysql
>
> FATAL ERROR: Could not find mysqld
>
> The following directories were searched:
>
> /usr/libexec
> /usr/sbin
> /usr/bin
>
> If you compiled from source, you need to run 'make install' to
> copy the software into the correct location ready for operation.
>
> If you are using a binary release, you must either be at the top
> level of the extracted archive, or pass the --basedir option
> pointing to that location.
>
> ==> Okay, this my make some sense. Whats the _correct_ way to solve
> this? Which mysql_install_db options do i need here?
>
> bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql/
> Installing MySQL system tables...
> 101018 11:50:13 [ERROR] /usr/local/mysql//libexec/mysqld: unknown
> option '--skip-bdb'
> 101018 11:50:13 [ERROR] Aborting
>
> 101018 11:50:13 [Note] /usr/local/mysql//libexec/mysqld: Shutdown complete
>
>
> Installation of system tables failed! Examine the logs in
> /var/lib/mysql for more information.
>
>
> ==> Why does it also log to /var/lib/mysql ?
> find /var/lib/mysql/
> /var/lib/mysql/
> /var/lib/mysql/mysql
> /var/lib/mysql/test
> /var/lib/mysql/mysql-bin.index
>
>
> Cheers,
> Mario
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
> http://lists.mysql.com/mysql?unsub=prajapatikc@gmail.com
>
>

--001636c5a91fe4bc680492f78e94--