FC7ÏÂmysql°²×°ÓëÆô¶¯
Ò»:°²×°
ÎÞÂÛÄãϲ»¶µÄÊÇÄÄÖÖLINUXÌ×¼þ£¬Ëü¶¼ÓпÉÄÜ´øÓÐMySQL¡£Slackware,Ret Hat,SusEºÍDebianÖж¼ÔÚËüÃǵĵ±Ç°°æ±¾Öаüº¬ÁËËü£¬Õ⽫ÌṩһÖÖ×î¼òµ¥µÄ·½Ê½À´¿ìËÙ°²×°ºÍÔËÐÐMySQL¡£Èç¹ûÄãµÄ·¢Ðа汾ÖÐûÓÐÌṩMySQLÈí¼þ°ü£¬»òÕßÄãÏëµÃµ½×îеİ汾£¬Äã¿ÉÒÔ´ÓMySQLµÄÍøÕ¾:www.mysql.comÉÏÏÂÔØ¶þ½øÖưü»òÔ´´úÂë°ü¡£
ÔÚFedora 7µÄµÄ×ÀÃæ×óÉÏ·½£¬µã»÷ÈçÏ£º
“Ó¦ÓóÌÐò“£££¾“Ìí¼Ó/ɾ³ýÈí¼þ“£¬ÔÚµ¯³öµÄ¶Ô»°Èí¼þ¸üа²×°ÁбíÊ×Ò³ÖУ¬Ñ¡Ôñ“·þÎñÆ÷“£¬È»ºóÑ¡ÔñÓÒÃæµÄ MySQL½øÐа²×°¼´¿É¡£
ÔÚMySQLµÄ°²×°¹ý³ÌÖУ¬°²×°½Å±¾»áΪÄã×Ô¶¯´´½¨Ò»¸ö³õʼÊý¾Ý¿â¡£Í¬Ñù£¬ÄãÒ²Äܵõ½Ò»¸öÓÃÓÚÆô¶¯ºÍÍ£Ö¹·þÎñµÄinit.d½Å±¾£¨Í¨³£Î»ÓÚ/etc/rc.d/init.dĿ¼ÖУ©mysqld»òmysql.
¶þ£ºÆô¶¯
°²×°ºó£¬¿ÉÒÔÒÔrootÉí·ÝʹÓÃ/etc/rc.d/init.d/myqsld£¨»òÊÇmysql) startÃüÁîÀ´Æô¶¯·þÎñÆ÷.Ò²¿ÉÒÔÓà serviceconfÃüÁîÆô¶¯Í¼Ðλ¯½çÃæÀ´Æô¶¯mysql¡£
[root@localhost init.d]# /etc/rc.d/init.d/mysqld start
³õʼ»¯ MySQL Êý¾Ý¿â£º Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
 
Ïà¹ØÎĵµ£º
¸ñʽΪ2008-06-16
²éѯ³öµ±ÌìÊý¾Ý£º
SELECT * from `table` WHERE date(ʱ¼ä×Ö¶Î) = curdate();
²éѯ³öµ±ÔÂ×ֶΣº
SELECT *
from `table`
WHERE month( ʱ¼ä×Ö¶Î) = month( now( ) ) ;
ʱ¼ä¸ñʽΪ1219876…… UNIXʱ¼ä£¬Ö»ÒªÓ¦ÓÓfrom_UNIXTIME( )”º¯Êý
ÀýÈç²éѯµ±Ô£º
SELECT ......
ºÜ¶àÅóÓѶ¼ÓйýÕâÑùµÄ¾Àú,½«mysqlÉý¼¶µ½4.1(»òÒÔÉÏ)°æ±¾ºó,¾ÉµÄ³ÌÐò´ÓÊý¾Ý¿â¶Á³öÀ´µÄ¶¼±ä³ÉÂÒÂëÁË.Õâ¸öÎÊÌâÍøÉϺܶàÕâ·½ÃæµÄÌÖÂÛ,ÆäʵÊÖ²áÉÏÒѾÓйØÓÚÕâ·½ÃæµÄÏêϸ˵Ã÷,
ÒÔÏÂÄÚÈÝÕª×ÔmysqlÊÖ²á,
²úÉúÕâ¸öÎÊÌâµÄÔÒòÊÇ:
MySQL 4.1.x¿ªÊ¼Ö§³ÖÒÔÏÂÕâЩÊÂÇé
· ʹ ......
by ZaraByte
How to do a SQL Injection for MYSQL Server 5.0+
1. Find a vulnerable add a ‘ at the end of the site example: news.php?id=1 add a ‘ at the end of the 1 and see if you get a syntax error
2. order by #–
Keep upping the # until you get an error.
3. union all select 1 ......
Æô¶¯mysql: /etc/rc.d/init.d/mysql start
ÐÞ¸ÄÃÜÂë: ¸ñʽ£ºmysqladmin -uÓû§Ãû -p¾ÉÃÜÂë password ÐÂÃÜÂë
ʹÓÃÃÜÂëµÇ¼: mysql -u root -p
ÏÔʾÊý¾Ý¿â: show databases;
Ñ¡ÔñÊý¾Ý¿â: use Êý¾Ý¿âÃû;
ÏÔʾ±í: show tables;
ÏÔʾ±í½á¹¹: descibe ±íÃû;
Ô¶³ÌµÇ¼mysqlÐèÒª¿ªÆôÈ ......