<?xml version="1.0" encoding="UTF-8" standalone="yes"?><rss version="2.0"><channel><title>Java, PHP, MySQL, Ruby, and more at Sagewire.org</title><link>http://www.sagewire.org/</link><description>Blogs and forums for Java, PHP, MySQL, and more.</description><language>en</language><item><title>That works faster in sql for creation of an index?</title><link>http://www.sagewire.org/mysql-database/That-works-faster-in-sql-for-creation-of-an-1903063.aspx</link><description>Hello all

That works faster in Mysql for creation of an index:
CREATE INDEX
or
ALTER TABLE  tab ADD INDEXThanks.</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/That-works-faster-in-sql-for-creation-of-an-1903063.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 24 Aug 2007 13:35:56 GMT</pubDate></item><item><title>Help with counting total items using hierarchical data structure</title><link>http://www.sagewire.org/mysql-database/Help-with-counting-total-items-using-hierarchical-1872996.aspx</link><description>I'm having trouble coming up with a query to count the number of total
items each subcategory with the lowest cost (CPU item). 

I'd like to be able to display the total in my pages like so using
PHP.

Automotive (4 items)
- Cars (2 items)
- Trucks (2 items)
- Vans (0 items)
Electronics (6 items)
- Digital Cameras (0 items)
- Portable Audio (3 items)
- Home Theatre &amp;amp; Projectors (0 items)
- TV, DVD &amp;amp; VCR Players (3 items)
- Sound Systems &amp;amp; Components (0 items)At the moment I am usi...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Help-with-counting-total-items-using-hierarchical-1872996.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 01 Aug 2007 10:16:49 GMT</pubDate></item><item><title>2014 Commands out of sync; you can not run this command now</title><link>http://www.sagewire.org/mysql-database/2014-Commands-out-of-sync-you-can-not-run-1865065.aspx</link><description>Hello All,

I was searching for a response about this topic but none get the right
answare, I hope I get help from you on this. :)

I trying to do an insert using a stored procedure to rely the charge
on the db but every type I run the call from my web page ussing PHP
5.X I get the same error.

This is what I'm doing:
______________________________________________________________________________________________
$link = mysql_connect( DB_HOST, DB_USER, DB_PASSWORD, true, 131074);
mysq...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/2014-Commands-out-of-sync-you-can-not-run-1865065.aspx</guid><author>rss@sagewire.org</author><pubDate>Tue, 31 Jul 2007 03:21:11 GMT</pubDate></item><item><title>Database as Symbolic Link - What am I missing?</title><link>http://www.sagewire.org/mysql-database/Database-as-Symbolic-Link-What-am-missing-1863777.aspx</link><description>Hi,

I have done this before so I do not see what I could doing wrong here.
I'm running mysql 5x on freebsd. I'm using the default data directory
of &amp;quot;/var/db/mysql&amp;quot;

In there I have several dozen mysql datasbases that are functioning
perfectly. I am trying to add a database which will be stored on a
different drive, therefore the entry in &amp;quot;/var/db/mysql&amp;quot; should be a
symbolic link

With mysql running I go...

mkdir /sata2/database/d1
chmod 700 /sata2/database/d1
chown mysql:mysql /...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Database-as-Symbolic-Link-What-am-missing-1863777.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 25 Jul 2007 13:21:38 GMT</pubDate></item><item><title>mysql to store file</title><link>http://www.sagewire.org/mysql-database/mysql-to-store-file-1852978.aspx</link><description>Hi
   If I use mysql to store the file. How can I  make a link for the
user to download that file?
thanks
from Peter (cmk128@xxxxxxxxxxx)</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysql-to-store-file-1852978.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 23 Jul 2007 15:50:40 GMT</pubDate></item><item><title>select from table</title><link>http://www.sagewire.org/mysql-database/select-from-table-1850925.aspx</link><description>Hi,

Can anyone show me how to do the following:

From a table I'd like to retrieve the following:

company and websites.

When I do a select on on this table i will get

company 1 - website 1
company 1 - website 2
company 1 - webiste 3

company 2 - website 1
company 2 - website 2

etc.
But what I'd like is:

company 1 	website 1
		website 2
		website 3

company 2	website 1
		website 2

etc.

Now I use the following select statement:
$query=&amp;quot;select company, domainna...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/select-from-table-1850925.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 23 Jul 2007 12:48:40 GMT</pubDate></item><item><title>How'd you like 2 Million Sites linking to your ad ?</title><link>http://www.sagewire.org/mysql-database/Howd-you-like-Million-Sites-linking-to-your-ad-1850374.aspx</link><description>Discover the power of the Blog Blaster!
Brandnew software revolutionizes the power of online advertising
-never seen before!- BRAND NEW FOR 2007!

