Forum: MySQL 8 Days Ago |
| Replies: 6 Views: 591 Using double quotes around search string gives an exact match. |
Forum: MySQL 10 Days Ago |
| Replies: 5 Views: 461 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 |
Forum: MySQL 14 Days Ago |
| Replies: 6 Views: 591 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 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 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 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 Just a thing I learnt when replying to a MySQL thread :) |
Forum: MySQL Nov 9th, 2009 |
| Replies: 4 Views: 465 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 |
Forum: MySQL Nov 9th, 2009 |
| Replies: 4 Views: 459 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 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 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 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 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 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 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 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 There is a simple rule, always treat user input an evil :) |
Forum: MySQL Oct 25th, 2009 |
| Replies: 3 Views: 421 |
Forum: MySQL Oct 25th, 2009 |
| Replies: 2 Views: 404 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 No, you can not.
You are right, you have to use views. |
Forum: MySQL Oct 25th, 2009 |
| Replies: 5 Views: 404 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 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 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 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 Do you have index on username and date columns? |
Forum: MySQL Oct 11th, 2009 |
| Replies: 1 Views: 437 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 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 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 The above queries are for MySQL. Did you try it? |
Forum: MySQL Sep 10th, 2009 |
| Replies: 4 Views: 439 |
Forum: MySQL Sep 9th, 2009 |
| Replies: 3 Views: 593 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 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 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 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 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 I believe MySQL does not support dblink. |
Forum: MySQL May 7th, 2009 |
| Replies: 1 Views: 522 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 GRANT privileges to MySQL user to connect remotely. |