Forum: MySQL 9 Days Ago |
| Replies: 3 Views: 301 Or you can use Navicat (http://www.navicat.com/en/products/navicat_mysql/mysql_feature.html) to directly import from Excel. |
Forum: MySQL 9 Days Ago |
| Replies: 3 Views: 301 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 10 Days Ago |
| Replies: 16 Views: 797 Just a thing I learnt when replying to a MySQL thread :) |
Forum: MySQL 12 Days Ago |
| Replies: 4 Views: 313 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 12 Days Ago |
| Replies: 3 Views: 301 |
Forum: MySQL 12 Days Ago |
| Replies: 4 Views: 316 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 12 Days Ago |
| Replies: 3 Views: 301 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 12 Days Ago |
| Replies: 4 Views: 316 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 13 Days Ago |
| Replies: 16 Views: 797 Then you must use TEXT type if the length is more than 255. VARCHAR consumes the space according to the string length. |
Forum: MySQL 13 Days Ago |
| Replies: 16 Views: 797 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 13 Days Ago |
| Replies: 16 Views: 797 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 16 Days Ago |
| Replies: 16 Views: 797 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 18 Days Ago |
| Replies: 16 Views: 797 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 27 Days Ago |
| Replies: 6 Views: 597 There is a simple rule, always treat user input an evil :) |
Forum: MySQL 27 Days Ago |
| Replies: 3 Views: 349 |
Forum: MySQL 27 Days Ago |
| Replies: 2 Views: 369 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 27 Days Ago |
| Replies: 2 Views: 340 No, you can not.
You are right, you have to use views. |
Forum: MySQL 27 Days Ago |
| Replies: 5 Views: 354 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 27 Days Ago |
| Replies: 3 Views: 349 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 28 Days Ago |
| Replies: 3 Views: 6,068 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 28 Days Ago |
| Replies: 5 Views: 354 Yes, it will increase the performance dramatically.
Check this article for more info http://articles.sitepoint.com/article/optimizing-mysql-application |
Forum: MySQL 28 Days Ago |
| Replies: 5 Views: 354 Do you have index on username and date columns? |
Forum: MySQL Oct 11th, 2009 |
| Replies: 1 Views: 383 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: 430 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: 430 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: 446 The above queries are for MySQL. Did you try it? |
Forum: MySQL Sep 10th, 2009 |
| Replies: 4 Views: 426 |
Forum: MySQL Sep 9th, 2009 |
| Replies: 3 Views: 546 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: 426 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,016 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,016 Your question is not clear. Do you want to use MySQL running on other machine? |
Forum: MySQL May 28th, 2009 |
| Replies: 5 Views: 1,073 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,073 I believe MySQL does not support dblink. |
Forum: MySQL May 7th, 2009 |
| Replies: 1 Views: 507 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: 527 GRANT privileges to MySQL user to connect remotely. |
Forum: MySQL Apr 18th, 2009 |
| Replies: 1 Views: 645 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: 930 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: 879 What is the collation of $lookby? Did you alter table structure or upgraded MySQL? |
Forum: MySQL Apr 11th, 2009 |
| Replies: 2 Views: 712 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: 634 Copy .FRM, .MYD and .MYI files from the database directory. But you can do this only with MyISAM tables. |