How'd you like 2 Million Sites linking to your ad ?

Weblog or blog population is exploding around the world, 
resembling the growth of e-mail users in the 1990s.

Post your ads where people read them!

- What if you could place your ad on all these sites ?
Right, that'd mean you would've millions of sites 
linking to your ad - and my ide...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Howd-you-like-Million-Sites-linking-to-your-ad-1850374.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 12 Jul 2007 22:00:02 GMT</pubDate></item><item><title>slow database retrieval</title><link>http://www.sagewire.org/mysql-database/slow-database-retrieval-1820576.aspx</link><description>i am wondering why my database retrieval becomes too slow...we set up
a new server (ubuntu, breezy badger) machine where we transferred all
our files from the old server.. Our new server uses Asus p5pe-vm
motherboard and an Intel Pentium D 3.0Ghz processor, compared to the
old one where we uses asrock motherboard and AMD Duron. Both has the
same version of mysql installed...

To summarized, both machine has the same configuration except for some
hardware changes and the version of the Ub...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/slow-database-retrieval-1820576.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 12 Jul 2007 05:07:34 GMT</pubDate></item><item><title>Compare record in two tables, return fields that do not match...</title><link>http://www.sagewire.org/mysql-database/Compare-record-in-two-tables-return-fields-that-do-1847459.aspx</link><description>Does anyone know if there is an easy way to compare a row from table
a, to a row in table b with the same structure/field names and return
those fields which do not match?

I have table_a storing the originally submitted applicant information,
and table_b storing a version that can be changed. When a user makes a
change I'd like to compare it to the original table to see what fields
were changed, preferably without opening the row from both tables and
going field by field in code to see ...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Compare-record-in-two-tables-return-fields-that-do-1847459.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 09 Jul 2007 16:11:54 GMT</pubDate></item><item><title>Simple MySQL Index</title><link>http://www.sagewire.org/mysql-database/Simple-MySQL-Index-1836537.aspx</link><description>I have a single table which I'd like to search on a unique column
varchar(15) that may have some nulls. Employee social club member no,
some employees have a number and others do not. Those that do have a number
will all have a unique number.

I had added an index using:
ALTER TABLE employees ADD INDEX(emp_socialclubno);

However when I run:
mysql&amp;gt; explain select employeeid from employees where
emp_socialclubno=103833988;
+----+-------------+------------+------+---------------+------+...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Simple-MySQL-Index-1836537.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 05 Jul 2007 13:50:34 GMT</pubDate></item><item><title>Employee Search</title><link>http://www.sagewire.org/mysql-database/Employee-Search-1816636.aspx</link><description>Splitz General Marketing - Employee Search Seeking employed/unemployed persons for a part-time positon. Must be hard working and willing to learn. Good paychecks, allowances and higher job opputunites are applicable to this position. If you are interested in this job offer please contact us for more information. Subject to our satisfaction with your resume you will be filed in. Principals only. Recruiters, please do not contact this job poster. Greg Maglione 
Recruiting Officer/Advertiser 
Spl...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Employee-Search-1816636.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 30 Jun 2007 02:03:34 GMT</pubDate></item><item><title>mysqldump select query</title><link>http://www.sagewire.org/mysql-database/mysqldump-select-query-1834856.aspx</link><description>I am trying to do a dump for a 2 gig table...

I'd like to dump the tables in portions so that it's a little
easier to work with...

Can somebody suggest a way to do a mysqldump table query

ie.. mysqldump -u user -p database=&amp;quot;MYDATABASE&amp;quot; Query=&amp;quot;SELECT * FROM
TABLE WHERE State='NV';&amp;quot;

I'm pretty sure this is possible... I have no idea how to do it.

Thanks in advance.</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysqldump-select-query-1834856.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 29 Jun 2007 03:32:44 GMT</pubDate></item><item><title>SQLMAIL for MYSQL ?</title><link>http://www.sagewire.org/mysql-database/SQLMAIL-for-MYSQL-1831468.aspx</link><description>Hi,

I have a large db app for handling orders etc.
I'd like to offer our customers the ability to track their orders
via email.

i.e. they submit an email to track@xxxxxxxxxxx
Subject line = TRACK
BODY = ORDER NUMBER (1 per line)

As the system receives the email, it processes some SQL and returns an
email with their order information.

