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

linux mysql install

·¢²¼Ê±¼ä:2009-07-08 07:12:43À´Ô´:ºìÁª×÷Õß:sundh1981
mysql download url:http://dev.mysql.com/downloads/mysql/5.1.html
Á¬½Óµ½¹ÙÍøºóÏÂÔØÊʺÏÄãϵͳÄÚºËµÄ mysql °æ±¾ ÎÒÓõÄÊÇRedHat Enterprise5 Server
ÏÂÔØºó°²×°£º
×¢ÊÍ£ºType the following command as root user
Ò²¾ÍÊÇ˵ÒÔÏÂÃüÁîÊʺÏrootÓû§£¬Èç¹û²»ÊÇ£¬su Ò»ÏÂ
#yum install mysql-server mysql

ÉÏÒ»²½³É¹¦ºóÖ´ÐÐÏÂÃæµÄÃüÁ
Start MySQL Service
To start mysql server type the following command;
#chkconfig mysql on
#/etc/init.d/mysqld start
×¢½â£ºÒÔÉÏÁ½ÌõÃüÁî·Ö±ðÊÇ¿ª»úÆô¶¯ MySQL ·þÎñ Æô¶¯MySQL

ÉÏÒ»²½³É¹¦ºóÖ´ÐÐÏÂÃæÃüÁ
Setup Mysql root password
Type the following command to setup a password for root user
#mysqladmin -u root password newpassword
×¢ÊÍ£ºÒÔÉÏÃüÁîÖ÷ÒªÊÇΪÁ˰²È«Æä¼äÖØÐÂÉèÖà root Óû§µÄ ÃÜÂë

ÉÏÒ»²½³É¹¦ºóÖ´ÐÐÏÂÃæÃüÁ
Test mysql connectivity
Type the following command to connect to MySQL server;
#mysql -u root -p
×¢ÊÍ£ºÒÔÉÏÃüÁîΪÁ¬½ÓÊý¾Ý¿â¡£ÖÁ´ËÊý¾Ý¿âÒѾ­³É¹¦°²×°ÁË£¡
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. pinla ÓÚ 2009-07-08 09:14:58·¢±í:

    ѧϰÁË