Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Suresh Kuna
you can use mysqld_multi On Fri, Oct 15, 2010 at 8:24 PM, Claudio Nanni wrote: > did you remove /etc/my.cnf? > > 2010/10/15 ml ml > > > Hello, > > > > i installed mysql with: > > ./configure --prefix=/usr/local/myprefix/mysql/ && make && mak

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Claudio Nanni
did you remove /etc/my.cnf? 2010/10/15 ml ml > Hello, > > i installed mysql with: > ./configure --prefix=/usr/local/myprefix/mysql/ && make && make install > > (at the point mysql is not running yet) > > Next i would like to initi

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Himanshu Raina
You can pass the following variables as well --defaults-extra-file= --socket= --port= On Fri, 2010-10-15 at 18:50 +0530, ml ml wrote: > Hello, > > i installed mysql with: > ./configure --prefix=/usr/local/myprefix/mysql/ && make && make install > > (at

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread ml ml
Hello, i installed mysql with: ./configure --prefix=/usr/local/myprefix/mysql/ && make && make install (at the point mysql is not running yet) Next i would like to initialize the DB but get the follwoing error: ---

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Claudio Nanni
gt; >> Hello List, > >> > >> how do i install mysql COMPLETLY in a diffrent directory? > >> > >> Right now i am using: > >> ./configure --prefix=/usr/local/mysql-5.1.42 > >> --sysconfdir=/usr/local/mysql-5.1.42/etc > >> > &

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Himanshu Raina
Hi Mario, While installing a new instance you don't exactly need to mention anything except for the --prefix option. While starting the new instance you can provide all config parameters like config file, datadir etc. On Fri, 2010-10-15 at 16:47 +0530, ml ml wrote: > Hello List, >

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread ml ml
ll mysql COMPLETLY in a diffrent directory? >> >> Right now i am using: >> ./configure --prefix=/usr/local/mysql-5.1.42 >> --sysconfdir=/usr/local/mysql-5.1.42/etc >> >> BUT, mysql still looks for /etc/my.cnf and for >> /var/log/mysql/mysql-bin.index ... >>

Re: multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread Claudio Nanni
hi, do you want to compile or you can use binaries? Claudio 2010/10/15 ml ml > Hello List, > > how do i install mysql COMPLETLY in a diffrent directory? > > Right now i am using: > ./configure --prefix=/usr/local/mysql-5.1.42 > --sysconfdir=/usr/local/mysql-5.1.42/etc

multiple mysql installations - Install mysql from source with a prefix

2010-10-15 Thread ml ml
Hello List, how do i install mysql COMPLETLY in a diffrent directory? Right now i am using: ./configure --prefix=/usr/local/mysql-5.1.42 --sysconfdir=/usr/local/mysql-5.1.42/etc BUT, mysql still looks for /etc/my.cnf and for /var/log/mysql/mysql-bin.index ... So what configure options do i

Re: update fields with a prefix - ?? how to

2009-10-19 Thread Johan De Meersman
Something in the ilk of update *table* set *field* = concat("prefix_", *field*) where *condition * should do the trick. On Mon, Oct 19, 2009 at 4:56 PM, lejeczek wrote: > dear all, a novice here > quickie regarding query syntax - is it possible to take fields values from > one column > and updat

update fields with a prefix - ?? how to

2009-10-19 Thread lejeczek
dear all, a novice here quickie regarding query syntax - is it possible to take fields values from one column and update the same column with new values like this: prefix_OldValue column: one, two, three -> column: prefix_one, prefix_two, ... can this be done with one query and with on use of ab

Re: Install problem: configure --prefix not working

2009-02-11 Thread Walter Heck
://www.olindata.com On Wed, Feb 11, 2009 at 5:35 PM, csego...@gmail.com wrote: > I am trying to install mysql in a non-standard directory - specifically > /app/mysql > > Subsequently, I ran the following configure command: > > ./configure --prefix=/app/mysql --with-plugins=innobase,myisam

Install problem: configure --prefix not working

2009-02-11 Thread csego...@gmail.com
I am trying to install mysql in a non-standard directory - specifically /app/mysql Subsequently, I ran the following configure command: ./configure --prefix=/app/mysql --with-plugins=innobase,myisam There were no problems with the compile, but mysql failed to start. Furthermore, the following

Re: [Fwd: search issue] Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Istvan Hubay Cebrian
> > pt_table1 > pt_table2 > pt_table3 > > What I want to do is copy each of the tables (exactly as they are, > including primary keys, data, etc) but at the same time change the prefix > to something else (ie: eng_) so that I would end up with: > > pt_table1 > pt_ta

Re: Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Michael Dykman
imary keys, data, etc) but at the same time change the prefix to something else (ie: eng_) so that I would end up with: pt_table1 pt_table2 pt_table3 en_table1 (exact copy of pt_table1, including data PK, FK, etc..) en_table2 (exact copy of pt_table2, including data PK, FK, etc..) en_table3 (ex

Re: [Fwd: search issue] Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Istvan Hubay Cebrian
Martijn Tonies wrote: > > >> >> Anyway of accomplishing this? Ideally without having to state each of > the >> >> tables names. And also that this would work so that you could only >> > duplicate >> >> tables that have a certain pre

Re: [Fwd: search issue] Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Martijn Tonies
> >> Anyway of accomplishing this? Ideally without having to state each of the > >> tables names. And also that this would work so that you could only > > duplicate > >> tables that have a certain prefix, so: duplicate only tables that start > > with &g

Re: [Fwd: search issue] Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Istvan Hubay Cebrian
les: >> >> pt_table1 >> pt_table2 >> pt_table3 >> >> What I want to do is copy each of the tables (exactly as they are, > including >> primary keys, data, etc) but at the same time change the prefix to > something >> else (ie: eng_) so that I wou

Re: [Fwd: search issue] Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Istvan Hubay Cebrian
do is copy each of the tables (exactly as they are, >> including >> primary keys, data, etc) but at the same time change the prefix to >> something >> else (ie: eng_) so that I would end up with: >> >> >> Anyway of accomplishing this? Ideally without having to stat

Re: Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Martijn Tonies
gt; What I want to do is copy each of the tables (exactly as they are, including > primary keys, data, etc) but at the same time change the prefix to something > else (ie: eng_) so that I would end up with: > > pt_table1 > pt_table2 > pt_table3 > en_table1 (exact copy of pt_table

Re: Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Chris McKeever
time change the prefix to something else (ie: eng_) so that I would end up with: Anyway of accomplishing this? Ideally without having to state each of the tables names. And also that this would work so that you could only duplicate tables that have a certain prefix, so: duplicate only tables that

Duplicating contents of DB within same DB with different prefix

2007-02-22 Thread Istvan Hubay Cebrian
les (exactly as they are, including primary keys, data, etc) but at the same time change the prefix to something else (ie: eng_) so that I would end up with: pt_table1 pt_table2 pt_table3 en_table1 (exact copy of pt_table1, including data PK, FK, etc..) en_table2 (exact copy of pt_table2, including d

Prefix Indices

2006-10-17 Thread Robert DiFalco
I have some long VARCHAR fields that a user will sometimes sort on. Does a prefix index in any way help with sorting or just for lookups? Will it speed up a filesort? I couldn't find this information in "How MySQL uses indices". R. -- MySQL General Mailing List For list

Re: Granting all to a user with a db name prefix

2006-07-25 Thread Paco Zarabozo A.
50 AM Subject: Re: Granting all to a user with a db name prefix Paco Zarabozo A. wrote: > Hello All, > > I'm trying to GRANT ALL to a user only on DBs that math a prefix, but i > can't find the way to so it on the documentation. Let's assume the usern

Re: Granting all to a user with a db name prefix

2006-07-24 Thread Michael Stassen
Paco Zarabozo A. wrote: Hello All, I'm trying to GRANT ALL to a user only on DBs that math a prefix, but i can't find the way to so it on the documentation. Let's assume the username is "john". I want him to have all privileges only on databases with the prefix jo

Granting all to a user with a db name prefix

2006-07-24 Thread Paco Zarabozo A.
Hello All, I'm trying to GRANT ALL to a user only on DBs that math a prefix, but i can't find the way to so it on the documentation. Let's assume the username is "john". I want him to have all privileges only on databases with the prefix john, so he can: - create an

Re: Mysql Finding the country name from country prefix

2005-11-20 Thread Björn Persson
Jasper Bryant-Greene wrote: > Michael's solution will not produce reliable results as it will return > at least two results for many different phone numbers, with no way to > tell which is the correct result. As long as the database contains Abhishek's bogus "XYZ" and "ZXF" records, yes. If the d

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
7;t claim to be an expert on phone numbers, but if they're ambiguous, how do they work? That is, if a number can start with a valid prefix for two different places, where does the call go? Surely, there must be a way to parse a phone number that correctly directs the call. The question t

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Jasper Bryant-Greene
Michael Stassen wrote: Anyway, I just wanted to share these observations with the original poster - and anyone else on the list who is following this issue - to help put some perspective on the matter. Again, feel free to ignore me if you like. :-) All good points. As you say, if the numbers

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
Rhino wrote: - Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: "abhishek jain" <[EMAIL PROTECTED]>; Sent: Saturday, November 19, 2005 3:55 PM Subject: Re: Mysql Finding the

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Rhino
- Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: "abhishek jain" <[EMAIL PROTECTED]>; Sent: Saturday, November 19, 2005 3:55 PM Subject: Re: Mysql Finding the country name from country

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
Rhino wrote: - Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: "abhishek jain" <[EMAIL PROTECTED]>; Sent: Saturday, November 19, 2005 1:11 PM Subject: Re: Mysql Finding the

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Rhino
- Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: "abhishek jain" <[EMAIL PROTECTED]>; Sent: Saturday, November 19, 2005 1:11 PM Subject: Re: Mysql Finding the country name from country

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Björn Persson
Rhino wrote: > If you parsed the first example, you might assume that I am in > Brazil, because '55' is the country code for Brazil. (Country codes '5' and > '555' are not in use at present.) And they never will as long as "55" is in use, because then phone numbers would become ambiguous. Björn

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
Peter Brawley wrote: abhishek jain, >I need to find the country name from the country prefix so eg. i have >a mysql table with prefix and name as the coumns and with datas like : >1 USA >11XYZ >44UK >91India >92Pakistan &g

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
Rhino wrote: - Original Message - From: "abhishek jain" <[EMAIL PROTECTED]> To: Sent: Saturday, November 19, 2005 8:10 AM Subject: Mysql Finding the country name from country prefix Hi Friends, I have a ticky mysql problem. I need to find the country name from the c

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Michael Stassen
abhishek jain wrote: Hi Friends, I have a ticky mysql problem. I need to find the country name from the country prefix so eg. i have a mysql table with prefix and name as the coumns and with datas like : Prefix, Name 1 USA 11XYZ 44UK 91India 92Pakistan

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Peter Brawley
abhishek jain, >I need to find the country name from the country prefix so eg. i have >a mysql table with prefix and name as the coumns and with datas like : >1  USA >11    XYZ >44    UK >91    India >92    Pakistan >123  ZXF You me

Re: Mysql Finding the country name from country prefix

2005-11-19 Thread Rhino
- Original Message - From: "abhishek jain" <[EMAIL PROTECTED]> To: Sent: Saturday, November 19, 2005 8:10 AM Subject: Mysql Finding the country name from country prefix Hi Friends, I have a ticky mysql problem. I need to find the country name from the country prefix

Mysql Finding the country name from country prefix

2005-11-19 Thread abhishek jain
Hi Friends, I have a ticky mysql problem. I need to find the country name from the country prefix so eg. i have a mysql table with prefix and name as the coumns and with datas like : Prefix, Name 1 USA 11XYZ 44UK 91India 92Pakistan 123 ZXF and i

Re: Insert with prefix

2005-07-27 Thread SGreen
gt; > > >Table should look like this: > >UP01 > >UP02 > >UP03 > > > >So the problem is, how can I grab the auto_increment number, then > append the prefix while doing an insert? > > > >Can anyone give me some advice on this proble

Re: Insert with prefix

2005-07-27 Thread Eric Bergen
ot; + the next "AUTO_INCREMENT" Here is what I have. category_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Table should look like this: UP01 UP02 UP03 So the problem is, how can I grab the auto_increment number, then append the prefix while doing an insert? Can an

Insert with prefix

2005-07-27 Thread Scott Purcell
TO_INCREMENT PRIMARY KEY, Table should look like this: UP01 UP02 UP03 So the problem is, how can I grab the auto_increment number, then append the prefix while doing an insert? Can anyone give me some advice on this problem? Thanks, Scott -- MySQL General Mailing List For

we know what is causing now: InnoDB: Warning: using a partial-field key prefix

2005-07-01 Thread Brady Brown
Hi, We have inquired about this warning before, but now that we have upgraded to 4.1, we know which query/table is causing these frequent warnings: 050701 17:19:34 InnoDB: Warning: using a partial-field key prefix in search. InnoDB: index `rp_id` of table `as_imp/roundrobin_pub`. Last data

Re: change data prefix query

2005-06-07 Thread mfatene
2 | | EN05003 | | EN05004 | +-+ 5 rows in set (0.00 sec) Mathias Selon Scott Purcell <[EMAIL PROTECTED]>: > Hello, > > I have a table that has a varchar column in which I need to change a prefix > for all records. Currently there are about 500 records and I did not wa

Re: change data prefix query

2005-06-07 Thread Rhino
le via mysqldump, edit the flat file with a text editor so that all 'EN' become 'UP', then reload the modified data back into the database. A lot more work but still do-able if there are some gotchas in the data that you haven't told us about. Rhino - Original Message -

change data prefix query

2005-06-07 Thread Scott Purcell
Hello, I have a table that has a varchar column in which I need to change a prefix for all records. Currently there are about 500 records and I did not want to do this by hand. It looks like this: [data here ] UP05000 UP05001 UP05002 UP05003 The identifier has now changed to EN so each

Re: What's the meaning of: "InnoDB: Warning: using a partial-field key prefix in search"

2003-08-20 Thread Heikki Tuuri
end) { /* The last field in key was not a complete key field but a prefix of it. Print a warning about this! HA_READ_PREFIX_LAST does not currently work in InnoDB with partial-field key value prefixes. Si

What's the meaning of: "InnoDB: Warning: using a partial-field key prefix in search"

2003-08-19 Thread Mechain Marc
In one of my logfiles I have quite repeatedly the following message: InnoDB: Warning: using a partial-field key prefix in search What does this warning mean ? Regards, Marc Mechain Atos Origin -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

re: deleting tables with same prefix !

2003-01-04 Thread Victoria Reznichenko
On Friday 03 January 2003 19:14, aman raheja wrote: > How can I delete all tables starting with prefix 'abc' in the MySQL > database (there > are about 200 such tables). > Wild cards? Nope. You should use list of all tables in the DROP TABLE command if you want to do it

deleting tables with same prefix !

2003-01-03 Thread aman raheja
Hi All How can I delete all tables starting with prefix 'abc' in the MySQL database (there are about 200 such tables). Wild cards? Or if I just delete the files from the location where all the MySQL database tables are stored, what would happen ? T

Re: feature proposal: auto increment prefix

2002-09-12 Thread Paul DuBois
At 0:47 -0500 9/13/02, [EMAIL PROTECTED] wrote: > > > 2) Make a CHAR (or VARCHAR) AUTO_INCREMENT column with mandatory >> > PREFIX. MySQL would then assign values that start with the prefix, >> > followed by a sequential number. >> >> This works alrea

Re: feature proposal: auto increment prefix

2002-09-12 Thread dvorakv
> > 2) Make a CHAR (or VARCHAR) AUTO_INCREMENT column with mandatory > > PREFIX. MySQL would then assign values that start with the prefix, > > followed by a sequential number. > > This works already for MyISAM and BDB tables. From the manual: > > CREATE TABLE ani

feature proposal: auto increment prefix

2002-09-12 Thread dvorakv
m the specified range. Then, the user would assign a different range to each replication master. Example of proposed syntax: CREATE TABLE example (id INT AUTO_INCREMENT RANGE 1-999 PRIMARY KEY, other_column VARCHAR(100)); 2) Make a CHAR (or VARCHAR) AUTO_INCREMENT column with mandatory PREFIX. M

Re: prefix

2002-04-11 Thread Jeremy Zawodny
local. > > Any way to do this > > ./configure --prefix=/usr/local (default) > make > make install prefix=/home/turner/mysql/test Not that I know of. I belive some of the paths are compiled into MySQL, so recompilation is necessary. Jeremy -- Jeremy D. Zawodny, <[EMAIL PR

Re: prefix

2002-04-10 Thread David Turner
I guess make install prefix=/home/turner/mysql/test just isn't an option. How would I request this functionality be provided in the make file? Thanks, Dave Turner On Tue, Apr 09, 2002 at 05:45:04PM -0700, David Turner wrote: > Thanks, but what I need to do is have > >

Re: prefix

2002-04-09 Thread David Turner
Thanks, but what I need to do is have make install install everything into /home/turner/mysql/test then I'll check everything out to make sure it is how I want it and last I'll copy it all to /usr/local. Any way to do this ./configure --prefix=/usr/local (default) make make inst

Re: prefix

2002-04-09 Thread Jeremy Zawodny
On Tue, Apr 09, 2002 at 05:30:06PM -0700, David Turner wrote: > > I would like to make install to my home directory but can't seem to get it to > work. > > make install prefix=/home/turner/mysql/test > > It keeps wanting to install to /usr/local even thoug

prefix

2002-04-09 Thread David Turner
I would like to make install to my home directory but can't seem to get it to work. make install prefix=/home/turner/mysql/test It keeps wanting to install to /usr/local even though I pass the prefix parm. Thanks,

Re: localstatedir [PREFIX/var]

2001-11-10 Thread Hugo van der Sanden
[EMAIL PROTECTED] wrote: :>Description: : ./configure --help :claims that the default value of localstatedir is PREFIX/var, but :after setting --prefix it appears to be still pointing to '/var'. : :>How-To-Repeat: : ./configure --prefix=/opt/mysql-3.23.44 : make : make inst

localstatedir [PREFIX/var]

2001-11-10 Thread hv
>Description: ./configure --help claims that the default value of localstatedir is PREFIX/var, but after setting --prefix it appears to be still pointing to '/var'. >How-To-Repeat: ./configure --prefix=/opt/mysql-3.23.44 make make install ./scripts/mysql_install_db mkdi

Indexing only a prefix of the string

2001-06-24 Thread Daniel Åkerud
If I have a table: CREATE TABLE film ( title CHAR(200) NOT NULL, INDEX title_index (title(5)) ); What is the underlaying reason why it is faster to index only a prefix of the title? Is it always faster? even if i have a trillions of title 200 characters long