How can this be achieved ? I am using ASP &amp;amp; MYSQL

Thanks

David</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/SQLMAIL-for-MYSQL-1831468.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 25 Jun 2007 19:14:16 GMT</pubDate></item><item><title>inserting unique value</title><link>http://www.sagewire.org/mysql-database/inserting-unique-value-1826796.aspx</link><description>I need to insert a unique value into a (not auto-increment) column.
I try

insert into idtest (val) values ((select max(val) from idtest)+1);

but I get

ERROR 1093 (HY000): You can not specify target table 'idtest' for update 
in FROM clause

- what is the correct way to do this?

Regards,
Rune</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/inserting-unique-value-1826796.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 22 Jun 2007 16:24:30 GMT</pubDate></item><item><title>creating table for rails</title><link>http://www.sagewire.org/mysql-database/creating-table-for-rails-1825657.aspx</link><description>I'm working from [code]&amp;lt;http://www.oracle.com/technology/pub/articles/haefel-
oracle-ruby.html&amp;gt;[/code],'d like to adapt the SQL for MySQL, please.  Yes, I 
know, that's oracle wheras I'm using MySQL.  This website happens to be 
the best rails tutorial I can find for my purposes, and I'd like to 
follow along with it.

Here's what's happening:
[thufir@xxxxxxxxxxx ~]$ 
[thufir@xxxxxxxxxxx ~]$ mysql -u feeds -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Y...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/creating-table-for-rails-1825657.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 21 Jun 2007 04:30:25 GMT</pubDate></item><item><title>STOPPING SERVER from pid file</title><link>http://www.sagewire.org/mysql-database/STOPPING-SERVER-from-pid-file-1813402.aspx</link><description>dear everyone,
we installed a mysql vr standard-4.11.22a-pc on a machine with ubuntu
breezy badger as os..after the installation we are trying to start the
server by typing :bin/safe_mysqld...but it shows us a msg whch states
Starting mysqld daemon with databases from /usr/local/mysql-
standard-4.11.22a-pc-linux-gnu-i686-glibc23/data

followed by...

'STOPPING SERVER from pid file /usr/local/mysql-standard-4.11.22a-pc-
linux-gnu-i686-glibc23/data/linuxserver.pid
mysql ended'
 I have...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/STOPPING-SERVER-from-pid-file-1813402.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 14 Jun 2007 03:22:26 GMT</pubDate></item><item><title>UNION, LIMIT and ORDER BY</title><link>http://www.sagewire.org/mysql-database/UNION-LIMIT-and-ORDER-BY-1599274.aspx</link><description>I have trying to write a query that seems like it should be simple but
for some reason my attempts aren't working.  This is really a general
SQL quesion and does not pertain to MySQL but I could not find a generic
database discussion group except on on advancement and theory and this
is really a basic query construction question.

Just say I have a table with three columns, name, date, score and
these represent the test scores for various people.  Each person can
take the test as many ti...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/UNION-LIMIT-and-ORDER-BY-1599274.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 01 Jun 2007 14:47:06 GMT</pubDate></item><item><title>mySQL backup with SQLyog</title><link>http://www.sagewire.org/mysql-database/mySQL-backup-with-SQLyog-1599260.aspx</link><description>Hey all,

This is my first post to a newsgroup so forgive
me if it's in the wrong place...

I have setup a local backup server for my company's
website, and can sync the two DB's no problem (the local
and the &amp;quot;interweb&amp;quot; one) with SQLyog.  But I'm not sure
if the following is possible and (if so) how to do it:

I sync the local DB with the live DB every morning at
5:00 a.m.  Let's say the live site then goes down at
4:00 p.m., so there have been a lot of changes made to the DB
since ...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mySQL-backup-with-SQLyog-1599260.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 21 May 2007 13:39:08 GMT</pubDate></item><item><title>finding duplicate fields</title><link>http://www.sagewire.org/mysql-database/finding-duplicate-fields-159322.aspx</link><description>This may be a particularly dumb question, but I'm wrestling with it anyways.
Is there a way, to discern a duplicate field among records in a table. For
example, suppose I've a table such that:

CREATE TABLE `sometable` (
  `id` int(11) NOT NULL auto_increment,
  `sometext` varchar(80) NOT NULL default '',
  PRIMARY KEY  (`id`)
)

