Re: Faster version of Movie Search

2004-02-05 Thread Adam
Mark, You're killing me because I can't visualize the source tables. A query like this is bread and butter, it shouldn't take to long to execute. Give me a better idea of the table structure and relationships between them. I try to help. Regards, Adam On Feb 4, 2004, at 11:04

Re: syntax question..

2004-11-14 Thread Adam
nt to achieve? (2) What are the details of the tables in the join (column names & data types)? Regards, Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Problem connecting to MySQL 4.1.7 running on another machine

2004-11-15 Thread Adam
---+ Hope this helps some. Cheers, Adam Kevin Barry> > I've installed ver 4.1.7 on a brand new Fedora Core 3 server but cannot > connect remotely from a Mac OSX machine running Navicat or a Win XP machine > running MySQL Admin. I can ping the machine with no problem and have op

Re: Database/Table Structure

2004-11-15 Thread Adam
tudio/index.html) There are many other some are probably free. Look around! I hope you find something you like. Cheers, Adam Ferguson, Michael> > G'Day All, > > Can anyone recommend an application that will read/probe a MySQL > database on a Linux server and gener

Re: Trying to dump from GUI client

2004-11-16 Thread Adam
mma delimited file. Good luck! Regards, Adam Eve Atley> > > I'm not sure how best to proceed in dumping data from 1 database and getting > a copy of the export, in order to transfer it to another server. I usually > use phpmyadmin to do an export, which nicely creates a .zip f

Re: Excel 2 mysql

2004-12-08 Thread Adam
Ziggy, I'm not sure what you need help with. If you want to get data into MySQL from Excel, consider saving the data (I assume it is a table) as a CSV then using the LOAD DATA command to bring the data into a temporary table in MySQL. Take a look at the command in the help pages. Regards,

frecvent table corruption

2004-08-24 Thread adam
Hello. My company is using mysql as a backed to Bugzilla. However, recently, as the number of users that are logging bugs increased we are experiencing frequent table corruption and loss of data. The actual error message we get is: " SELECT query FROM namedqueries WHERE userid = 4 AND n

RE: frecvent table corruption

2004-08-25 Thread adam
-Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 12:40 PM To: [EMAIL PROTECTED] Subject: Re: frecvent table corruption "adam" <[EMAIL PROTECTED]> wrote: > The actual error message we get is: > > " SELECT

how to turn on auditing for mysql

2004-08-29 Thread adam
Is there any way to log all the activity in a mysql database? I would like to know every single delete insert or select on all tables for my database. Regards, Alex

Problem with my bin-logs in replication

2003-09-02 Thread Adam
email, or hitting a url or some sort of automagical device to tell me things are stopped, or is the best way to write a quick script to pull show slave status and check the vars? Thank you, Adam ### This message has been scanned by F-Secure Ant

SuperSmack on x86_64 / gcc 3.2.2

2003-09-02 Thread Adam
string' is used as a type, but is not defined as a type. dictionary.h: In constructor `Unique_dictionary::Unique_dictionary()': dictionary.h:65: class `Unique_dictionary' does not have any field named `templ ' Thanks, Adam -- MySQL General Mailing List For list archives: ht

RE: SuperSmack on x86_64 / gcc 3.2.2

