Hi All,
I have all my data in my database. It has following 4 columns
id source_clust target_clust result_clust
1 7 72 649
2 9 572 650
3 649 454 651
4 32 650 435
This data is like tree structure. source_clust and target_clust generate target_clust. target_clust can be source_cl...
I exported a live MySQL database (running mysql 5.0.45) to a local copy (running mysql 5.1.33) with no errors upon import. There is a view in the database, that when executed locally, returns a different set of data than when executed remotely. It's returning 32 results instead of 63. When I execute the raw sql, the same problem occurs. ...
After periods of inactivity on my website (Using Spring 2.5 and MySql), I get the following error:
org.springframework.dao.RecoverableDataAccessException: The last packet sent successfully to the server was 52,847,830 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/...
I created the following script to query a table and return the first 30 results. The query returns 30 results, but they do not have any text or information. Why would this be?
The table stores Vietnamese characters. The database is mysql4.
Here's the page: http://saomaidanang.com/recentposts.php
Here's the code:
<?php
header( 'Co...
I'm looking for help with my query below. which is never returning anything for veggie... Is the way I have my WHERE statement written valid?
SELECT *
FROM newsfeed INNER JOIN newsfeedaction ON newsfeed.newsfeedactionid = newsfeedaction.newsFeedActionID
INNER JOIN person ON newsfeed.personID = person.personID
LEFT OUTER JOIN food ON...
Is there is any way to get the select Random Records using query from table in mySql.
...
Hi,
i'd like to ask your help on a longstanding issue with php/mysql connections.
Every time i execute a "SHOW PROCESSLIST" command it shows me about 400 idle (Status: Sleep) connections to the database Server emerging from our 5 Webservers.
That never was much of a problem (and i didn't find a quick solution) until recently traffic n...
CREATE TABLE `mybug` (
`SEAT_NO` decimal(2,0) NOT NULL,
`ROW_NO` decimal(2,0) NOT NULL,
`COL_NO` decimal(2,0) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `mybug` VALUES ('1','1','1'),('26','7','2'),('31','8','2'),('32','8','1'),('33','9','1'),('34','9','2'),('35','9','5'),('36','9','6'),('37','10','6'),('38','10','...
I have a sql file generated by "mysqldump --all-databases" . There are many databases in it. What I want to do is to update my local database but only a specific one, not all. I tried to use "mysql -database=db_name < file.sql" but it updated all databases. Is there a way to skip all databases except the one that I want.
...
I have a MySQL database with a fairly large table where the products are. Each of them has its own id and categoryId field where there is a category id belongs to this product. Now I have a query that pulls out products from given categories such as:
SELECT * FROM products WHERE categoryId IN ( 1, 2, 3, 4, 5, 34, 6, 7, 8, 9, 10, 11, 12 ...
I have a large number of background reads and writes, and a much smaller number of user reads, of a highly contended MySQL database - is there any way to flag certain queries (the user queries) as being high priority so that they take preference over background queries? I want user responsiveness to be high, but don't really care about t...
Hi,
I need to organize cache in mySql database for address - coordinates. What is the best practice to store address? Do i need to compress address string or use it as is?
edit:
Ok, let's I reassert my question.
How to store long (up to 512) string in database if I need to search by exactly this string in future.
...
I'm new to mysql and was wondering how can I add the users birthdate in the following HTML format to the MYSQL table data listed below?
How would the structure look like for example email VARCHAR(80) NOT NULL,?
Here is the HTML code below.
<li><label>Date of Birth: </label>
<label for="month">Month: </label>
<select n...
I'm working on a database with mysql 5.0 for an open source project
it's used to stored sentences in specific languages and their translations in other languages
I used to have a big table "sentences" and "sentences_translations" (use to join sentences to sentences) table but has we have now near one million entries, this begin to be a ...
Hi,
i'm querying a database like this:
SELECT * from Log WHERE cookieId IN (select cookieId from Log WHERE someId="blafasel");
I have keys on someId and cookieId but yet the query is very slow.
If I run the two queries (the outer and the inner) separated both of them or very fast.
select cookieId from Log WHERE someId="blafasel"
...
Is it possible to use MySQL with the data access application block?
The existing providers there don't include mysql.
...
I have two tables:
product (idproduct, name, description, tax)
product_storage (idstorage, idproduct, added, quantity, price)
for each product it could be different price and oldest are "first-to-sell"
for example in storage I have:
1, 1, 2010-01-01, 0, 10.0
2, 1, 2010-01-02, 0, 11.0
3, 1, 2010-01-03, 10, 12.0
4, 2, 2010-01-04, ...
Hey,
I have encrypted user data in my database using des_encrypt, now when i specify a particular statement as below:
SELECT LOWER( DES_DECRYPT( forename, 'ENCRYPT STRING' ) )
FROM Users
All the results are NOT returned in lowercase, anybody know what i am doing wrong? or perhaps how another way to do it?
p.s ENCRYPT STRING is a r...
Is there a good option for having more than one person developing a Wordpress application with a testing site.
The biggest hurdle that I have encountered are path issues when developing locally and integrating to a testing environment.
Does anyone have a good process for maintaining developer environment(s), keeping working content a...
For those of you who have actually delt with RETS may be able to give me a hand here. The problem occurs when multiple properties are tied into the RETS data even though the property is sold. Basically what I need is to be able to check the database with the SELECT statement against three fields. The fields in question would be C_Stre...