I want to find all records where  `sometext` =  `sometext` in another
record. That is, I want to find those records where there is more than one
instance of...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/finding-duplicate-fields-159322.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 19 May 2007 16:08:22 GMT</pubDate></item><item><title>mysql intersect help</title><link>http://www.sagewire.org/mysql-database/mysql-intersect-help-1216599.aspx</link><description>Hi,
I am facing  problem while excuting a mysql query. My problem is as
follows-
I have two tables object_1 and object_2.
The structure of object_1 is

object_id    name   address
------------    ----------  ------------
    1            abc      xyz
    2            pqr       xyz
    3            lmn      zzz

The structure of object_2 is

 object_id    tag_id
--------------    ----------
    1               2
    1               3
    2               2

object_id is the for...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysql-intersect-help-1216599.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 14 May 2007 17:03:59 GMT</pubDate></item><item><title>Select/Count not showing me my records...permissions?</title><link>http://www.sagewire.org/mysql-database/SelectCount-not-showing-me-my-recordspermissions-1217246.aspx</link><description>I imported 600,000 records from SQL Server 2005 to mySQL.

I know they are in there -- I just can not see them!

When I do a SELECT, it processes for a while, and then returns nothing.

Same with a count, it sits there processing, and then returns a '0'

However when I do the same on a table I know has no rows, it definitely 
comes back right away.

I'm logged in as root.   Do I need to assign myself some permissions to 
see these records?  And the count numbers?</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/SelectCount-not-showing-me-my-recordspermissions-1217246.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 13 May 2007 16:44:07 GMT</pubDate></item><item><title>mysqldump produces an empty file</title><link>http://www.sagewire.org/mysql-database/mysqldump-produces-an-empty-file-1215772.aspx</link><description>hi everyone! I am having a problem with mysqldump.i am running this script from the
shell

root@xxxxxxxxxxx:/usr/local/mysql#bin/mysqldump u im_backup --opt
inventory &amp;gt; /home/all/sqlbu/inv_'date +%F.sql

(user=imbackup
dbase name = inventory)

i do not know what am I missing or what's the problem with this line
since it generates only an empty file... I created the user im_backup granting all privileges. There was no
error messages too.. what's the problem w/ this? I really'd
appre...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysqldump-produces-an-empty-file-1215772.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 12 May 2007 01:23:25 GMT</pubDate></item><item><title>Connection life</title><link>http://www.sagewire.org/mysql-database/Connection-life-1216897.aspx</link><description>If I establish a connection, how long will that connection live without 
being used? Is there a parameter somewhere in MySQL that determines this? 
Thanks.</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Connection-life-1216897.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 11 May 2007 18:58:00 GMT</pubDate></item><item><title>JOINS and/or INTERSECTS</title><link>http://www.sagewire.org/mysql-database/JOINS-andor-INTERSECTS-1194207.aspx</link><description>I'm trying to create a query to find missing values in a table.
Example table:
[code]&amp;lt;PRE&amp;gt;[/code]
COL1   COL2
----    ----
A      1
A      2
A      3
A      4
B      1
B      3
C      2
C      4I want my output to be:

COL1   COL2
----    ----
B      2
B      4
C      1
C      3
[code]&amp;lt;/PRE&amp;gt;[/code]
I thought I could do this with some outer joins but I can not seem to
get even close. Any suggestions? Thanks!</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/JOINS-andor-INTERSECTS-1194207.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 07 May 2007 15:53:34 GMT</pubDate></item><item><title>Regenerate a Nested Set using parent_id structure</title><link>http://www.sagewire.org/mysql-database/Regenerate-Nested-Set-using-parentid-structure-1043661.aspx</link><description>Hello,

I have got a Nested Set structure in MySQL 4 here with
- id
- lft
- rgt
- parent_id
- root_id

wrote in message some test scripts and I discovered that the Nested Set (the
structure with lft and rgt nodes) is broken, there are some duplicate
nodes and other really bad stuff.

Luckily, the dude who developed the system has a parent_id-Structure
in the database too, and I'm pretty sure that the parent_id-
relationships are correct.

So, now my question: I'd need a Query or...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Regenerate-Nested-Set-using-parentid-structure-1043661.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 30 Apr 2007 11:32:34 GMT</pubDate></item><item><title>Grant lock tables on single table gives ERROR 1144</title><link>http://www.sagewire.org/mysql-database/Grant-lock-tables-on-single-table-gives-ERROR-1144-1046439.aspx</link><description>Hi,

Tested on MySQL 4.1.20 and 5.0.33 with similar results.  I do not
understand why I cannot grant LOCK TABLES on a single table, while
granting LOCK TABLES on all tables work fine.

