dbTalk Databases Forums  

MySQL execution

mailing.database.mysql-internals mailing.database.mysql-internals


Discuss MySQL execution in the mailing.database.mysql-internals forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karthik Gurukuntala
 
Posts: n/a

Default MySQL execution - 03-22-2010 , 10:21 AM






how to execute the compiled mysql without make install, always?


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #2  
Old   
Patrick Galbraith
 
Posts: n/a

Default Re: MySQL execution - 03-22-2010 , 11:10 AM






Karthik Gurukuntala wrote:
Quote:
how to execute the compiled mysql without make install, always?


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/



Karthik,

You should example MySQL's options for execution

"mysqld --help --verbose" and use the proper options for your setups.

For a better situation, I would suggest that if you are averse to
installing MySQL system-wide,to at least install MySQL locally using
"./configure --prefix=/home/karthik/mysql_testdir" (chose a name of your
laking) and run it from there.

regards,

Patrick

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #3  
Old   
Karthik Gurukuntala
 
Posts: n/a

Default Re: MySQL execution - 03-22-2010 , 10:44 PM



Quote:
--- On Mon, 22/3/10, Patrick Galbraith <patg (AT) patg (DOT) net
wrote:

From: Patrick Galbraith <patg (AT) patg (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc:internals (AT) lists (DOT) mysql.com
Date: Monday, 22 March, 2010, 5:10 PM
Karthik Gurukuntala wrote:
how to execute the compiled mysql without make
install, always?


* * ***TheINTERNET now has a
personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


***
Karthik,

You should example MySQL's options for execution

"mysqld --help --verbose" and use the proper options
for
your setups.

For a better situation, I would suggest that if you
are
averse to
installing MySQL system-wide,to at least install
MySQL
locally using*
"./configure --prefix=/home/karthik/mysql_testdir"
(chose a
name of your
laking) and run it from there.

regards,

Patrick

Doesnt that require 'make install' at that location
everytime i re-compile the source with some
changes?(Actually am debugging the code to learn some
aggregationoperations' execution.)


-K


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #4  
Old   
Sergei Golubchik
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 02:48 AM



Hi, Karthik!

On Mar 23, Karthik Gurukuntala wrote:
Quote:
--- On Mon, 22/3/10, Patrick Galbraith <patg (AT) patg (DOT) net
wrote:

From: Patrick Galbraith <patg (AT) patg (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc: internals (AT) lists (DOT) mysql.com
Date: Monday, 22 March, 2010, 5:10 PM
Karthik Gurukuntala wrote:
how to execute the compiled mysql without make install, always?

Karthik,

You should example MySQL's options for execution "mysqld --help
--verbose" and use the proper options for your setups.

For a better situation, I would suggest that if you are averse to
installing MySQL system-wide,to at least install MySQL locally
using* "./configure --prefix=/home/karthik/mysql_testdir" (chose
a name of your liking) and run it from there.

Doesnt that require 'make install' at that location
everytime i re-compile the source with some
changes?(Actually am debugging the code to learn some
aggregation operations' execution.)
It does. But you can do 'make install' once, then delete the installed
mysqld and replace it with a symlink to your mysqld binary in the source
tree. Then you won't need to install anymore, recompile and run.

Regards,
Sergei

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #5  
Old   
Timour Katchaounov
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 04:28 AM



Karthik,

Quote:
how to execute the compiled mysql without make install, always?

Personally I never install MySQL/MariaDB on my work machine.
I have a pair of scripts (one to run the server, one for the
client) that assume a certain location of all databases
(there can be many, e.g. one for each major server version).

Assuming that my databases are under "~/databases" (e.g.
"~/databases/5.3"), and my sources (and BZR repository) are
under "~/src", the server startup script must be run in the
root directory of each source tree.

The server startup script generates the following command:

../sql/mysqld --no-defaults --port=11211
--datadir=/home/<user_name>/databases/5.3
--socket=/home/<user_name>/databases/5.3/mysql.sock
--language=/home/<user_name>/src/5.3-mwl68/sql/share/english
--character-sets-dir=/home/<user_name>/src/5.3-mwl68/sql/share/charsets
--lower-case-table-names=1

Notice that I have chosen by default a non-standard port (11211),
to avoid possible conflicts with a standard MySQL installation.
The option --no-defaults is there so that it is guaranteed that
all options to the server come from my script (and thus the
command line).

Also notice that for versions > 5.1 the language and character
set options are different, check the docs.

Actually, if you want them, I can publish my scripts, let me
know.


Timour

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #6  
Old   
Philip Stoev
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 04:36 AM



You can also check out

http://mysqlsandbox.net/

maybe it has an option that will work for your needs.

http://search.cpan.org/~gmax/MySQL-S...box/Recipes.pm



Philip Stoev

----- Original Message -----
From: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com>
To: <internals (AT) lists (DOT) mysql.com>
Sent: Tuesday, March 23, 2010 6:44 AM
Subject: Re: MySQL execution


Quote:
--- On Mon, 22/3/10, Patrick Galbraith <patg (AT) patg (DOT) net
wrote:

From: Patrick Galbraith <patg (AT) patg (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc: internals (AT) lists (DOT) mysql.com
Date: Monday, 22 March, 2010, 5:10 PM
Karthik Gurukuntala wrote:
how to execute the compiled mysql without make
install, always?


The INTERNET now has a
personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/



Karthik,

You should example MySQL's options for execution

"mysqld --help --verbose" and use the proper options
for
your setups.

For a better situation, I would suggest that if you
are
averse to
installing MySQL system-wide,to at least install
MySQL
locally using
"./configure --prefix=/home/karthik/mysql_testdir"
(chose a
name of your
laking) and run it from there.

regards,

Patrick

Doesnt that require 'make install' at that location
everytime i re-compile the source with some
changes?(Actually am debugging the code to learn some
aggregation operations' execution.)


-K


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...toev (DOT) org


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #7  
Old   
Karthik Gurukuntala
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 06:52 AM



--- On Tue, 23/3/10, Sergei Golubchik <sergii (AT) pisem (DOT) net> wrote:

Quote:
From: Sergei Golubchik <sergii (AT) pisem (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc: internals (AT) lists (DOT) mysql.com
Date: Tuesday, 23 March, 2010, 8:48 AM
Hi, Karthik!

On Mar 23, Karthik Gurukuntala wrote:
--- On Mon, 22/3/10, Patrick Galbraith <patg (AT) patg (DOT) net
wrote:

From:Patrick Galbraith <patg (AT) patg (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc:internals (AT) lists (DOT) mysql.com
Date: Monday, 22 March, 2010, 5:10 PM
Karthik Gurukuntala wrote:
how to execute the compiled mysql
without make install, always?

Karthik,

You should example MySQL's options for
execution "mysqld --help
--verbose" and use the proper options for
yoursetups.

For a better situation, I would suggest that
if you are averse to
installing MySQL system-wide,to at least
install MySQL locally
using* "./configure
--prefix=/home/karthik/mysql_testdir" (chose
a name of your liking) and run it from
there.

* Doesnt that require 'make install'at that
location
* everytime i re-compile the source with some
* changes?(Actually am debugging the code to learn
some
* aggregation operations' execution.)

It does. But you can do 'make install' once, then delete
the installed
mysqld and replace it with a symlink to your mysqld binary
in the source
tree. Then you won't need to install anymore, recompile and
run.

Regards,
Sergei

Ok... so, is it the mysqld.o(inside workdir/sql) which gets created after make in the source, the binary of the new mysqld, that I have to symlink to 'mysqld_safe' in '/home/karthik/install/mysql/bin/' ?

my source is in '/home/karthik/source/workdir'.

Regards,
-Karthik


Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #8  
Old   
Karthik Gurukuntala
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 09:38 AM



--- On Tue, 23/3/10, Karthik Gurukuntala <kgurukuntala (AT) yahoo (DOT) com> wrote:

Quote:
From: Karthik Gurukuntala <kgurukuntala (AT) yahoo (DOT) com
Subject: Re: MySQL execution
To: "Sergei Golubchik" <sergii (AT) pisem (DOT) net
Cc: internals (AT) lists (DOT) mysql.com
Date: Tuesday, 23 March, 2010, 12:52 PM


--- On Tue, 23/3/10, Sergei Golubchik <sergii (AT) pisem (DOT) net
wrote:

From: Sergei Golubchik <sergii (AT) pisem (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc: internals (AT) lists (DOT) mysql.com
Date: Tuesday, 23 March, 2010, 8:48AM
Hi, Karthik!

On Mar 23, Karthik Gurukuntala wrote:
--- On Mon, 22/3/10, Patrick Galbraith
patg (AT) patg (DOT) net
wrote:

From: Patrick Galbraith <patg (AT) patg (DOT) net
Subject: Re: MySQL execution
To: "Karthik Gurukuntala" <kgurukuntala (AT) yahoo (DOT) com
Cc: internals (AT) lists (DOT) mysql.com
Date: Monday, 22 March, 2010, 5:10 PM
Karthik Gurukuntala wrote:
how to execute the compiled mysql
without make install, always?

Karthik,

You should example MySQL's options for
execution "mysqld --help
--verbose" and use the proper options
for
your setups.

For a better situation, I would suggest
that
if you are averse to
installing MySQL system-wide,to at
least
install MySQL locally
using* "./configure
--prefix=/home/karthik/mysql_testdir" (chose
a name of your liking) and run it from
there.

* Doesnt thatrequire 'make install' at that
location
* everytime i re-compile the source with some
* changes?(Actually am debugging the code to
learn
some
* aggregation operations' execution.)

It does. But you can do 'make install' once, then
delete
the installed
mysqld and replace it with a symlink to your mysqld
binary
in the source
tree. Then you won't need to install anymore,
recompile and
run.
*
Regards,
Sergei


Ok... so, is it the mysqld.o(inside workdir/sql) which gets
created after make in the source, the binary of the new
mysqld, that I have to symlink to 'mysqld_safe' in
'/home/karthik/install/mysql/bin/' ?

my source is in '/home/karthik/source/workdir'.

Regards,
-Karthik

I get that the above point i said is wrong.That, mysqld.o being the binary for mysqld....

Where is the binary of the mysqld in the source tree located? I am working on source mysql 5.5.1 m2.

Regards,
-Karthik


Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #9  
Old   
Timour Katchaounov
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 11:00 AM



Karthik,

<cut>
Quote:
Ok... so, is it the mysqld.o(inside workdir/sql) which gets
created after make in the source, the binary of the new
mysqld, that I have to symlink to 'mysqld_safe' in
'/home/karthik/install/mysql/bin/' ?

my source is in '/home/karthik/source/workdir'.

Regards,
-Karthik

I get that the above point i said is wrong.That, mysqld.o being the binary for mysqld....

Where is the binary of the mysqld in the source tree located? I am working on source mysql 5.5.1 m2.
Please re-read carefully my previous email, specifically the
command line I sent you. The answer is there.

Timour

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
  #10  
Old   
Sergei Golubchik
 
Posts: n/a

Default Re: MySQL execution - 03-23-2010 , 03:21 PM



Hi, Karthik!

On Mar 23, Karthik Gurukuntala wrote:
Quote:
It does. But you can do 'make install' once, then delete the
installed mysqld and replace it with a symlink to your mysqld binary
in the source tree. Then you won't need to install anymore,
recompile and run.

Ok... so, is it the mysqld.o(inside workdir/sql) which gets created
after make in the source, the binary of the new mysqld, that I have to
symlink to 'mysqld_safe' in '/home/karthik/install/mysql/bin/' ?
no, it's "mysqld" - that is "/home/karthik/source/workdir/sql/mysqld" -
that you need to symlink to "/home/karthik/install/mysql/libexec/mysqld"

ln -sf /home/karthik/source/workdir/sql/mysqld /home/karthik/install/mysql/libexec/mysqld

Regards,
Sergei

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.