Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Computer Console Forum > Handheld Computer Consoles
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Handheld Computer Consoles Have you got a PSP or Nintendo DS if so this is the place for you.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2008, 7:11 AM   #11
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default computer speed test

Hi everyone,
I'm planning on using MySql/Php on either a Windows or, more likely, a
Linux base. However, my database will be several thousands of records,
in many hundreds of tables, searched using a "Search" query with a
regex expression included. I'm wary about the speed penalties, and I
would be very grateful if some metrics or timings could be
provided....?


Many thanks

Paul
--
http://www.paullee.com
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-11-2008, 7:13 AM   #12
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default hung processes mater

I am using php to run queries on my SQL
For some reason I get many "sleep"ing processes in my DB
I am using the following lines to run the queries:
$link = mysql_pconnect($db_server, $db_user, $db_password) or
die('err');
$res = mysql_db_query($db_database, $sql_string, $link);

Any idea what can be done to avoid those hung processes?
Thanks in advance
niaz
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:16 AM   #13
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default different table mater

need help for update a table in this db:

tab1:
id F1
1 45
2 52
3 10
4 25
....
tab2:
id RIFTAB1 F1_2
1 3 45
2 4 12
3 4 10
4 1 40
5 2 80
....

I want to update every F1 in tab1 with min value of F1_2 where
tab2.RIFTAB1=tab1.id :
tab1:
id F1
1 40
2 80
3 45
4 10

I tried this:
UPDATE TAB1 SET F1= (SELECT MIN(F1_2) FROM TAB2 WHERE ????

Thank you in advance.

niaz
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:17 AM   #14
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default delete for rute passwor

How do I delete the root password from MySQL?

I dont want to change it, because I know what the password is. I want
it delete it so I can run mysql -u root and get in as root without the
need for a password.

This is so I can install DBD::Mysql which expects no password to be
set for root.
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:19 AM   #15
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default anyone help me

I have a database with a table called: RESULTS that has the following
fields: DIVISION, NAME, SCORE. I want to SUM up the top 5 scores for
each DIVISION/NAME. I cant seem to get anything to work in MYSQL. I
have seen a rank function used Oracle and stuff along that line, but
not available on MYSQL. Here is what I tried without any luck:

SELECT r1.division, r1.name,
(SELECT SUM(r2.score) FROM results r2 WHERE
r1.division=r2.division AND r1.name=r2.name
GROUP BY r2.division, r2.name
ORDER BY r2.division, r2.name, r2.score DESC LIMIT 5) AS total
FROM results r1
ORDER BY r1.division, r1.name, total DESC;


Can anyone get something like this working on MYSQL v5.0? Help.
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:20 AM   #16
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default automatic update

I'm not really sure if my problem lies in the PHP code or the SQL...
but here it is:

begin();


$query = "UPDATE Nodes "
."SET NodeStatus = 1 "
."WHERE NodeID = $NodeID AND NodeStatus = 0";


$result = mysql_query($query);


if ($result == null || $result == false) {
rollback();
return;
}


In the Nodes table, there should be only one instance of a node with
a
particular NodeID.

So, presumably, user1 will hit the UPDATE and change the NodeStatus
to
1. Then, when user2 hits the UPDATE, it should fail, since the
NodeStatus =1 (and a condition of the update is that the NodeStatus
=0).


However, when multiple users simultaneously (at least down to the
second, according to logs) access the method, they ALL succeed in the
UPDATE query. I don't understand how this can happen. I'm assuming
that the UPDATE operation is atomic in mySQL.


I feel like I shouldn't have to use locks.. but I'm considering it
with the terrible results so far.
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:22 AM   #17
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default please help require this problem?

Hi All, hopeing someone can help with a query...

I have a query that returns a count of bugs reported from customers
and what day of the month they occured on. So I get a resultset such
as

Count | DayOfMonth
25 | 1
30 | 5
1 | 8

etc..

What I want to do is amend the query so it returns values for
"everyday" of the current month. E.g.
25 | 1
0 | 2
0 | 3
0 | 4
30 | 5 and so on...

My query as it stands now is

select count(id) as "cnt",day(timestamp) as "day" from
error_logs
where YEAR(timestamp) = YEAR(NOW()) and month(timestamp) =
month(now())
group by day(timestamp);

Can anyone help me solve this ? Thanks...
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:25 AM   #18
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default multipole darabese insert select

Hello,

I want to do an insert select, where data from one table in one
database is copied into another table in another database. The
databases are on the same server. The tables have the same structure.

I have tried: INSERT INTO db1.table SELECT * FROM db2.table
but I keep getting this error: Incorrect table name

Is it possible to do an INSERT SELECT with different databases on the
same server?

niaz
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:27 AM   #19
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default

hi every body .how are you. if you get an php programme problem . please you can say me i would like to solve this problem.

thanks
niaz
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-11-2008, 7:30 AM   #20
niaz2nal
MK PitStop Member
 
niaz2nal's Avatar
 
Join Date: Jul 2008
Posts: 69
My Photos: (0)
iTrader: (0)

Banked:
MK Cash: $0.00

I am Worth:
MK Cash: $2.47
Donate

Recent Blog: None

niaz2nal is on a distinguished road
Default data entry work

I'm wanting to return all the data from my database for an exact date. My
date field is a timestamp. Here is the code that I have been trying to use:

select * from production where date like '2007-05-30';

or

select * from production where date = '2007-05-30';

Thanks for any help that you can provide.

niaz
__________________
jackpot joy extractor fans
niaz2nal is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags:




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Featured Websites




All times are GMT +1. The time now is 7:48 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98