mysql&amp;gt; SELECT VERSION()\G
*************************** 1. row ***************************
VERSION(): 4.1.20
1 row in set (0.00 sec)

mysql&amp;gt; SELECT CURRENT_USER()\G
*************************** 1. row ***************************
CURRENT_USER(): root@xxxxxxxxxxx
1 row in set (0.02 sec)

mysql&amp;gt; CREATE D...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Grant-lock-tables-on-single-table-gives-ERROR-1144-1046439.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 27 Apr 2007 06:27:46 GMT</pubDate></item><item><title>DELETE with related table</title><link>http://www.sagewire.org/mysql-database/DELETE-with-related-table-944274.aspx</link><description>I have a table (tableA), with a data field (saved as a VARCHAR in 
YYYY-MM-DD). I have a second table, tableB, which has a field with an int 
field which refers to the ID of tableA (or is null).  I call this field 
tableB.idA

I am trying to delete rows in tableA where the date is less than a specified 
value AND there is no reference to said row in tableB.

But how to specify this in SQL. I tried :

DELETE FROM tableA WHERE tableA.date &amp;lt;'2007-01-01' and tableB.idA!= 
tableA.id;

on...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/DELETE-with-related-table-944274.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 25 Apr 2007 10:57:22 GMT</pubDate></item><item><title>database recovery and import</title><link>http://www.sagewire.org/mysql-database/database-recovery-and-import-934046.aspx</link><description>Hello,
    I have been given the job of recovering a database. It's mysql, version 
unknown but i'd suspect probably 3 maybe 4 certainly not 5. Apparently the 
host provider where this was did not set up the backups right, because the 
guy gave me the db files not database dumps and I am uncertain what to do 
with them. I'd like to bring them in to a mysql installation and take a look 
at the data contained. If it's valid i.e. what has been requested i'd like 
to do a mysqldump on it, the...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/database-recovery-and-import-934046.aspx</guid><author>rss@sagewire.org</author><pubDate>Tue, 24 Apr 2007 00:18:00 GMT</pubDate></item><item><title>percentage in sql query</title><link>http://www.sagewire.org/mysql-database/percentage-in-sql-query-697172.aspx</link><description>I have a table of score which are 1's and 0's.

How'd I go about writing a query to get the percentage of 1's against 
the toal number of records?

Many thanks</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/percentage-in-sql-query-697172.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 20 Apr 2007 16:01:36 GMT</pubDate></item><item><title>Alter combination of 2 existing columns as a unique key</title><link>http://www.sagewire.org/mysql-database/Alter-combination-of-existing-columns-as-unique-ke-696703.aspx</link><description>To alter 1 column to a unique key,

ALTER TABLE user MODIFY COLUMN id INT NOT NULL UNIQUE;

But how to set combination of 2 columns as a unique key?
Individual keys aren't unique, but combination is.

