Re: libmysql.lib

2014-04-30 Thread Michael Anderson
http://dev.mysql.com/doc/mysql-sourcebuild-excerpt/5.0/en/windows-source-build-cmake.html step 4: From the work directory, execute the win\build-vs8.bat or win\build-vs71.bat file, depending on the version of Visual Studio you have installed. The script invokes CMake, which generates the mysql.

Re: REQUEST

2013-07-04 Thread Michael Anderson
Using deductive reasoning one would surmise that Effiong wants to install the MySql Database on a laptop, But then the question to Effiong is: What Operating System is running on your LapTop? NOTE: You'll need a MySql Server and a MySql Client, and maybe a Gui Interface/WorkBench? You can do

Re: Animation studio asset management

2012-12-23 Thread Michael Anderson
Database performance (like system performance) is always driven by a give and take process, a trade-off between resources (this includes design expertise) available, and the required results. How many records are you dealing with? How often are records are being added and/or updated? How many u

Re: real Time

2012-08-13 Thread Michael Anderson
Look at Nodejs, asynchronous server-side programming environment. That combined with some basic MySql triggers could do it for you. On 08/13/2012 04:07 PM, Rafael Valenzuela wrote: Hi all, i've a question about the mysql configuration, in my project, we need use data in real time (read and ins

Re: Distinct max() and separate unique value

2009-10-20 Thread Eric Anderson
On Tue, 20 Oct 2009, DaWiz wrote: I would try: select max(object_id), term_taxonomy_id group by term_taxonomy_id order by term_taxonomy_id; max(column) returns a single value so distinct is not needed. The group by and order by should only have columns thaqt are displayed and that are not agg

Distinct max() and separate unique value

2009-10-20 Thread Eric Anderson
I'm trying to formulate a query on a Wordpress database that will give me the highest 'object_id' with the highest 'term_taxonomy_id', something like: +-+--+ | max(distinct object_id) | term_taxonomy_id | +-+--+ |

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt'

2009-04-04 Thread Ray Anderson
I wanted to respond with what I found: APPARMOR blocks mysql from writing to any other directory than the data dir and /tmp. I had to edit the /etc/apparmor.d/usr.sbin.mysqld file and add the following: /backups/mysql** rwk, to the bottom. Hope this helps someone. Ray -- MySQL General

"Copying" tables between databases

2008-10-09 Thread Eric Anderson
night via cron and feeding it back into Bar via cron. Is there a way to set up real-time "replication" of that table? -- WANT TO MODEL FOR MAC & BUMBLE? APPLY AT http://casting.macandbumble.com ----- Eric And

FW: [PART 2/2] InnoDB - Different EXPLAINs for same query

2007-01-18 Thread John Anderson
query > > Just a thought, did you try running Optimize Table from the MySQL > Administrator. I'm thinking that when you restarted it re-examined the > table statistics and was able to pick a better index. > On Wed, January 17, 2007 14:31, John Anderson said:

[PART 2/2] InnoDB - Different EXPLAINs for same query

2007-01-17 Thread John Anderson
_file_size=128M innodb_additional_mem_pool_size=32M innodb_thread_concurrency=16 innodb_commit_concurrency=4 innodb_flush_method=O_DIRECT innodb_open_files=8192 innodb_sync_spin_loops=32 innodb_thread_sleep_delay=1000 innodb_autoextend_increment=1024M innodb_file_per_table=TRUE [client] socket=/tmp/mysql.sock John Anderson

[PART 1/2] InnoDB - Different EXPLAINs for same query

2007-01-17 Thread John Anderson
Greetings, It seems the lists.mysql.com imposes a 50KB limit on messages, so this message will be sent in two parts. Thanks for your patience. I'm in the process of converting most of my databases from MyISAM to InnoDB, and I've come across the most peculiar problem. It seems that after r

Unlimited client connections for MySQL

2006-12-13 Thread Brent Anderson
ome computers), I'm in a bit of a situation. How does one setup a MySQL account with no IP restrictions? Thanks, Brent Anderson -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Replication

2006-10-06 Thread Eric Anderson
PPLY AT http://casting.macandbumble.com - Eric Anderson Mac and Bumble Bumble Cash ICQ 3849549 http://www.macandbumble.com http://www.bumblecash.com San Diego, CA<

