Search Results

Showing results 1 to 40 of 187
Search took 0.05 seconds.
Search: Posts Made By: mwasif ; Forum: MySQL and child forums
Forum: MySQL 8 Days Ago
Replies: 6
Views: 591
Posted By mwasif
Using double quotes around search string gives an exact match.
Forum: MySQL 10 Days Ago
Replies: 5
Views: 461
Posted By mwasif
It will be look like
$sql = "UPDATE inventory WHERE userID = '$_SESSION[userID]' SET money = money+ $ssmoney ";
Forum: MySQL 14 Days Ago
Replies: 6
Views: 591
Posted By mwasif
Can you explain this?
Forum: MySQL 14 Days Ago
Replies: 6
Views: 591
Posted By mwasif
Use MySQL's FULLTEXT (http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html) searching capability.
Forum: MySQL 15 Days Ago
Replies: 1
Views: 505
Posted By mwasif
First create a database named forum by executing the following command on mysql prompt

CREATE DATABASE forum;
Forum: MySQL Nov 12th, 2009
Replies: 3
Views: 609
Posted By mwasif
Or you can use Navicat (http://www.navicat.com/en/products/navicat_mysql/mysql_feature.html) to directly import from Excel.
Forum: MySQL Nov 12th, 2009
Replies: 3
Views: 609
Posted By mwasif
Save the Excel file as .csv and then use LOAD DATA INFILE (http://dev.mysql.com/doc/refman/5.1/en/load-data.html) to import data to MySQL.
Forum: MySQL Nov 11th, 2009
Replies: 16
Views: 1,134
Posted By mwasif
Just a thing I learnt when replying to a MySQL thread :)
Forum: MySQL Nov 9th, 2009
Replies: 4
Views: 465
Posted By mwasif
wamp supports MySQL. MySQL does not store databases with .db extentsion. You can find all databases under data directory i.e.
c:\wamp\bin\mysql\mysql5.x.x\data\

I assumed you have installed wamp...
Forum: MySQL Nov 9th, 2009
Replies: 3
Views: 450
Posted By mwasif
No
No
Forum: MySQL Nov 9th, 2009
Replies: 4
Views: 459
Posted By mwasif
Sorry for that, I didn't realize that you are using Windows. You should use 'c:\mysql\data.txt' instead of the path I mentioned.
Forum: MySQL Nov 9th, 2009
Replies: 3
Views: 450
Posted By mwasif
If you remember the MySQL root password, then go to phpMyAdmin directory under directory like wamp\apps\phpmyadmin3.1.3.1 and open config.inc.php. And provide the correct password in...
Forum: MySQL Nov 9th, 2009
Replies: 4
Views: 459
Posted By mwasif
Mention the full path to the destination where you mention the file name e.g.
SELECT col1, col2 INTO OUTFILE 'c:\mysql\data.txt'
FIELDS TERMINATED BY ','
....
Forum: MySQL Nov 8th, 2009
Replies: 16
Views: 1,134
Posted By mwasif
Then you must use TEXT type if the length is more than 255. VARCHAR consumes the space according to the string length.
Forum: MySQL Nov 8th, 2009
Replies: 16
Views: 1,134
Posted By mwasif
Yes, 150 is the maximum string length that can be strored in this column. This can be any value upto 255 for VARCHAR. You can not manually set the length for each row, MySQL adjust it automatically...
Forum: MySQL Nov 8th, 2009
Replies: 16
Views: 1,134
Posted By mwasif
Creating a table with VARCHAR columns of a specified length is very easy. e.g
CREATE TABLE `table_data` (
`col1` VARCHAR( 150 ) NOT NULL ,
`col2` VARCHAR( 150 ) NOT NULL ,
`col3` VARCHAR( 150 )...
Forum: MySQL Nov 5th, 2009
Replies: 16
Views: 1,134
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 Nov 3rd, 2009
Replies: 16
Views: 1,134
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 Oct 25th, 2009
Replies: 6
Views: 688
Posted By mwasif
There is a simple rule, always treat user input an evil :)
Forum: MySQL Oct 25th, 2009
Replies: 3
Views: 421
Posted By mwasif
You are welcome.
Forum: MySQL Oct 25th, 2009
Replies: 2
Views: 404
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 Oct 25th, 2009
Replies: 2
Views: 383
Posted By mwasif
No, you can not.


You are right, you have to use views.
Forum: MySQL Oct 25th, 2009
Replies: 5
Views: 404
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 Oct 25th, 2009
Replies: 3
Views: 421
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 Oct 24th, 2009
Replies: 3
Views: 6,203
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 Oct 24th, 2009
Replies: 5
Views: 404
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 Oct 24th, 2009
Replies: 5
Views: 404
Posted By mwasif
Do you have index on username and date columns?
Forum: MySQL Oct 11th, 2009
Replies: 1
Views: 437
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: 455
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: 455
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: 490
Posted By mwasif
The above queries are for MySQL. Did you try it?
Forum: MySQL Sep 10th, 2009
Replies: 4
Views: 439
Posted By mwasif
You are welcome
Forum: MySQL Sep 9th, 2009
Replies: 3
Views: 593
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: 439
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: 1,077
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: 1,077
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: 1,251
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: 1,251
Posted By mwasif
I believe MySQL does not support dblink.
Forum: MySQL May 7th, 2009
Replies: 1
Views: 522
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: 560
Posted By mwasif
Showing results 1 to 40 of 187

 


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

©2003 - 2009 DaniWeb® LLC