ºìÁªLinuxÃÅ»§
Linux°ïÖú

MySQLѧϰ±Ê¼

·¢²¼Ê±¼ä:2008-06-05 00:00:47À´Ô´:ºìÁª×÷Õß:Jovale
ÔÚXPÏÂÆô¶¯MySQL·þÎñ

MySql°²×°Ä¿Â¼£º¡°d:\MySql\¡±

½øÈëÃüÁîÐÐÊäÈë´°¿Ú£¨DosÃüÁîÊäÈ룩
½øÈë¡°d:\MySql\bin¡±Ä¿Â¼ÏÂÔËÐС°mysqld -u root¡± ÃüÁд·¨£º
d:\MySql\bin\mysqld -u root (Enter)

ÔËÐкóÔÚ½ø³Ì¹ÜÀíÖÐÓÐmysqlµÄ½ø³Ì£¬ÔËÐгɹ¦£¨¿ÉÄÜÐèÒªÊÖ¶¯¹Ø±ÕÃüÁî´°¿Ú£©

È»ºóÔÚ¡°d:\MySql\bin\¡±Ä¿Â¼ÏÂÔËÐС°mysql¡± ÃüÁî
д·¨£º
d:\MySql\bin\(Enter)

ÆÁÄ»³öÏÖ:
mysql>
È»ºó¾Í¿ÉÒÔÊäÈëÊý¾Ý¿âÓï¾ä¡£

ERROR 1045 (28000): Access denied for user ODBC@localhostÎÊÌâµÄ½â¾ö

¸ÕʹÓÃmysql, ¾ÍÀÏÊÇÅöµ½Õâ¸öÎÊÌ⣬ÕæÊÇÓôÃÆ£¬ÖÕÓÚÕÒµ½Ô­Òò¡£

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
O)

½â¾ö·½·¨£º
Step 1:

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root -p
Enter password: ****** £¨honyou£©
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 28 to server version: 5.0.24a-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

Step 2:
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql
mysql>status

Õý³£Ê¹Óá£

³£ÓÃÃüÁî
show databases-ÏÖÓÐÊý¾Ý¿âÁбí
use database-ʹÓÃÏÖÓÐij¸öÊý¾Ý¿â
show tables-ÏÔʾ¸ÃÊý¾Ý¿âÏÖÓбí
select * from table-±éÀú±í
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