Search Results

Showing results 1 to 40 of 179
Search took 0.02 seconds.
Search: Posts Made By: mwasif
Forum: MySQL 2 Days Ago
Replies: 4
Views: 212
Posted By mwasif
I am dealing with tables with 50+ million rows with much more columns. But they do not contain more than 1 text column. Are columns of type text or varchar?

The performance also depends on the...
Forum: MySQL 4 Days Ago
Replies: 4
Views: 212
Posted By mwasif
I never faced any problem with much larger tables (in GBs).

Are you properly indexing your tables? For performance, you can split the tables on year/month basis if you have datatime field....
Forum: MySQL 14 Days Ago
Replies: 6
Views: 484
Posted By mwasif
There is a simple rule, always treat user input an evil :)
Forum: MySQL 14 Days Ago
Replies: 3
Views: 268
Posted By mwasif
You are welcome.
Forum: MySQL 14 Days Ago
Replies: 2
Views: 329
Posted By mwasif
Can you clarify the "certain data"? Read all about JOINs at MySQL Manual (http://dev.mysql.com/doc/refman/5.0/en/join.html).
Forum: MySQL 14 Days Ago
Replies: 2
Views: 250
Posted By mwasif
No, you can not.


You are right, you have to use views.
Forum: MySQL 14 Days Ago
Replies: 5
Views: 306
Posted By mwasif
I am not sure about this. You have to test it yourself by implementing both approaches.

Don't forget to index email and username in tables before uisng JOIN.
Forum: MySQL 14 Days Ago
Replies: 3
Views: 268
Posted By mwasif
Use \ before any special character. If you using PHP, then use mysql_real_escape_string() (http://php.net/mysql_real_escape_string) function.
Forum: MySQL 14 Days Ago
Replies: 3
Views: 6,028
Posted By mwasif
MySQL does not have any native GUI as MS Access have. You can choose from a lot of 3rd party MySQL GUIs (http://www.mwasif.com/2008/6/mysql-gui-tools). There is another open source option available...
Forum: MySQL 14 Days Ago
Replies: 5
Views: 306
Posted By mwasif
Yes, it will increase the performance dramatically.
Check this article for more info http://articles.sitepoint.com/article/optimizing-mysql-application
Forum: MySQL 15 Days Ago
Replies: 5
Views: 306
Posted By mwasif
Do you have index on username and date columns?
Forum: MySQL 28 Days Ago
Replies: 1
Views: 333
Posted By mwasif
This is the way to do. If you need only name from the db, then simply use name in the SELECT statement instead of *.

$row=mysql_select("SELECT name FROM table where id='1'") or die(mysql_error());
Forum: MySQL Oct 1st, 2009
Replies: 3
Views: 403
Posted By mwasif
If ip field is varchar then use quotes around $ip in the query. But if you want to insert in INT format then use INET_ATON()...
Forum: MySQL Oct 1st, 2009
Replies: 3
Views: 403
Posted By mwasif
Do not use quotes around column names.

$sql = mysql_query("INSERT INTO tc_mailist (fname, lname, email, ip) VALUES ('Joe', 'Bloggs', 'joe@bloggs.com', $ip)");
Forum: MySQL Sep 10th, 2009
Replies: 6
Views: 438
Posted By mwasif
The above queries are for MySQL. Did you try it?
Forum: MySQL Sep 10th, 2009
Replies: 4
Views: 418
Posted By mwasif
You are welcome
Forum: MySQL Sep 9th, 2009
Replies: 3
Views: 531
Posted By mwasif
From PHP Manual (http://www.php.net/manual/en/mysqli.overview.php).

The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed to take advantage of new features...
Forum: MySQL Sep 9th, 2009
Replies: 4
Views: 418
Posted By mwasif
The correct query will be

SELECT * FROM quotes WHERE job_status = 'active' AND date_posted<= DATE_SUB(NOW(), INTERVAL 7 DAY)
Forum: MySQL May 29th, 2009
Replies: 7
Views: 987
Posted By mwasif
You don't need to install XAMPP if you want to run MySQL there. Simply download (http://dev.mysql.com/downloads/mysql/5.1.html) MySQL separately from MySQL.com and install it.
Forum: MySQL May 28th, 2009
Replies: 7
Views: 987
Posted By mwasif
Your question is not clear. Do you want to use MySQL running on other machine?
Forum: MySQL May 28th, 2009
Replies: 5
Views: 984
Posted By mwasif
This post (http://forums.mysql.com/read.php?61,17950,18900) on MySQL Forum might help you.
Forum: MySQL May 28th, 2009
Replies: 5
Views: 984
Posted By mwasif
I believe MySQL does not support dblink.
Forum: MySQL May 7th, 2009
Replies: 1
Views: 500
Posted By mwasif
Look at MySQL manual to Enable Incremental Backups (http://dev.mysql.com/doc/refman/5.1/en/backup.html).
Forum: MySQL Apr 19th, 2009
Replies: 2
Views: 517
Posted By mwasif
Forum: MySQL Apr 18th, 2009
Replies: 1
Views: 624
Posted By mwasif
You can easily save images in MySQL (http://www.mwasif.com/2007/4/save-image-in-mysql-with-php/) (follow the link) using PHP.
Forum: MySQL Apr 11th, 2009
Replies: 3
Views: 913
Posted By mwasif
Please find here the table limit (http://dev.mysql.com/doc/refman/5.0/en/full-table.html). You can increase the limit by ALTERing Max_data_length.

Max_data_length is in bytes as Upsilon said.
Forum: MySQL Apr 11th, 2009
Replies: 2
Views: 863
Posted By mwasif
What is the collation of $lookby? Did you alter table structure or upgraded MySQL?
Forum: MySQL Apr 11th, 2009
Replies: 2
Views: 693
Posted By mwasif
You need to use LIMIT (http://dev.mysql.com/doc/refman/5.1/en/select.html)

$sql = 'SELECT * FROM Possesions ORDER BY quantity DESC LIMIT 0,10';
Forum: MySQL Apr 6th, 2009
Replies: 2
Views: 623
Posted By mwasif
Copy .FRM, .MYD and .MYI files from the database directory. But you can do this only with MyISAM tables.
Forum: MySQL Apr 4th, 2009
Replies: 6
Solved: Warnings
Views: 667
Posted By mwasif
Post the warnings here.
Forum: MySQL Apr 4th, 2009
Replies: 2
Views: 1,185
Posted By mwasif
Import .sql to MySQL and then export it via any GUI tool (http://www.mwasif.com/2008/6/mysql-gui-tools/) or export as CSV with a simple PHP script...
Forum: MySQL Mar 28th, 2009
Replies: 1
Views: 382
Posted By mwasif
You can use phpMyAdmin to upload your DB, look for it into your control panel.

To connect to database, you will need to provide hostname (most probably in your case will be localhost), mysql user...
Forum: MySQL Mar 20th, 2009
Replies: 7
Views: 608
Posted By mwasif
Never tell to such clients to use MySQL GUI, most of the time they destroy things :-)
Forum: MySQL Mar 19th, 2009
Replies: 7
Views: 608
Posted By mwasif
Use the following library http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
Forum: MySQL Mar 19th, 2009
Replies: 5
Views: 1,147
Posted By mwasif
Are you using link identifier with mysql_query()?
Forum: MySQL Mar 13th, 2009
Replies: 3
Views: 544
Posted By mwasif
Use the following query to update the record
UPDATE t1, (SELECT * FROM t1 where id=214) as t2 SET
t1.last_name = t2.last_name,
t1.date_column = t2.date_column,
t1.marital_status =...
Forum: MySQL Mar 7th, 2009
Replies: 7
Views: 609
Posted By mwasif
You should use MySQL FULLTEXT (http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html) searching capability.

Look here for examples...
Forum: MySQL Feb 18th, 2009
Replies: 1
Views: 457
Posted By mwasif
This should work for you

SELECT mag.mag_id, mag.name, mag_cat.category_name, COUNT(*) AS subscribers
FROM Magazine mag
LEFT JOIN Magazine_Category mag_cat ON mag.cat_id = mag_cat.cat_id
LEFT...
Forum: MySQL Feb 17th, 2009
Replies: 1
Views: 871
Posted By mwasif
Hi Naveen,

MySQL FULLTEXT search works well with small data but as data grows the performance starts decreasing. Did you try MySQL query cache? This will work for you a bit if your table does not...
Forum: MySQL Jan 31st, 2009
Replies: 1
Views: 814
Posted By mwasif
There is no option in the CPanel to view the password.
Showing results 1 to 40 of 179

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC