mysqlµÄÈýÖÖ°²×°·½Ê½
°²×°µÄOSΪSolaris10,mysql °æ±¾ÊÇ5.1.38
Ò»¡¢Ê¹ÓÃRPM°ü½øÐа²×°
Ê×ÏÈ¿ÉÒÔ´Ó°²×°¹âÅÌÖлòÕßµ½mysqlµÄÍøÕ¾ÉÏÏÂÔضÔÓ¦°æ±¾µÄrpm°üÈçÏ£º
MySQL-server-community-5.1.38-0.rhel5.i386.rpm
MySQL-client-community-5.1.38-0.rhel5.i386.rpm
½Ó×ÅÎÒÃÇ¿ÉÒÔʹÓÃrpmÃüÁî½øÐа²×°£º
rpm -ivh MySQL-server-community-5.1.38-0.rhel5.i386.rpm
rpm -ivh MySQL-client-community-5.1.38-0.rhel5.i386.rpm
¶þ¡¢°²×°¶þ½øÖÆ°ü
²½ÖèÈçÏ£º
1¡¢ÓÃrootµÇ¼ϵͳ£¬Ôö¼ÓmysqlÓû§ºÍ×é
groupadd mysql
useradd -g mysql mysql
2¡¢½âѹ¶þ½øÖÆ°ü£¬¼ÙÈç¶þ½øÖÆ°ü·ÅÔÚ/home/mysqlÏ£¬ÎÒÃÇÔÚ½âѹºó²¢Ôö¼ÓÒ»¸ö·ûºÅÁ´½Ó
tar xvfz mysql-5.1.38-linux-i686-glibc23.tar.gz
ln -s mysql-5.1.38-linux-i686-glibc23 mysql
3¡¢ÔÚÊý¾Ý¿âĿ¼Ï´´½¨ÏµÍ³Êý¾Ý¿âµÄ±í£¬--user±íʾÕâЩÊý¾Ý¿âºÍ±íµÄËùÓÐÕßΪ´ËÓû§
cd mysql
./scripts/mysql_install_db --user=mysql
4¡¢ÉèÖÃĿ¼ȨÏÞ£¬½«dataĿ¼µÄËùÓÐÕ߸ÄΪmysql£¬ÆäËüĿ¼µÄÎļþµÄËùÓÐÕßΪroot
chown -R root:mysql .
chown -R mysql:mysql data
5¡¢Æô¶¯mysql
./bin/mysqld_safe --user=mysql &
Èý¡¢Ô´Âë°²×°mysql
1¡¢ÓÃrootµÇ¼ϵͳ£¬Ôö¼ÓmysqlÓû§ºÍ×é
groupadd mysql
useradd -g mysql mysql
2¡¢½âѹԴÂë°ü£¬²¢½øÈë½âѹºóµÄĿ¼
tar xvfz mysql-5.1.38.tar.gz
cd mysql-5.1.38
3¡¢ÓÃconfigure¹¤¾ßÀ´±àÒëÔ´´úÂ룬ÕâÀïÎÒÃÇ¿ÉÒÔʹÓúܶàµÄ²ÎÊý£¬¾ßÌå¿ÉÒÔÓÃconfigure --helpÀ´²é¿´£¬ÕâÀïÎÒÃǽ«mysql°²×°µ½/usr/local/mysqlÏÂ
./configuer --prefix=/usr/local/mysql
make
make install
4¡¢Ñ¡ÔñÒ»¸öÑùÀýÅäÖÃÎļþ£¬²¢¸´ÖƵ½/etc/ϸÄÃûΪmy.cnf
cp support-files/my-medium.cnf /etc/my.cnf
5¡¢ÔÚÊý¾Ý¿âĿ¼Ï´´½¨ÏµÍ³Êý¾Ý¿âµÄ±í£¬--user±íʾÕâЩÊý¾Ý¿âºÍ±íµÄËùÓÐÕßΪ´ËÓû§
cd /usr/local/mysql
./bin/mysql_install_db --user=mysql
6¡¢ÉèÖÃĿ¼ȨÏÞ£¬½«varĿ¼µÄËùÓÐÕ߸ü¸ÄΪmysql,ÆäËüĿ¼ºÍÎļþµÄËùÓÐÕßΪroot
chown -R root .
chown -R mysql var
chgrp&
Ïà¹ØÎĵµ£º
package com.google.i_sales.service.data;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.uti ......
http://dev.mysql.com/doc/refman/5.1/zh/index.html
(MySql 5.1 ÖÐÎIJο¼ÊÖ²á)
*------------------------------------------------------------------------------------------
show databases; ÏÔʾÊý¾Ý¿â
drop database Êý¾Ý¿âÃû;ɾ³ýÊý¾Ý¿â
set names 'utf8';ÉèÖÃÊý¾Ý¿â±àÂëΪutf-8
source x:\Êý¾Ý¿âÃû.sql;µ¼È ......
ÔÚJavaEye¿´µ½ÒÔϵÄÄÚÈÝ£¬Á´½ÓµØÖ·£ºhttp://www.javaeye.com/news/13062-mysql£¬Ï£Íûϲ°®MySqlµÄÅóÓÑÃÇÒ»ÆðÖ§³Ö¡£
ÇëÔ¸ÊéµØÖ·£ºhttp://helpmysql.org/cn/petition
Ç×°®µÄÕü¾ÈMySQLµÄÖйúÇ©ÃûÖ§³ÖÕß:
Å·ÃË¿ÉÄÜÎÞ·¨Õü¾ÈMySQL, ÖйúºÍ¶íÂÞ˹¿ÉÄÜÊÇÕü¾ÈMySQLµÄÏ£ÍûÖ®ËùÔÚ¡£ÖйúÓµÓÐÇ¿´ó¡¢¶ÀÁ¢ÒÔ¼°×ÔÐŵ ......
====================================================
Òý×Ô£ºhttp://blog.sina.com.cn/s/blog_538a9d1901008f9g.html
ʲôÊÇC2¼¶°²È«ÐÔ£¿°²È«ÐԵķÖÀàÊÇÔõÑùµÄ£¿(2008-01-30 17:04:39)
DÀࣺ×îµÍ±£»¤£¬±£Áô¸ø²»ÄÜͨ¹ý¸ü¸ß¼¶±ð¼ì²éµÄϵͳ
C1£º½÷É÷±£»¤£¬ÒªÇóÓлùÓÚÓû§¼¶±ðµÄ¿ØÖÆÀ´±£»¤Êý¾Ý£¬Ö÷Òª·ÀÖ ......