TIA,
James</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Alter-combination-of-existing-columns-as-unique-ke-696703.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 19 Apr 2007 23:48:31 GMT</pubDate></item><item><title>CONTRACT EMPLYER SEEKS EXPERIENCED PHP/MY SQL/DATABASE/ INTERGRATION/(HAVING WEB SERVER EXPERIENCE WINDOWS 2003 HELPFUL</title><link>http://www.sagewire.org/mysql-database/CONTRACT-EMPLYER-SEEKS-EXPERIENCED-PHPMY-SQLDATABA-694337.aspx</link><description>HELLO

PLEASE-DOPER'S., LAMERS, LAZY FOLKS AND BS ARTISTS NEED NOT RESPOND
I SEEK HELP WITH THE BACK DOOR STUFF- THETH MY SQL INTEGRATION AND THE
SETTING UP OF DATABASES/ INTEGRATION OF PHP SCRIPTS WITH MY SQL

wrote in message MY WEBSITE WITH MACROMEDIA USING STRICT XHTML,CSS

I HAVE A TON OF SCRIPTS AND I SEEK THE BEST FOR PLUG AND PLAY WITHIN MY SITE

I'd CONSIDER RUNNING MY OWN SERVER TO GET AWAY FROM HAVING TO USE THAT
CONTROL PANEL IN' GO DADDY'
I HAVE A ROUTER AND I HAVE A SUI...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/CONTRACT-EMPLYER-SEEKS-EXPERIENCED-PHPMY-SQLDATABA-694337.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 16 Apr 2007 09:47:28 GMT</pubDate></item><item><title>Replication - binary log auto removal after processing</title><link>http://www.sagewire.org/mysql-database/Replication-binary-log-auto-removal-after-processi-693016.aspx</link><description>Can I get the master (or slaves) to automatically remove the binary
logs once they are processed by all slaves?

It says in the mysql manual :
If you are using replication, you shouldn't delete old binary log
files until you are sure that no slave still needs to use them. For
example, if your slaves never run more than three days behind, once a
day you can execute mysqladmin flush-logs on the master and then
remove any logs that are more than three days old. You can remove the
files man...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Replication-binary-log-auto-removal-after-processi-693016.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 13 Apr 2007 01:07:10 GMT</pubDate></item><item><title>Trouble installing the MySQL GUI Tools with Red Hat 8.0</title><link>http://www.sagewire.org/mysql-database/Trouble-installing-the-MySQL-GUI-Tools-with-Red-Ha-691255.aspx</link><description>Hello Guys!

    I just installed MySQL Community Server 5.0 onto my computer,
which is running Red Hat 8.0 and it works fine, but
I was trying to install the MySQL GUI Tools (Query Browser, MySQL
Administration and the Migration
 Toolkit) and I'm having trouble with it, I have decompressed the
installer ,
I go to the installation directory (/usr/local/mysql/mysql-gui-
tools-5.0) and type in ./mysql-query-browser to run the query
browser,
but it gives me this error message:
./mysql-q...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Trouble-installing-the-MySQL-GUI-Tools-with-Red-Ha-691255.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 09 Apr 2007 20:29:10 GMT</pubDate></item><item><title>MySQL table suddenly disappeared and a func table was created</title><link>http://www.sagewire.org/mysql-database/MySQL-table-suddenly-disappeared-and-func-table-wa-688075.aspx</link><description>Hi, everyone.  I am not sure if I am writing in the correct group. But
somehow it relates to MySQL,  I hope someone can help me.

I am working on a web site which is developed by PHP and MySQL, hosted
by a hosting company.  Last week, all tables in MySQL suddenly
disappeared and a &amp;quot;func&amp;quot; table is created there.  I never create that
table in my database.

I asked the Hosting company what happened.  The staff claimed that
most probably my computer was hacked and someone use the admin
pas...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/MySQL-table-suddenly-disappeared-and-func-table-wa-688075.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 07 Apr 2007 12:11:11 GMT</pubDate></item><item><title>PHP checking for no record</title><link>http://www.sagewire.org/mysql-database/PHP-checking-for-no-record-690675.aspx</link><description>I am trying to check for '$date' &amp;amp; '$mileage' but when I give them a value
that isn't in the table $result = 2 &amp;amp; the 'if' statement fails to create
the new record, or just print &amp;quot;create DMID&amp;quot; in this case. $result seems to
always = 2. num_rows shows correct (0 or 1) &amp;amp; the DMID is printed if
$date &amp;amp; $mileage are in the table.

What am I doing wrong?

-----------
$result = mysql_query(&amp;quot;select DMID from DateMileage where date = '$date' and mil
eage = '$mileage'&amp;quot;);
printf(&amp;quot;Rows = &amp;quot;.mysql_...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/PHP-checking-for-no-record-690675.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 07 Apr 2007 02:05:30 GMT</pubDate></item><item><title>Is firewall preventing MySQL access?</title><link>http://www.sagewire.org/mysql-database/Is-firewall-preventing-MySQL-access-338357.aspx</link><description>I have recently features to a system by making use of some simple MySQL 
access routines.  It works fine at most test locations, correctkly 
accessing a MySQL database on an internet server.

However, at certain test sites, I cannot access the database.  We're 
online, and I can access web files, for example.  But when trying to say 
hello to that MySQL database, the program fails at the 
&amp;quot;mysql_real_connect&amp;quot; call.  The message is &amp;quot;can not connect to MySQL 
server&amp;quot;, with code &amp;quot;10060&amp;quot; and...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Is-firewall-preventing-MySQL-access-338357.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 07 Apr 2007 01:35:03 GMT</pubDate></item><item><title>Multiplying matches, complex query</title><link>http://www.sagewire.org/mysql-database/Multiplying-matches-complex-query-683927.aspx</link><description>Hi all,

I need to think of a complex way of searching data in a table and also
create a scoring system and display results considering their score.
I need to keep some tokens and also need to compute the score with
those values. The formula for computing the score might be different.
(For example: Token1^4 + Token2 * 7 .....). I will explain further what
those tokens mean and why do I need them.
So it is useful l to know that score can be anything (useful for later
query upgrades, adap...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Multiplying-matches-complex-query-683927.aspx</guid><author>rss@sagewire.org</author><pubDate>Tue, 03 Apr 2007 13:40:22 GMT</pubDate></item><item><title>clean up tables after deletes</title><link>http://www.sagewire.org/mysql-database/clean-up-tables-after-deletes-687896.aspx</link><description>I noticed that in phpMyAdmin there is a way to cleanup and compact
tables that have had lots of deletes done to them. Can anyone tell me
how to do that manually? I find phpMyAdmin to be a pain so I do not want
to use it but I'd like to compact some tables that got bloated with
testing and are now much smaller than before. The main reason I want to
clean them up is that new records go into slots previously used and
deleted instead of going at the end, where they naturally belong
(chronolog...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/clean-up-tables-after-deletes-687896.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 01 Apr 2007 22:49:29 GMT</pubDate></item><item><title>Very Slow Select Query</title><link>http://www.sagewire.org/mysql-database/Very-Slow-Select-Query-459432.aspx</link><description>Hello,

I've a table with more than 1,000,000 rows.

mysql&amp;gt; describe views_date;
+----------+-------------+------+-----+---------+----------------+
| Field    | Type        | Null | Key | Default | Extra          |
+----------+-------------+------+-----+---------+----------------+
| id       | bigint(20)  | NO   | PRI | NULL    | auto_increment |
| id_count | bigint(20)  | YES  |     | NULL    |                |
| date     | datetime    | YES  |     | NULL    |                |
| type...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/Very-Slow-Select-Query-459432.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 31 Mar 2007 01:39:27 GMT</pubDate></item><item><title>mysqlhotcopy</title><link>http://www.sagewire.org/mysql-database/mysqlhotcopy-573841.aspx</link><description>I tried using mysqlhotcopy to do backup copies of my databases, but it
fails with error:
&amp;quot;DBD::mysql::db do failed: Not unique table/alias: 'comments' at /usr/
bin/mysqlhotcopy line 466.&amp;quot;

Has anyone encountered this error? Any ideas on how to solve this?

Thanks,

Antoni</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysqlhotcopy-573841.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 29 Mar 2007 07:34:03 GMT</pubDate></item><item><title>mysql loads newline from flat file</title><link>http://www.sagewire.org/mysql-database/mysql-loads-newline-from-flat-file-524163.aspx</link><description>Hi there MYSQL is loading a non printable character at the end of each
row, clearly its a newline or ENTER character.. I have tried
dos2unix.exe, a perl program that converts dos files to unix, etc.
But I dont think I cant remove newline from the file otherwise how
will mysql know what the record separator is ?  here is my load
command:

LOAD DATA INFILE 'e:/ETL/john/mergedfile_CELL2.txt' INTO TABLE
mergedfile_CELL1b FIELDS TERMINATED BY 0x1C IGNORE 1 LINES;

How does one resolve this ...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysql-loads-newline-from-flat-file-524163.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 28 Mar 2007 21:04:59 GMT</pubDate></item><item><title>join woes</title><link>http://www.sagewire.org/mysql-database/join-woes-391142.aspx</link><description>I've a database with 3 tables, one for nominees, one for voters and one 
for votes.

I used the following syntax

SELECT
`tblnominees`.`fldNominee`,
Count(`tblvotes`.`fldVote`) AS `COUNT_OF_VOTES`
FROM
`tblnominees`
Left Join `tblvotes` ON `tblvotes`.`fldVote` = `tblnominees`.`nomineeID`
GROUP BY
`tblnominees`.`fldNominee`
ORDER BY
`COUNT_OF_VOTES` DESC

and this worked well to give a list of all candidates, whether they had 
votes or not (it returned '0' for those with no votes...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/join-woes-391142.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 28 Mar 2007 13:26:05 GMT</pubDate></item><item><title>mysqldump blocks httpd server</title><link>http://www.sagewire.org/mysql-database/mysqldump-blocks-httpd-server-390874.aspx</link><description>Hello,

I'm trying to make a daily database backup. When executing &amp;quot;mysqldump -
uxxx -pxxx database &amp;gt; /home/backup/ddbb.sql -q &amp;amp;&amp;quot; the httpd server
gets blocked and my site is &amp;quot;offline&amp;quot; for 30 minutes. I also tried
using mysqlhotcopy, but with no success since it fails with error:
&amp;quot;DBD::mysql::db do failed: Not unique table/alias: 'comments' at /usr/
bin/mysqlhotcopy line 466.&amp;quot;

I'd like to make a daily MySQL backup, but without freezing my httpd
server. Any ideas?

Thanks,

Antoni ...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysqldump-blocks-httpd-server-390874.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 26 Mar 2007 08:01:55 GMT</pubDate></item><item><title>double entries</title><link>http://www.sagewire.org/mysql-database/double-entries-390932.aspx</link><description>Hi Folk

I've a databse with a bunch of double entries in some fields.  For
example:field A:

&amp;quot;that is the way to go that is the way to go &amp;quot;

field A should be:

&amp;quot;that is the way to go &amp;quot;

Is there some sort of sql I can use to find these (and clean them up)?

TIA

[quote]Nicolaas

[/quote]</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/double-entries-390932.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 25 Mar 2007 09:11:12 GMT</pubDate></item><item><title>finding duplicate records</title><link>http://www.sagewire.org/mysql-database/finding-duplicate-records-389340.aspx</link><description>I'm trying to setup a way to find possible duplicate or near-duplicate
records of contact people.  I've a table of 50k records doing an
inner join with itself, something like this:

SELECT p1.fields, p2.fields
FROM table AS p1 INNER JOIN table AS p2 ON p1.lastname = p2.lastname
WHERE p1.id [code]&amp;lt;&amp;gt;[/code] p2.id AND
 (other criteria)

The id and name and other criteria fields are indexed as well as they
can be.  It works fine as long as I add a LIMIT statement to keep it
down to just 1...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/finding-duplicate-records-389340.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 19 Mar 2007 08:29:35 GMT</pubDate></item><item><title>MYSQL performance issue</title><link>http://www.sagewire.org/mysql-database/MYSQL-performance-issue-385979.aspx</link><description>Hi,
The following prg keeps cpu usage as 79% always .When I kill/stop the
prg,then cpu comes down.

main()
{
//code for mysql conn
while(1)
  mysql_real_query (&amp;amp;mysqlcon, &amp;quot;SET CHARACTER SET 'utf8';&amp;quot;, 25);
}

What might be the reason? Wil it be any config issues?

Regards,
sathis</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/MYSQL-performance-issue-385979.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 12 Mar 2007 23:05:57 GMT</pubDate></item><item><title>[mysql 5] How could I move a table from one database to another?</title><link>http://www.sagewire.org/mysql-database/mysql-How-could-move-table-from-one-database-to-386589.aspx</link><description>I've a *damaged* MyISAM stock_take_mst.frm in /var/lib/mysql/abc.
And I'd like to move it to /var/lib/mysql/test and experiment with it.

Is there a MySQL command to detach and attach a table?

-- 
iTech Consulting Co., Ltd.
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883	Fax: (852)2325 8288</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/mysql-How-could-move-table-from-one-database-to-386589.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 09 Mar 2007 02:09:08 GMT</pubDate></item><item><title>merging data?</title><link>http://www.sagewire.org/mysql-database/merging-data-383887.aspx</link><description>I've two identical databases on two different servers and I need to add the data in tables from
one server to the tables in the other server. Is there a way to do that in mysql?

thanks,
Ralph</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/merging-data-383887.aspx</guid><author>rss@sagewire.org</author><pubDate>Tue, 27 Feb 2007 18:34:08 GMT</pubDate></item><item><title>MySQL slow in windows NT4</title><link>http://www.sagewire.org/mysql-database/MySQL-slow-in-windows-NT4-383295.aspx</link><description>Hello;

I am running the Apache web server, MySQL v4, and PHP on an NT4 server. 
Apache runs great, but the auction software I am using (Web2035 Auction 
software written in PHP) is very, very slow.

Sometimes it takes 20-30 seconds to bring up an auction page from the items 
table which has less than 200 records in it.

Can anyone can give me some pointers on where to start looking? (I do not 
know if the bottleneck is with MySQL or PHP or what I might need to look at 
to enhance the...</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/MySQL-slow-in-windows-NT4-383295.aspx</guid><author>rss@sagewire.org</author><pubDate>Mon, 26 Feb 2007 03:03:16 GMT</pubDate></item><item><title>MySQL Performance</title><link>http://www.sagewire.org/mysql-database/MySQL-Performance-382401.aspx</link><description>Our database contains about 27,000 records only and it is very slow.

Can someone please suggest any tips to increase the performance? We used 
InnoDB.

Tks</description><guid isPermaLink="true">http://www.sagewire.org/mysql-database/MySQL-Performance-382401.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 21 Feb 2007 17:47:28 GMT</pubDate></item></channel></rss>