Replication

2006-10-05 Thread Eric Anderson
AT http://casting.macandbumble.com ----- Eric Anderson Mac and Bumble Bumble Cash ICQ 3849549 http://www.macandbumble.com http://www.bumblecash.com San Diego, CA<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Re: anyone using subversion to sync mysql dbs ?

2006-09-13 Thread Graham Anderson
yep, your're right thanks for clearing that up :) How do most mysql folks sync live and development databases ? As an alternative, I could use a PHP script on a late-night crontab. g On Sep 13, 2006, at 1:11 AM, Chris wrote: Graham Anderson wrote: Is anyone using subversion to

anyone using subversion to sync mysql dbs ?

2006-09-12 Thread Graham Anderson
Is anyone using subversion to sync live and development databases? If so, how? Is this desired or a best practice? Everything except my databases are under version control. In theory, I would like my databases to sync with the same subversion 'svn update' command. That way, all web content up

Re: solaris build mysql from source using gcc

2006-09-01 Thread Eric Anderson
Well if you'd share your specific problem I'm sure someone can help, but more importantly why are you building from source anyway? There are binary builds for most Solaris platforms, including 2.10. Sorry I meant 10 theremy solaris experience comes from the 'old days' before they went and

MERGE table problem

2006-08-24 Thread Eric Anderson
I've got a master (Master) with a MERGE table of foo_t (comprising of bar_a, bar_b, bar_c) in database 'Igloo'. There are 5 slaves that replicate the Igloo table, but ignore the Igloo.foo_t table. This setup was working fine. If the Master server crashed or had a prblem for some reason, I

Re: can't connect to server using mysqladmin or mysql

2006-08-01 Thread scott . anderson
I would like to withdraw my earlier bug report with the same subject line. I discovered that an erroneous IP address for the server machine had gotten into /etc/hosts (due to some IP changes in my organization). Once the DNS error was resolved, I was able to connect correctly and fix the password

can't connect to server using mysqladmin or mysql

2006-08-01 Thread scott . anderson
>Description: I'm sorry This is long, but it's because I've tried hard to fix this myself; please bear with me. Last week, for unknown reason, my root password for MySQL wasn't working. I may have changed it without updating the "/root/.my.cnf" file. So, I went to the online documentation (whic

Re: 3 Table Join question

2006-06-25 Thread Graham Anderson
Solved it with Union :) SELECT images.id,images.name, playlist.title FROM images,playlist WHERE playlist.image_id = images.id UNION SELECT images.id,images.name, media.title FROM images,media WHERE media.image_id = images.id ORDER BY id ASC On Jun 23, 2006, at 6:44 PM, Graham Anderson

3 Table Join question

2006-06-23 Thread Graham Anderson
I am trying to build a query to 1) Get all the results from one table, 'images' 2) For each entry in the 'images' table, find the correct title from the 'playlist' OR 'media' table where images.id = which_table.images_id images table id, filename playlist table title images_id media table t

Re: Noob: Converting to Inner Join

2006-05-24 Thread Graham Anderson
many thanks Chris :) g On May 24, 2006, at 1:19 AM, Chris Sansom wrote: At 23:17 -0700 23/5/06, Graham Anderson wrote: Are there any advantages to converting this 'working' query below to use INNER JOIN ? If so, what would the correct syntax be ? Many thanks SELECT cat

Noob: Converting to Inner Join

2006-05-23 Thread Graham Anderson
Are there any advantages to converting this 'working' query below to use INNER JOIN ? If so, what would the correct syntax be ? Many thanks SELECT category.name, page.name, content.title, content.body FROM category, page, content WHERE content.page_id = page.id AND page.category_id = category

Re: Case sensitivity problem (I think) on OS X

2006-03-16 Thread Sterling Anderson
utf8. Now I'm having this problem. I almost contacted you directly. Not sure if you recognize my name, I'm with WNPRC. -- Sterling Anderson email/aim: sterling_anderson [at] mac.com http://sterlinganderson.net/ 608.577.7208 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Case sensitivity problem (I think) on OS X

