linuxÏ mysqlÓû§µÄ¹ÜÀí
linux
ÏÂ mysql
Óû§µÄ¹ÜÀí
ÎÄÕ·ÖÀà:Êý¾Ý¿â
¹Ø¼ü×Ö: linux
mysql
Óû§¹ÜÀí
×Ô´ÓÉÏÔÚredhat Enterprise 5 Öа²×°ÁËMySQL
,Õâ´ÎÀ´Êµ¼ù²Ù×÷Ò»ÏÂMySQL
Óû§µÄ¹ÜÀí£»
Ò»¡¢rootÓû§ÃÜÂëµÄά»¤£º
ÓÉÓÚ°²×°MySQL
Íêºó,MySQL
»á×Ô¶¯Ìṩһ¸ö²»´øÃÜÂëµÄrootÓû§£¬ÎªÁË°²È«Æð¼û¸ørootÉèÖÃÃÜÂ룺
#mysqladmin -u root password 123
(123ΪÃÜÂ룬Ҳ¿ÉÒÔд³É:'123'»ò"123") £»
ÉèÖÃÃÜÂëºóµÇÈëʱ¾Í²»ÄÜÖ±½ÓÊäÈëmysql
ÁË£¬±ØÐë¸úЩ²ÎÊýÁË,ÈçÏ£º
[root@localhost ~]# mysql
-u root -p
£¨-u ºó¸úµÇÈëµÄÓû§Ãû£¬-p ÌáʾҪÃÜÂëµÇÈ룩
Enter password:(ÊäÈëÃÜÂë)
ÐÞ¸ÄÃÜÂ룺
[root@localhost ~] #mysqladmin -u root -p password 123456
(password ºó¸úµÄÊÇÒª¸üеÄÐÂÃÜÂë)
Enter password:(ÊäÈëÔʼÃÜÂ룬»Ø³µ¼´¿É)
¶þ¡¢ÆäËûÓû§µÄÔö¼ÓºÍɾ³ý£º
ÒÔrootÓû§µÇÈ룬ÔÚmysql
ÖÐÓÐÒ»ÕÅmysql
.user±íÊÇ´æ´¢MySQL
ÖÐËùÓÐÓû§µÄÐÅÏ¢±í£¬ËùÒÔ¿ÉÒÔÖ±½ÓÔö¼Óɾ³ýÕâ¸ö±íµÄ¼Ç¼¾Í¿ÉÔö¼ÓºÍɾ³ýÓû§£»
1.Ìí¼ÓÓû§£¨ÓÐÁ½ÖÖÐÎʽ£©£º
A.mysql
> grant all on *.* to yushan@"%" identified by "123" ;
mysql
>flush privileges;
(Ë¢ÐÂϵͳȨÏÞ±í)
(Ö´ÐÐÍê»áÔÚmysql
.user
±í²åÈëÒ»Ìõ¼Ç¼£¬all±íʾËùÓÐȨÏÞ(°üÀ¨Ôö ɾ ¸Ä ²éµÈȨÏÞ)£¬ *.*
±íʾËùÓÐÊý¾Ý¿â£¬yushanΪÌí¼ÓµÄÓû§Ãû£¬123ΪÃÜÂë,%ΪƥÅäµÄËùÓÐÖ÷»ú£¬ÉÏÃæµÄÐÅÏ¢¶¼¿ÉÒÔÖ¸¶¨Èçgrant select,update on
db.* to yushan@localhost identified by '123";)
B.Ö±½Ó¶Ômysql
.userÌí¼ÓÒ»Ìõ¼Ç¼
mysql
> insert into mysql
.user(Host,User,Password) values("localhost","yus
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
Ò» ÏÂÔØMySQL
http://dev.mysql.com/downloads/mysql/5.0.html
½âѹMySQL£¨F:\Program Files\MySQL\£©MySQL°²×°Ä¿Â¼
¶þ н¨my.ini
ÔÚF:\Program Files\MySQL\Ͻ¨Á¢my.iniÎļþ£¬ÄÚÈÝΪ
my.ini
[mysqld]
# ÉèÖÃmysqlµÄ°²×°Ä¿Â¼
basedir=F:\\Program Files\\MySQL
# ÉèÖÃmysqlÊý¾Ý¿âµÄÊý¾ÝµÄ´æ·ÅĿ¼£¬±ØÐ ......
ɾ³ýrpm°ü
rpm -e mysql-embedded-5.1.39-4.fc12.i686 --nodeps
°²×°rpm°ü
rpm -vih MySQL-server-community-5.1.37-0.rhel5.i386.rpm
²éѯÒÑ°²×°µÄrpm°ü
rpm -qa | grep MySQL
Æô¶¯mysql
mysql£¨Ã»ÓÐÃÜÂëµÄÇé¿ö£©
&nbs ......
oracle dataguardÊÇÖ¸Ò»ÖÖÊý¾Ý¿â¼¶±ðµÄHA·½°¸£¬×îÖ÷ÒªµÄ¹¦ÄÜÊÇÈÝÔÖ£¬Êý¾Ý±£»¤£¬¹ÊÕϻָ´µÈ
ÔÚÉú²úÊý¾Ý¿âµÄÊÂÎñÒ»ÖÂÐÔʱ£¬Ê¹ÓòúÉúµÄÎïÀíÈ«±¸·Ý´´½¨±¸¿â£¬±¸¿âͨ¹ý´«Êä¹ýÀ´µÄ¹éµµÈÕÖ¾×Ô¶¯Î¬»¤±¸ÓÃÊý¾Ý¿â
½«ÖØ×öµÄÊý¾ÝÓ¦Óõ½±¸ÓÿâÉÏ¡£
1£¬Ç°Ì᣺
primary£º192.168.18.1;
oracle_SID:db1
  ......
Ò»¡¢JDKÏÂÔØ:http://java.sun.comÏÂÔØ×Ô½âѹ°ü:jdk.bin
#sh jdk.bin °´ÌáʾѡÔñyes¡£µ½´ËJDKÒѾ°²×°Íê³É
¶þ¡¢ÉèÖû·¾³±äÁ¿
¼ÙÈçjdk°²×°µ½ÁË/usrĿ¼Ï¡£ÔÚ/etc/profileÖеÄ×îµ×¶ËÀïдÈëÈçÏÂ:
#vi /etc/profile
#Set Environment by NetSeek (2005/9/5)
export JAVA_HOME=/usr/jdk
export JRE_HOME=/usr/jdk/jre
PA ......