2003-09-03 Thread Adam
Wow! Great timing. Thanks Jeremy -Original Message- From: Jeremy Zawodny [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:13 PM To: Adam Cc: [EMAIL PROTECTED] Subject: Re: SuperSmack on x86_64 / gcc 3.2.2 On Tue, Sep 02, 2003 at 10:23:42PM -0400, Adam wrote: > Any

supersmack question regarding dictionary

2003-09-04 Thread Adam
If I wanted to make a dictionary entry that would just provide a sequential # starting at X and every time its used, it adds one... Is this possible? How? I do not quite understand the docs, but it seems like unique and template has this ability. Thanks, Adam

Re: Using Access as client all fields are marked "#Deleted"

2004-04-03 Thread Adam
avior when executing DDL queries to MySQL. Regards, Adam On Apr 1, 2004, at 4:14 AM, Patrick Kirk wrote: Hi all, My setup is windoes 2000, Access 2000 and Mysql built from source on Debian. Some tables can be seen but all new entries are marked "#Deleted". If I close the table in Access

Re: Why can't I use an "AS" value in the WHERE clause.

2004-04-06 Thread Adam
Daevid, SELECT * FROM wifi_table WHERE active = 1 HAVING unix_timestamp()-unix_timestamp(last_seen) < 600; Regards, Adam On Apr 5, 2004, at 8:29 PM, Daevid Vincent wrote: I'm curious when will I be able to do something like this: SELECT *, IF(( (unix_timestamp()-unix_timestamp(l

Re: Why can't I use an "AS" value in the WHERE clause.

2004-04-07 Thread Adam
t move the expression in the `IF` to the HAVING clause? So take my old statement and ditch the where clause. You'll get: SELECT * FROM wifi_table HAVING unix_timestamp()-unix_timestamp(last_seen) < 600; A little easier on the eyes no? Cheers, Adam On Apr 6, 2004, at 9:42 PM, Michael St

Re: Why can't I use an "AS" value in the WHERE clause.

2004-04-09 Thread Adam
MIchael, Point well taken. Cheers, Adam On Apr 8, 2004, at 2:47 PM, Michael Stassen wrote: Good point. I was focused on the question of using the alias to restrict results, so I left the function in the SELECT part. As you say, in this query, that would just give a useless column of '1&

Fwd: Trying to run multiple statements through MySQL monitor

2004-04-17 Thread Adam
All, I've got data listing people's identification details including first and last name, social, and status in the application. Given this data, I want to know how many duplicate socials I have. Normally I'd write a query with a sub select to get that information - something like this: SELECT

Re: Datetime Default Value - I want to know too!

2004-04-18 Thread Adam
This is a great question! I also work on SQL Server (2k) databases as well as Access and MySQL. I run into the same problem. So far, I've just changed the SQL in my applications, but I also would like to know if a default can be set. Regards, Adam On Apr 18, 2004, at 12:01 AM, Stormblade

Re: Create table results in (errno: 121)

2004-04-28 Thread Adam
, I'd reference the message, and if that doesn't help bring the message to the group. Regards, Adam On Apr 22, 2004, at 9:29 AM, Tom Brown wrote: Hi, I'm trying to create a table with the following syntax CREATE TABLE TNSession ( SessionID int(11) NOT NULL auto_increment, IPAdd

how to uninstall mysql

2004-05-04 Thread adam
Hello. I have installed MySql on RH Linux, however since I have installed in the wrong location I would like to uninstall. Basically I have installed the binary version from the "mysql-standard-4.0.18-pc-linux-i686.tar.gz" and I have followed the instructions in the INSTALL-BINARY, in partic

mysqldump under cron

2004-06-01 Thread adam
Hello. I am using mysql 4.0.18 on rh3, and I would like to daily save db state. I have this small script under the cron directory that when executed from the prompt works fine. Basically the dump is done by: mysqldump --user=root --password= --opt bugs > $BACKUPDIR$BACKUPSQLFILE My

MySQL 3.23 Lost Connection

2002-03-05 Thread Adam
Hello. I have compiled/rebuilt the MySQL 3.23.49 Source RPM under kernel 2.4.17, and glibc 2.1. Using gcc version 2.95.4 20010319 (prerelease). I had 2.96 on there and headed the warnings and downgraded to 2.95. Randomly I get the Lost Connection using PHP 4.1.2... Any idea why? Thanks Adam

RE: MySQL 3.23 Lost Connection

2002-03-05 Thread Adam
has a gig of ram. Very little traffic. adam -Original Message- From: Fournier Jocelyn [Presence-PC] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 3:52 PM To: Adam Helfgott Subject: Re: MySQL 3.23 Lost Connection Hi, Perhaps a mysql thread which runs out of memory ? Regards

Weird problem again.

2002-03-05 Thread Adam
I was the one having issues getting Lost Connection and whatnot for no reason. I have recompiled under glibc2.2.5 with 2.95 and 3.04. I just tried 4.0.2 from the source tree. Sometimes from the command line of doing mysql -uroot -p I get this: ERROR: And that's it. I run it again, and it go

RE: MySQL 3.23 Lost Connection

2002-03-06 Thread Adam
startup, and my own options that works well on another production server of a similar configuration. Apache/PHP and Qmail work flawlessly on this machine. Thanks for everyones help on this matter! -adam -Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March

RE: SQL coding: Finding singular when search with plural.

2002-03-06 Thread Adam
I'm assuming your users arnt using a MySQL client directly to perform the queries... And your using middleware like PHP or something. So your PHP code can parse the users responses and then design your SQL queries around your parsed data. -Original Message- From: BadgerBay [mailto:[EMAI

RE: Structure as a field

2002-03-06 Thread Adam
Perhaps you can create a function to serialize the array into text and dump it into a blob in the DB, and have another field(s) with the data you want to search on.. Then unserialize the array when you take it out. -Original Message- From: Hresko, Christian A. [mailto:[EMAIL PROTECTED]]

Re: Stepping through a MySQL_fetch_array in PHP?

2002-03-07 Thread Adam
$sql="select * from table where blah=$blah"; $x=mysql_query($sql); while ($data=mysql_fetch_array($x)) { echo "$data[columnName]"; } I think is what your trying to do... On Thu, 7 Mar 2002, Gavin Philips-Page wrote: |Could anybody please help: | |In the query I have includ

RE: Web hosting scalability?

2002-03-07 Thread Adam
Yep.. this is very feasible.. And there are some packages to do this already. http://www.firstworks.com/sqlrelay.html Is a good package and library/API to implement what you want to do. We have done this in the past for a large community based website. -Original Message- From: John Ma

RE: [ANN] Blue World Announces Lasso vs PHP White Paper

2002-03-07 Thread Adam
There is a point that if you buy APC-Cache and the encoder you are spending a lot of cache. However there is APC, PHPCache and others that do the job.. but not as well. PHP is mildly flawed in the sense that it is somewhat intentionally crippled so Zend can make a profit from sites that adopt it

RE: [ANN] Blue World Announces Lasso vs PHP White Paper

2002-03-07 Thread Adam
What they need is a PHP->Lasso converter, or offer a dev person to convert your application. Similar to ASP2PHP MYSQL CONTENT: And does Lasso offer MySQL connection pooling? -Original Message- From: John Dean [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 2:59 PM To: [EMAI

RE: I want to RFTM...

2002-03-14 Thread Adam
That's probably your problem. You don't want to read "fucking the manual", you want to read "the fucking manual"! Sorry. I couldn't resist! :) Your best bet isn't gonna come from a mysql doc. But from a SQL design theory book/resource. -Original Message- From: Matthew Walker [mailto:[

/tmp/mysql.sock problem

2002-06-03 Thread adam
te. However, it still hasn't provided me with a mysql.sock file. How do I reinstate this file? advTHANKSance Adam - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: /tmp/mysql.sock problem

2002-06-04 Thread adam
Dicky Wahyu Purnomo wrote: > On Tue, 04 Jun 2002 08:04:01 +0100 > adam <[EMAIL PROTECTED]> wrote: > > >>Apologies for posting such a basic query, but I couldn't find an >>archived version of the mailing list, or a fix to my problem. Using >>Linux

Re: /tmp/mysql.sock problem

2002-06-04 Thread adam
Dicky Wahyu Purnomo wrote: > On Tue, 04 Jun 2002 08:04:01 +0100 > adam <[EMAIL PROTECTED]> wrote: > > >>Apologies for posting such a basic query, but I couldn't find an >>archived version of the mailing list, or a fix to my problem. Using >>Linux

Re: /tmp/mysql.sock problem

2002-06-04 Thread adam
Egor Egorov wrote: > adam, > > Tuesday, June 04, 2002, 12:05:30 PM, you wrote: > >>>the mysql.sock file is automatically created when mysqld is started. >>>please check your configuration (/etc/my.cnf) and your mysql daemon ... :D >>> >> >

Re: /tmp/mysql.sock problem

2002-06-04 Thread adam
OK got this sorted in the end, by putting a soft link in to the /tmp folder pointing to the /var/lib - thanks one and all. Adam Dicky Wahyu Purnomo wrote: > On Tue, 04 Jun 2002 08:04:01 +0100 > adam <[EMAIL PROTECTED]> wrote: > > >>Apologies for posting such a bas

Re: mysql.sock

2002-06-08 Thread adam
I took a look at mysql.sock and that file is empty > > any ideas how to fix that? *nix? Is mysql.sock in /etc? Mine wasn't, so I put in a soft link from the location and it worked fine after that. Adam -- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.0.4 (GNU/Linux)

Re: mysql.sock

2002-06-08 Thread adam
Oscar Mena wrote: > is not in /etc > how do I put that soft link? > > - Original Message ----- > From: "adam" <[EMAIL PROTECTED]> > To: "Oscar Mena" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, June 08, 2002

Re: scripts needed

2002-06-08 Thread adam
JR wrote: > To setup your table see: http://www.mysql.com/doc/C/R/CREATE_TABLE.html > > I do not believe that mysql will read the foxpro db format. Dump your > foxpro table data into a text file and use mysqlimport to pull the data > into your mysql table. See: > http://www.mysql.com/doc/m/y/mysq

Obscure replication error message

2002-06-14 Thread adam
>Description: Replication stopped on our MySQL 4.0.1-alpha distribution with the error: Error executing query '%': got error 127 from table handler. (This may not be the exact text). Note the '%', which is what this bug report is referring to. Presumably the text of the query should be there.

help with mysql.sock error

2001-09-10 Thread adam
I am having trouble with mysql... i keep getting "ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" I uninstalled and reinstalled MySQL rpm (RH 7.1). I originally I was able to connect to MySQL server via command line client, but could not connect v

RE: MySQL Sock error

2001-09-10 Thread adam
Thank you everyone who helped :o) I got MySQL up and running... as it turned out it was a permissions problem... go figure.. i hoped i left that all behind with NT :o) -Adam - Before posting, please check: http

Re: MySQL Error

2001-09-11 Thread adam
i had the same problem chown -R mysql.mysql /var/lib/mysql and i created a symlink from /tmp to the /var/lib/mysql/mysql.sock and restarted mysql and wammo it worked.. I used this on one computer on the advice for Error 2002: ... ... mysql.sock(2) error. On Tue, 2001-09-11 at 08:53, Mi

Re: Database Design

2001-09-11 Thread adam
i got a really good book on MySQL, it does not have much in the way of troubleshooting, but a lot on use. Title: MySQL Author: Paul DuBois ISBN: 0-7357-0921-1 Publisher: New Riders - Before posting, please check: http://w

Re: MySQL and Perl

2001-09-11 Thread adam
In web development PHP is very easy to use and best of all very well documented. I have to aggress with Lezz Giles on using PHP over perl for MySQL backed webpages.. The learning curve on PHP is far easier than perl.. I use both for various reasons..I tend to use perl of CGI apps that php cant do

Designing a recovery plan for MySQL

2001-09-12 Thread adam
I got an idea and thought i would ask around about a recovery plan about databases? Currently all i do is dump the databases on to a share on an NT box thru a SMB share from the RH 7.1 Linux DB server. The NT box is a Compaq CL1850 which is 2 Compaq 1850 server with a shared SCSI array. The NT box

Re: mysql.sock error

2001-09-13 Thread adam
the sock file is in the /usr/lib/mysql dir i created a symlink of the file from there to /tmp On Thu, 2001-09-13 at 14:32, Nick Torenvliet wrote: > > I'm trying to start my first ever installation of mysql, so I've installed > the tar.gz (3.23.42 on Linux) and I've run ./configure from /my

newbie optimization question

2006-04-19 Thread Adam Wolff
About 95% of the records of in the table have user_id=1 Any insight will be greatly appreciated. Thanks, Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: newbie optimization question

2006-04-20 Thread Adam Wolff
lly have 3! combinations of filters and sort orders. Adam On Apr 20, Alexey Polyakov wrote: > On 4/20/06, Adam Wolff <[EMAIL PROTECTED]> wrote: > > > How can I optimize the case where I filter on one key but sort on another? > > This is fast: > >SELECT * FROM co

finding a record within a sort order

2006-04-20 Thread Adam Wolff
CT contacts.*, (SELECT COUNT(*) FROM contacts AS c2 ... but that's conceptually what I'm looking for. Thanks! Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: newbie optimization question

2006-04-20 Thread Adam Wolff
Hey! I figured out this one myself: On Apr 19, Adam Wolff wrote: > * Question 2: > Why does introducing an extra WHERE clause make things slower? > If I do this: > SELECT * FROM contacts WHERE fullname LIKE "j%" AND user_id=1 > ORDER BY fullname LIMIT 10; >

Re: Why does this query takes a lot of time

2006-04-22 Thread Adam Wolff
On Apr 22, Philippe Poelvoorde wrote: > alter table s add index(login_name); > alter table c add index(recordID); To make this much faster, I think you may want: alter table s add index(recordID, login_name); alter table c add index(recordID); Because after the join, the engine can use the

Re: Optimising for many rows and returned records (de-coupling query time to record set size for range queries)

2006-04-23 Thread Adam Wolff
I didn't look through your code very carefully. Have you confirmed (using EXPLAIN) that your select query is using the index? I don't much about the mysql optimizer, but it's possible that this query: > $query1="SELECT lat,lon from integer_test WHERE lat>$lat1 and lat<$lat2 > and lon>$lon1 and l

Re: Optimising for many rows and returned records (de-coupling query time to record set size for range queries)

2006-04-23 Thread Adam Wolff
Actually I think this should be an INNER JOIN -- not a LEFT JOIN. A On Apr 23, Adam Wolff wrote: > I didn't look through your code very carefully. Have you confirmed (using > EXPLAIN) that your select query is using the index? > > I don't much about the mysql optimizer,

Re: Optimising for many rows and returned records (de-coupling query time to record set size for range queries)

2006-04-24 Thread Adam Wolff
Well, I hadn't known about the spatial features of MySQL. If you're ok using vendor extensions then that definitely looks like the way to go: http://dev.mysql.com/doc/refman/5.0/en/gis-introduction.html A On Apr 24, Nick Hill wrote: > Hello Adam > > Adam Wolff wrote: > &

slow query

2006-05-09 Thread Adam Wolff
| SIMPLE | contacts | ref | user_id,user_id_2 | user_id_2 | 4 | const | 506222 | Using where | ++-+--+--+---+---+-+---++-+ In other words, it *is* using an index for this query. Anyone have any advi

Re: slow query

2006-05-10 Thread Adam Wolff
column: > http://dev.mysql.com/doc/refman/5.0/en/alter-table.html > Also note that as you add or delete rows the table does not stay in order. > > Hope this helps! > > Dan > > > Adam Wolff wrote: > > I have a very simple table that looks like this: > > CREATE

Re: Sum of counts

2006-05-10 Thread Adam Wolff
You could you use UNION to make this all execute in a single query. On 5/10/06, Rhino <[EMAIL PROTECTED]> wrote: Hi Chris, Joerg, and everyone else following this discussion, Joerg, you are correct; the best way to sum the tables is individually and then add the sums together with program logic

MySQL commercial licence

2006-05-12 Thread Adam Lipscombe
have experience of this? Upgrading commercial licences? What's the story? Thanks - Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: MySQL commercial licence

2006-05-12 Thread Adam Lipscombe
Checking. I don't think the customer bought the "network" version. Apparently its MySQL Pro Licence V4. It's a bit rich not to offer upgrades at a discount IMO. Adam -Original Message- From: David Logan [mailto:[EMAIL PROTECTED] Sent: 12 May 2006 11:52 T

Drop Index if Exists

2006-09-01 Thread Adam Lipscombe
Folks, Does this work in MYSQL 5? I tried "DROP INDEX [NAME] IF EXISTS;" and got an error "check your syntax". Thanks - Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Drop Index if Exists

2006-09-01 Thread Adam Lipscombe
Thanks What I am getting at is: does the "IF EXISTS" qualifier work in this context? I have an index that is present in some DB's but not in others. I want to run a generic script to upgrade them all. I don't want the script to stop if the index is not present. Thanks

java mysql alias is being displayed blank?

2006-10-11 Thread ADAM CZECH
k you, Adam JSP: User ID First Name Last Name User Name Phone Number phone_name login Status Number of Con

Re: Sarge problems with MySQL and DBI / DBD::mysql

2005-06-21 Thread Adam Majer
n the sql statement with error > $DBI::errstr"); > >How can I debug or fix this problem, please? > > Instead of doing this, you might want to try setting RaiseError (see man DBI) which would cause DBI to detect errors and throw exceptions. Alternatively, you migh

Locks acquired with get_lock() persisting, even after MySQL thread has exited

2005-09-07 Thread Adam Newby
Description: We have distributed applications which make extensive use of the get_lock() function to acquire a system-wide lock. Occasionally, all copies of a given application block attempting to acquire a lock on the same lock string. Using is_used_lock() reports

Re: MySQL Administrator on 10.3 Server -HELP

2005-10-05 Thread Adam Randall
Did you drag it from a network drive, or copy in some other way? If so, that may be the problem. I haven't used the MySQL Administrator, but am pretty well versed in application troubleshooting. Send me an email privately if you need some direct help. Adam. -- Adam Randall &l

backwards compatibility when exporting M

2005-12-12 Thread Adam Lipscombe
rt '' to 1, '\0' to 0. Does anyone know a way around this? TIA - Adam Lipscombe -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Mysqldump line endings

2005-12-13 Thread Adam Lipscombe
persuade mysqldump to produce one file (with "insert into" statements) and also use Windows style line endings? TIA - Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Mysqldump INSERT statements (Was Mysqldump line endings)

2005-12-14 Thread Adam Lipscombe
ne on a separate line? E.g. : INSERT INTO t1 VALUES (1,2,3), (1,4,5), (1,6,7); TIA - Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: setting the data directory.

2006-01-31 Thread Adam Alkins
Hi, There's a mysqld startup option --datadir=/path/to/data which you can use to alter your data directory. Simply adjust your startup scripts to suite. Regards, -Adam On 1/31/06, Scott Johnson <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to find out how to change

Problems with importing the british pound (£) an d euro (€) sign

2006-03-31 Thread Adam Lipscombe
vely. I have tried forcing the encoding by using "mysql --default-character-set=latin1 -u -p < datadump.sql" but this produces the same results. Any ideas? TIA - Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Solaris 10 bug with mysql_install_db

2008-12-03 Thread Adam Thompson
>Description: running mysql_install_db does not correctly fill grant tables >How-To-Repeat: run mysql_install_db; attempt to connect, fail. >Fix: Edit #!/bin/sh to use **ANY OTHER SOLARIS SHELL** >Submitter-Id: [EMAIL PROTECTED] >Originator:Adam Thompso

restoring mysql db doesn't restore user passwords

2009-06-15 Thread Adam Williams
rior to the reinstall: mysql -u adam -px ERROR 1045 (28000): Access denied for user 'adam'@'localhost' (using password: YES) but in the mysql.user table, adam exists and has his password set from the dump file: mysql> select User,Password

Re: restoring mysql db doesn't restore user passwords

2009-06-15 Thread Adam Williams
you're a genius! I had old_passwords=1 in my.cnf, changed it to 0, restarted mysql, and then the users worked like a charm. thanks! Little, Timothy wrote: My theory would be that it's an OLD-PASSWORDS issue. It would seem that you might have used the old_passwords=1 in your original configur

help with group by

2009-10-28 Thread Adam Williams
I've written a helpdesk ticket problem and am working on the statistics module. I'm having problems with group by. For instance, I want to get the count of the number of different problem types, by how many were solved by each person. This is my statement: mysql> select distinct accepted_by

Re: help with group by

2009-10-28 Thread Adam Williams
works perfectly, i didn't know you could use multiple columns in the group by. thanks a bunch! Michael Dykman wrote: try this: select accepted_by, problem_type, count(*) from form where problem_type is not NULL AND problem_type != 'Test' AND accepted_by is not null group by accepted_by, probl

Re: opening a server to generalized queries but not "too" far

2010-06-16 Thread Adam Alkins
only SELECT privileges to a specific table for a specific user. -- Adam Alkins || http://www.rasadam.com On 16 June 2010 14:17, Don Cohen wrote: > > This seems like a topic that must have been studied, but I'm having > trouble figuring out what to search for in Google, since the

Re: list rows with no recent updates

2010-06-16 Thread Adam Alkins
. -- Adam Alkins || http://www.rasadam.com On 14 June 2010 16:02, MadTh wrote: > Hi, > > > I ran a update command on around 2700 rows inside a mysql database table > which has around 3000 table rows to change the ( say) price of each item ( > with unique ID. unique product code). &

Re: opening a server to generalized queries but not "too" far

2010-06-16 Thread Adam Alkins
in the PHP script itself (which would be rather weak security imho). -- Adam Alkins || http://www.rasadam.com On 16 June 2010 14:48, Don Cohen wrote: > Adam Alkins writes: > > Sounds like you just want to GRANT access to specific tables (and with > > limited commands), which is ex

Split string by regex

2010-08-03 Thread Adam Gray
RA | 65 | +++ | RP |2 | +++ etc Could this be done in MySQL? I want to do something along the lines of set class2 = SUBSTRING_INDEX(class,'[A-Z]',-1) but I understand this is not possible. Any ideas? Regards Adam -- MySQL General Mailin

Share To My Love x--)

2010-10-20 Thread Adam Wilson
Dear: I would like to share with you my recently shopping experience: I found a very excellent e-site, the above is the latest and most popular products. By their staff, understanding that they have stable supply channel, so the price of products is shock your eyeballs burst. Certainly I will not m

Messed up mysql-server, cant reinstall?!

2011-02-11 Thread Adam smalin
I accidentally drop the database mysql. I now cannot restore tables to the database or do much of anything some details can be found here http://serverfault.com/questions/234321/i-accidently-dropped-the-mysql-db/234340#234340 after a few unsuccessful uninstalled/reinstalls i wrote whereis mysql an

Re: Seconds Behind the master 0 but in reality it's over 10 minutes or hours..

2011-09-04 Thread Adam PAPAI
73 Sep 4 18:38 master.info but the date is: [root@tungsten /var/db/mysql]# date Sun Sep 4 19:11:13 CEST 2011 And it's delayed 1 hour. No data is transferred to the slave. It says: Secords behind master 0. What the hell is going on here? -- Adam PAPAI Grapes Communication

Re: Seconds Behind the master 0 but in reality it's over 10 minutes or hours..

2011-09-04 Thread Adam PAPAI
eft the old ones there). Thanks again. -- Adam PAPAI Grapes Communication Kft. http://www.grapes.hu E-mail: papai.a...@grapes.hu Phone: +36 30 33-55-735 (Hungary) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Variables in stored procedure

2011-10-04 Thread Adam Gerson
n; while v_counter <= v_max do SET TABLENAME = CONCAT('wp_',v_counter, '_options'); INSERT INTO TABLENAME VALUES ('309', '0', 'statpress_mincap', 'edit_posts', 'yes'); set v_counter=v_counter+1; end while; commit

Re: Variables in stored procedure

2011-10-04 Thread Adam Gerson
aph', '31', 'yes'), ('310', '0', 'statpress_donotcollectspider', 'checked', 'yes'), ('311', '0', 'statpress_autodelete_spider', '1 day', 'yes'), ('312', '0'

mysqldiff resurrected and 0.43 released

2011-10-06 Thread Adam Spiers
ittle project. github forks are of course welcome too ;-) Cheers, Adam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

mysql/sql server migration

2011-12-06 Thread Adam Lanier
I'm involved with a project that is migrating data from sql server to mysql. The project will take up to a year to complete. During that period of time, we will need to synchronize data from sql server to mysql as we migrate windows based functionality to linux based servers. What is the rec

Re: Blob implementation question

2013-03-13 Thread Adam Ilardi
id=123; > This probably will (if foo is not indexed): > SELECT myblob FROM mytable ORDER BY foo; > > > -Original Message- > > From: Adam Ilardi [mailto:mastaskill...@gmail.com] > > Sent: Wednesday, March 13, 2013 9:16 AM > > To: mysql > > Subject: Blob

Re: Need help with a "natural sort order" for version numbers and release code names

2007-10-12 Thread Adam Randall
d locate( '.', name ) > 0, replace( replace( substr( name, locate( ' ', name ) + 1 ), '(', '' ), ')', '' ), if( locate( '.', name ) = 0, name,

Re: Need help with a "natural sort order" for version numbers and release code names

2007-10-12 Thread Adam Randall
2.7.0 | +---+-+ 20 rows in set (0.00 sec) Adam. On Oct 12, 2007, at 3:56 PM, Adam Randall wrote: Here's my full test solution: use test; drop table if exists releases; create temporary table releases ( releaseid int(10) unsigned not null auto_increment primary key, name varchar(25

how to "drop index if exists"

2007-11-29 Thread Adam Lipscombe
Folks How can one conditionally drop an index in MySQL? Googling shows that the "drop index" does not support an "if exists" qualifier - apparently a bug has been raised but as far as I know its not fixed yet. Does anyone know of a work-around? TIA - Adam -- MySQL

Re: how to "drop index if exists"

2007-12-05 Thread Adam Lipscombe
Fantastic, thanks very much! Adam Rob Wultsch wrote: On Nov 29, 2007 4:34 AM, Adam Lipscombe <[EMAIL PROTECTED]> wrote: Folks How can one conditionally drop an index in MySQL? Googling shows that the "drop index" does not support an "if exists" qualifier -

Re: how to "drop index if exists"

2007-12-05 Thread Adam Lipscombe
. ALTER IGNORE TABLE table_name DROP INDEX index_name; ALTER IGNORE TABLE table_name ADD INDEX UNIQUE index_name(column_1,column_2); Thanks - Ada Rob Wultsch wrote: On Nov 29, 2007 4:34 AM, Adam Lipscombe <[EMAIL PROTECTED]> wrote: Folks How can one conditionally drop an index in

% wildcard host permission not working

2008-04-24 Thread Adam Gerson
I set up a user and entered % for the host. I am not able to connect. However, if I change the host value to my FQDN it works fine. Shouldn't the wildcard allow me to connect from any host? Thanks, Adam -- Adam Gerson Assistant Director of Technology Apple Certified System Administ

Re: % wildcard host permission not working

2008-04-29 Thread Adam Gerson
Yes, I did "FLUSH PRIVILEGES" and I think I only have one username/host entry for this user. Adam Erik Giberti wrote: Did you "FLUSH PRIVILEGES"? I'd also check that the username and passwords are the same for each host entry, I've had problems if passwor

Retaining last primary key value

2006-12-08 Thread Adam Zerlin
Hello, When I run a DELETE FROM table_name, my primary key field is reset back to 1. Is there any way for it to not do this? Preferably, if there were 1000 records in table_name, and I ran DELETE FROM table_name, that the primary key field would start at 1001. This is an InnoDB table if

Re: Retaining last primary key value

2006-12-08 Thread Adam Zerlin
Thanks for the reply but that didn't do it. I believe I've got this to work by performing the following steps: DELETE FROM table_name (1000 rows) INSERT INTO table_name(column) VALUES(value) DELETE FROM table_name Now when I perform another INSERT, the primary key starts at 1001. A

  1   2   3   4   5   >