2006-03-16 Thread Sterling Anderson
stem is not case sensitive but that shouldn't be an issued with varchar fields should it? -- Sterling Anderson email/aim: sterling_anderson [at] mac.com http://sterlinganderson.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Slave to multiple masters?

2005-12-28 Thread Eric Anderson
ad on the slave. -- - Eric Anderson Mac and Bumble Bumble Cash ICQ 3849549 http://www.macandbumble.com http://www.bumblecash.com San Diego, CA<[EMAIL PROTECTED]>

Optimization suggestions when only using Innodb

2005-12-01 Thread Ross Anderson
es of connections also. Some are repeated queries to static tables and others are dynamic read write to large tables. Thanks in advance! Ross Anderson mysql 4.0.25 linux-2.6.14 key_buffer = 128M table_cache = 256 sort_buffer_size = 2M read_buffer_size = 2M myisam_sort_buffer_size = 16M thread_cach

Re: Making ORDER BY RAND() more random [resend]

2005-10-03 Thread Graham Anderson
Anderson wrote: is there a way to make ORDER BY RAND() a bit more spontaneous ? I am using it in a php statement: $sql = "SELECT media.id, artist.name as artist, artist.spanish as bio, artist.purchaseLink, artist.picture, media.spanish as trac

Making ORDER BY RAND() more random [resend]

2005-10-03 Thread Graham Anderson
is there a way to make ORDER BY RAND() at bit more spontaneous ? I am using it in a php statement: $sql = "SELECT media.id, artist.name as artist, artist.spanish as bio, artist.purchaseLink, artist.picture, media.sp

Making ORDER BY RAND() more random

2005-09-30 Thread Graham Anderson
is there a way to make ORDER BY RAND() at bit more spontaneous ? I am using it in a php statement: $sql = "SELECT media.id, artist.name as artist, artist.spanish as bio, artist.purchaseLink, artist.picture, media.spa

Comments on "hot" databases migration

2005-07-11 Thread Anderson, Ross
Thanks in advance, Ross Anderson __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __

Re: mysql random function strangeness

2005-05-10 Thread Graham Anderson
got it to work thanks On May 10, 2005, at 7:22 PM, Graham Anderson wrote: I have an ORDER statement like: ORDER BY playlist.order_id ASC,RAND(playlistItems.playlist_order) I am trying to get a random result very time the query is run ... Unfortunately, this statement gives the SAME random

mysql random function strangeness

2005-05-10 Thread Graham Anderson
I have an ORDER statement like: ORDER BY playlist.order_id ASC,RAND(playlistItems.playlist_order) I am trying to get a random result very time the query is run ... Unfortunately, this statement gives the SAME random result each time how can I get mysql to randomly jumble the playlist items for a r

Newbie:number of hits per day query

2005-05-06 Thread Graham Anderson
how do I get the average number of hits per day I have a table like: DateTimeid ip 20050506190723 1 121.198.262 what I have so far SELECT DateTime , count( * ) FROM userLog GROUP BY DateTime LIMIT 0 , 30 I assume that DateTime would have to be converted to a specific da

how to use row total in aggregate query ?

2005-04-27 Thread Graham Anderson
I have a query: I am trying to get a percentage of the total for each city SELECT userLog.city,userLog.region, COUNT(*), /* Count(userLog.id) is always 1 was hoping to get the total row returned */ COUNT(*)/COUNT(userLog.id), media.name,artist.name FROM userLog,media,artist WHERE userLog.medi

UTF-8 problems in text fields

2005-04-22 Thread Douglas Anderson
MySQL: 4.1.11 OS: Solaris I have a database that stores Japanese in utf-8. I have NO problems if the field is defined as VARCHAR, but if the field is defined as TEXT any data after an extended character (Japanese, special symbols etc.) gets truncated. Looking at the archives I ran the followin

Re: Newbie: Help with Match without using a subQuery

2005-04-14 Thread Graham Anderson
Shawn :) g On Apr 13, 2005, at 11:00 AM, [EMAIL PROTECTED] wrote: Graham Anderson <[EMAIL PROTECTED]> wrote on 04/13/2005 01:46:35 PM: Hi I am trying to set up my Match statements to filter the result of the main query [which works] If 'chris' does not exist in the first MATCH sta

Newbie: Help with Match without using a subQuery

2005-04-13 Thread Graham Anderson
Hi I am trying to set up my Match statements to filter the result of the main query [which works] If 'chris' does not exist in the first MATCH statement [AND MATCH (media.name, media.product)], then the results get a bit screwed up :( If the first match statement finds something, then the quer

Replacted MERGE table?

2005-04-05 Thread Eric Anderson
Here's a question for you guys: is it possible to have a replicated table of type MERGE? Scenario: Server: WWW1 Table: A.local_table (MASTER) replicates to: Server: MEMBERS Table: B.www1 (SLAVE) and Server: WWW2 Table: A.local_table (MASTER) replicates to: Server: MEMBERS Table: B.www2 (SLAVE) wh

Re: Newbie: MYSQL nested query question

2005-04-01 Thread Graham Anderson
how keys from tbl_properties.php: Missing parameter: table huh ? On Apr 1, 2005, at 2:21 PM, Graham Anderson wrote: In the simple query... the city field showed the result 'Los Angeles' in every row the distance field showed incorrect results to :( City|

Re: Newbie: MYSQL nested query question

2005-04-01 Thread Graham Anderson
PM, Peter Brawley wrote: What was wrong with Graham's simpler query? PB - Graham Anderson wrote: I upgraded my local mysql version to 4.1.10a and the below query finally works :) How can I now amend the query so it works on my remote server running mysql 3.23.58 ? From one headache to ano

Re: Newbie: MYSQL nested query question

2005-04-01 Thread Graham Anderson
N ON C.CityID = N.PrimaryCityID WHERE C.City = 'Los Angeles' AND N.Distance <20 many many thanks to all those that replied :) g On Mar 31, 2005, at 11:49 PM, Philip M. Gollucci wrote: Graham Anderson wrote: What is the proper way to say this ? SELECT C.City, N.Distance FROM

Newbie: MYSQL nested query question

2005-03-31 Thread Graham Anderson
What is the proper way to say this ? SELECT C.City, N.Distance FROM Cities C JOIN Nearbycities N ON C.CityId = N.PrimaryCityId WHERE N.CityId = (SELECT Cities.CityId FROM Cities WHERE Cities.city = 'Los Angeles') AND N.distance < 20 I am trying to enter in a city and get all the nearby cites with

Syntax problem: mysql 3.23 vs 4.13

2005-03-29 Thread Graham Anderson
this sql works on mysql version 3.23.58...my remote server SELECT c.City, r.Region, co.Country FROM subnets s, cities c, regions r, countries co WHERE c.CityId = s.CityId AND c.RegionID = r.RegionID AND c.CountryID = co.CountryId AND s.SubNetAddress = '24.24.172' LIMIT 0 , 30 but the same syntax fa

Newbie: Average Time on Server query

2005-03-29 Thread Graham Anderson
I am trying to determine the average time that a Distinct IP address is using the server If I have 15 thousand records of ip addresses and access times like: IP Now() media.id -- 10.1.7.205 20

Newbie: is this Query Reasonably Efficient ?

2005-03-23 Thread Graham Anderson
I have 3 different tables I need data from And, the tables have the potential to get fairly large I am using mysql 4.1.3 This working query below pulls up all media requests for 'Yolanda Perez' in Los Angeles Is there a appreciably speedier way to say the below ? I have begun dipping my toe

Newvbie:TO_DAYS Question

2005-03-23 Thread Graham Anderson
stupidly My DateTime field is in this format: March 23, 2005,  3:49 pm If I want to run this sql SELECT TO_DAYS(MAX(DateTime)) - TO_DAYS(MIN(DateTime)) AS record  FROM userLog I gather I need some extra function like.. SELECT TO_DAYS(MAX(Convert _Function(DateTime))) -  TO_DAYS(MIN(Conv

Newbie: Searching for empty fields

2005-03-23 Thread Graham Anderson
how do you search for an empty field ? I want to filter out records where the ipAddress field is empty SELECT * FROM 'userLog' WHERE 'ipAddress' IS [empty] ? many thanks g -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAI

Newbie: mysql syntax error question

2005-03-19 Thread Graham Anderson
My server has mysql: version 3.23.58 // Performing SQL query SELECT cities.city, regions.region, countries.country FROM cities JOIN subnets on subnets.cityid=subnets.cityid JOIN regions on subnets.regionid=regions.regionid JOIN countries on subnets.countryid=countries.countryid where subnets.

Newbie: making a proper subquery

2004-11-30 Thread Graham Anderson
I am trying to make a proper subqueryjust not sure bout the syntax I use this this basic query to connect all of my tables: # here is the basic query that connects all the tables..this works :) $sql = 'SELECT playlist.name as playlist_name, artist.name as artist,' . ' artist.'.$language.' as

Re: Newbie: How to deal with multiple languages

2004-11-29 Thread Graham Anderson
36 AM Subject: Re: Newbie: How to deal with multiple languages Hello. You can find an answer here: http://dev.mysql.com/doc/mysql/en/Charset.html MySQL supports column character sets on columns of some types (char,varchar,text). Probably if I were you I would use Unicode in my application. Graham A

Copy/Paste text from Ms Word into mysql

2004-11-26 Thread Graham Anderson
I am copy/pasting text from a microsoft word doc into phpmyadmin are there any special tricks to avoid strange characters...most of my text is in Spanish The only thing that seems to work is converting the text to ASCII which ditches all the Spanish formatting :( is there some process to make t

Re: change field names in a query

2004-11-26 Thread Graham Anderson
many thanks :) that was exactly what I needed g On Nov 26, 2004, at 4:27 PM, Rhino wrote: - Original Message - From: "Graham Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 26, 2004 6:28 PM Subject: change field names in a query what is t

change field names in a query

2004-11-26 Thread Graham Anderson
what is the proper mysql syntax to change field names after the query is done if I have a table with: id englishText spanishText picture And I query the table with: select id, spanishText from myTable limit 30 how do I change the 'spanishText' field name to say 'language' ? many thanks g -- MyS

Newbie: How to deal with multiple languages

2004-11-26 Thread Graham Anderson
I have a mysql db that contains tables with multiple language fields for example... Artist_id 'PK' Artist_name Artist_pictLink Artist_purchaseLink Artist_bio_Spanish Artist_bio_English Artist_bio_German I have other tables with a similar layout...Is this needlessly complicated ? track_id 'PK'

Trying to set up mySQL on Debian

2004-06-01 Thread Ryne Anderson
I belive ive gotten mySQL installed, but im getting a few errors that I cannot seem to figure out. When I try to test out the database by typing bin/mysqlshow or bin/mysqlshow mysql I get an error that looks like this: ryneanders01:/mysql# bin/mysqlshowbin/mysqlshow: Can't connect to local MyS

Slow Query Help

2004-03-21 Thread Anderson
FROM arp3_cam; " Why these query are much slow to me? SET last_insert_id=(number); SELECT LAST_INSERT_ID() AS id FROM arp3_cam; Its necessary to examine all rows to get last id? Its possible to change anything to speed up this query? Thanks, Anderson Oliveira. -- MySQL General Mailing Lis

Re: Error on Start Up: Threadstack not what mysqld wants

2004-03-04 Thread Daniel R. Anderson
Sasha Pachev wrote: Daniel R. Anderson wrote: Whenever I start up mysql through mysqld (in my rc.d file), I get the following error: Warning: asked for 196608 thread stack, but got 126976 (Note: numbers vary) Is this bad, and what (if anything) should I do about it? In theory, it could be

Error on Start Up: Threadstack not what mysqld wants

2004-03-03 Thread Daniel R. Anderson
Whenever I start up mysql through mysqld (in my rc.d file), I get the following error: Warning: asked for 196608 thread stack, but got 126976 (Note: numbers vary) Is this bad, and what (if anything) should I do about it? Thanks in advance, Dan -- MySQL General Mailing List For list archives: h

Re: replication: slave returns a 1236 error_code.

2004-02-07 Thread Mike Anderson
d slave respectively and on his setup everything seemed to work - in any case there was no error 1236. My MySQL is 4.0.15-9, his is 4.0.17. My Linux is SuSE 8.2, his is 7.3 Any further thoughts, we are snookered at the moment and haven't got much of a notion what to do next (other than

Re: What does this error mean: "Duplicate entry '273' for key 1"

2004-02-05 Thread Daniel R. Anderson
Paul DuBois wrote: At 15:50 + 2/5/04, Daniel R. Anderson wrote: I got the following error on a perl script: "Duplicate entry '273' for key 1" It means you tried to set the value of the column corresponding to key one to 273, and there was already a record that had t

What does this error mean: "Duplicate entry '273' for key 1"

2004-02-05 Thread Daniel R. Anderson
I got the following error on a perl script: "Duplicate entry '273' for key 1" I googled for it and found a thread telling me to DROP the table and re CREATE it. So I did, and my script is working fine. My question: why did this happen, why did dropping and recreating work, and what can I do

Replication

2004-02-04 Thread Mike Anderson
ed. Or should I exclude some or all of the contents of mysql from the replication and maintain that database manually ??? Thanks for any tips. Regards Mike Anderson / Germany -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

OT: list management

2004-01-30 Thread ed anderson
re: MYSQL and PHP I just noticed that my spam/virus filter is trapping and discarding "Cc:"'s. If an email address is not in the "To:" line, you could also be missing some list traffic. Just a comment! thanks dander -- MySQL General Mailing List For list archives: http://lists.mysql.com

Date query question

2004-01-10 Thread Eric Anderson
I don't have much experience working with dates in Mysql; I've always prefered to manage dates in code, so bear with me. I've got the following definition (yes, no indexes right now): CREATE TABLE se_t ( datestamp timestamp(14) NOT NULL, remote_addr char(16) NOT NULL default '', request_ur

Re: Questions about indexing

2003-12-15 Thread Dan Anderson
> With such a small database it really boils down to just being tidy; > you don't want indexes you're not going to use. Well the database is going to be like 200MB and executing several hundred queries a minute. Thus my concern about speed. Is a P4 w/ 1GB RAM going to choke and die, or will inde

Questions about indexing

2003-12-14 Thread Dan Anderson
I have a database I'm using for a MMORPG (well, it isn't very MM because I'm something of a noob), and I have a few questions about indexing. I am storing world data in a database. In order to keep everything as swift as possible, I have indexed everything. And I really mean, e

perl DBI vs. prepare and execute do

2003-12-06 Thread Dan Anderson
I am using the Perl DBI to connect to a mySQL database. I am using prepare and execute statements to send the query to the database and then execute it. Is there any benefit to doing this versus using do? Thanks, Dan -- MySQL General Mailing List For list archives: http://lists.mysq

[syntax error in configure and configure.in]

2003-11-13 Thread Ric Anderson - SIRT
libedit=undefined ] ) ! compile_readline=no ! compile_libedit=no if [test "$with_libedit" = "yes"] && [test "$with_readline" = "yes"] then >Submitter-Id: >Originator:Ric Anderson - SIRT >Organization: Ric Anderson, U of Ariz

RE: Very strange problem

2003-11-07 Thread Eric Anderson
> Is anything being logged in the error log? Nope. My 'wait_timeout' was set to 120 seconds, I reduced that down to 60 seconds but I don't think that will help because once it gets "stuck" in this blocked thread thing, it never recovers.. any subsequent connections never actually process, until t

Very strange problem

2003-11-07 Thread Eric Anderson
A little explaination: We've got two servers, e450 (3.23.47) and 1U (4.0.14). These two machines have a private connection between them (192.168.0.1 and 192.168.0.2). The e450 is the master server, and the 1U has a copy (no replication) of some basic data, so it can run server-intensive pages.

RE: This is confusing..?

2003-11-06 Thread Eric Anderson
> Can you send show keys from campaign_t. > I bet you can solve your problem by running analyze table. mysql> show index from campaign_t\g +++---+--+-+---+-+--++-+ | Table | Non_unique | Key_na

Re: This is confusing..?

2003-11-06 Thread Eric Anderson
> Possibly because datestamp and 20041105 have different datatypes. > There's an implicit data conversion required for the comparison, which > in some cases prevents use of an index. Try writing '20041105' rather > than 20041105 and see if that makes a difference. Nope.. :-/ mysql> explain SELECT

RE: This is confusing..?

2003-11-06 Thread Eric Anderson
> Can you send show keys from campaign_t. > I bet you can solve your problem by running analyze table. What's the syntax for 'show keys'? -- -- Eric Anderson - ICQ: 3849549 - San Diego, CA [EMAIL

This is confusing..?

2003-11-06 Thread Eric Anderson
Given the following table: CREATE TABLE campaign_t ( acct_id int(11) unsigned NOT NULL default '0', site_id tinyint(3) unsigned NOT NULL default '0', ref_id int(11) unsigned NOT NULL default '0', datestamp char(10) NOT NULL default '', raws int(11) unsigned NOT NULL default '0', uniqu

problem with 'mysql' command on Mac OS X 1.3 (Panther)

2003-10-31 Thread Anderson, James H [IT]
Ever since upgrading I haven't been able to use the 'mysql' command--it just hangs. Otherwise, the database seems to be working properly. I even tried rebuilding from source but it didn't solve the problem. I've attached ktrace/kdump output of the problem. I'm hoping someone can interpret this stuf

how to debug mysql command hang?

2003-10-29 Thread Anderson, James H [IT]
The database is working fine, by the mysql command hangs indefinitely. Any thoughts how I can determine the cause? Thanks. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

FW: problem with MySQL and latest release of Mac OX X (Panther)

2003-10-29 Thread Anderson, James H [IT]
I should add that I can access the database via a java program, just not using the mysql command. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: problem with MySQL and latest release of Mac OX X (Panther)

2003-10-29 Thread Anderson, James H [IT]
'mysql -A sampdb' hangs as does every other mysql command. There are no recent entries in hostname.err. -Original Message- From: Dathan Vance Pattishall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:52 PM To: Anderson, James H [IT]; [EMAIL PROTECTED] Subject: R

RE: problem with MySQL and latest release of Mac OX X (Panther)

2003-10-28 Thread Anderson, James H [IT]
. -Original Message- From: Dathan Vance Pattishall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 4:42 PM To: Anderson, James H [IT]; [EMAIL PROTECTED] Subject: RE: problem with MySQL and latest release of Mac OX X (Panther) Can you post you're my.cnf options / your query in que

problem with MySQL and latest release of Mac OX X (Panther)

2003-10-28 Thread Anderson, James H [IT]
Much to my surprise and chagrin, I'm having a problem using MySQL after upgrading to the latest release of Mac OS X this past weekend. As far as I can tell, the server seems to be running, but when I attempt to execute the mysql command it just hangs. Any ideas? Thanks, jim -- MySQL General

Getting the value of a row you just inserted

2003-10-09 Thread Dan Anderson
Is it possible to SELECT the id (indexed PRIMARY KEY AUTO_INCREMENT) of a row that was just inserted? I'm using PHP, I don't know if that makes a difference? Something like: INSERT INTO foo (bar) VALUES ("bar"); SELECT last_insert(id) FROM foo; Also, are there any problems with using this in an

Which is the best MySQL book?

2003-10-09 Thread Anderson, James H [IT]
Is there one that's especially outstanding? Thanks, jim -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Installation problem

2003-10-09 Thread Anderson, James H [IT]
Adam, It works! I also had to run the initialization script... Thanks very much for the help. jim -Original Message- From: Fortuno, Adam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:49 PM To: Anderson, James H [IT] Cc: [EMAIL PROTECTED] (E-mail) Subject: RE

RE: Installation problem

2003-10-09 Thread Anderson, James H [IT]
l make the ownership/group changes you suggest below and let you know the results. Thanks! jim -Original Message- From: Fortuno, Adam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:49 PM To: Anderson, James H [IT] Cc: [EMAIL PROTECTED] (E-mail) Subject: RE: Installati

RE: Installation problem

2003-10-09 Thread Anderson, James H [IT]
tober 09, 2003 11:53 AM To: Anderson, James H [IT] Cc: [EMAIL PROTECTED] Subject: RE: Installation problem James, Yea, I have to agree its not starting. Alright, you're probably already in the /usr/local/mysql or you would've seen a nasty message reminding you to execute the mysqld_safe

RE: Installation problem

2003-10-09 Thread Anderson, James H [IT]
ended -Original Message- From: Fortuno, Adam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:54 AM To: Anderson, James H [IT] Cc: [EMAIL PROTECTED] (E-mail) Subject: RE: Installation problem James, Hey James! I'm also running MySQL on OS X. Maybe I can lend a hand. Fir

Installation problem

2003-10-09 Thread Anderson, James H [IT]
I'm running OS X 10.2.8 and installed the latest OS X mysql package. The problem is the server won't start and there don't seem to be any logs available to help diagnose the problem. I've tried both sudo safe_mysqld Starting mysqld daemon with databases from /usr/local/my

Enabling Transactions

2003-09-29 Thread Dan Anderson
I am having a problem in one of my scripts and I need to use transactions to fix it. When I looked it up on the mySQL documentation I found: "If you are using transaction-safe tables (like InnoDB or BDB), you can put MySQL into non-autocommit mode with the following command:" Does this mean that

Re: Installation of MySQL

2003-09-21 Thread Dan Anderson
Well you could: (assuming an installation in /usr/local/mysql) # /usr/local/mysql/bin/mysqld --user=mysql > /usr/local/mysql/daemonlog &> /usr/local/mysql/daemonerrorlog & But you should probably consult the manual under the installation for an explanation of exactly what the above does. -Dan

Re: hostname

2003-09-21 Thread Dan Anderson
> is there a way to find out which host I am connected > from? Does the solution have to be a function called within mySQL or would you accept a function called by PHP or Perl? -Dan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.

Re: new MySQL Server

2003-09-20 Thread Dan Anderson
I believe I saw something in the mySQL manual about going with a 64 bit system if it was an option because mySQL uses lots of 64 bit data types. So you will see a significant increase in speed with 64 bits versus 32. :: drools at though of Apple w/ 8GB RAM :: :-D -Dan On Sat, 2003-09-20 at 08:1

How Fast is COUNT()

2003-09-19 Thread Dan Anderson
I am creating a script which will grab a random row from a mySQL table. Right now the way it is set up each time it calls COUNT(). I was thinking of creating a script and running it as a cron job to update count once every 10 minutes and store the number as an indexed array in the table. It seem

Is there a way to find out if a table exists?

2003-09-19 Thread Dan Anderson
I am trying to make my PHP script autodetect when a table in a mySQL database exists, and when it doesn't, create it. Is there some way to do something like: SELECT * FROM tables WHERE name = "table_name"; And get a result I could test for truth, and thus run my script? Thanks in advance, Da

Re: MySQL 3.23.58 has been released

2003-09-15 Thread Dan Anderson
> There are 3.23, 4.0, 4.1, and 5.0 development trees, each at different > stages of their lifetime. Is there any reason not to use 4.0.15 and instead use 3.23 in a production environment? I know MAX is unstable but I have 4.0.15 installed. -Dan -- MySQL General Mailing List For list archives

Re: MySQL 3.23.58 has been released

2003-09-15 Thread Dan Anderson
Wasn't there just an announcement that 4.0.something was released? -Dan On Mon, 2003-09-15 at 12:52, Lenz Grimmer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > MySQL 3.23.58, a new version of the popular Open Source/Free Software > Database, has been released. It is now a

IF, THEN ELSE statement

2003-09-10 Thread Rob Anderson
I am trying to update/insert a record into the table depending on whether it exists in the table or not. Something along the lines of... IF (SELECT id FROM myable WHERE id="myid") INSERT INTO mytable(id,name) VALUES ("myid", "myname") ELSE UPDATE mytable SET name="mynewname" WHERE

Is it possible to pipe wildcard searches into mySQL?

2003-09-03 Thread Dan Anderson
name would be returned and not just products named only "foo"? Thanks in Advance, Dan Anderson -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How can I display images from a mySQL Database in a web page?

2003-07-15 Thread Dan Anderson
> I think there is a way to insert binary image data in your html, but is > there any particular reason you need to do that? Yes, my client's server is running with particularly restrictive PHP safe mode settings and has informed me that dynamic images are a /must have/. :: bangs head against wal

  1   2   >