MySQL¿ªÆô¶à¸ö¶Ë¿Ú¼°¿âĿ¼²Ù×÷Îĵµ
²âÊÔ£¬ÇÒÔöж˿Ú3307
Ò»¡¢´´½¨ÐµĿâĿ¼¡¢³õʼ»¯Êý¾Ý¿â¡¢¸³È¨
mkdir /usr/local/mysql/var_3307/usr/local/mysql/bin/mysql_install_db --datadir=/usr/local/mysql/var_3307
chown -R mysql:mysql /usr/local/mysql/var_3307
¶þ¡¢´´½¨ÐµÄÅäÖÃÎļþ
vi /etc/my_3307.cnf
¼ÓÈëÒÔÏÂÄÚÈÝ£º
[client]
port = 3307
socket = /tmp/mysql_3307.sock
[mysqld]
port = 3307
socket = /tmp/mysql_3307.sock
datadir = /usr/local/mysql/var_3307
innodb_data_home_dir = /usr/local/mysql/var_3307
innodb_log_group_home_dir = /usr/local/mysql/var_3307
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
thread_concurrency = 8
log-bin=mysql-bin
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
ºìÉ«±ê³öµÄ²¿·Ö£¬¶¼ÊDZØÒª¸Ä¶¯ºÍÌí¼ÓµÄÄÚÈÝ£¬ÆäËû¿É¸ù¾ÝÐèÇóÐÞ¸Ä
Èý¡¢ÆôÍ£mysql·þÎñ£¬¿ªÆô3307¶Ë¿Ú
Æô¶¯
/usr/local/mysql/bin/mysqld_safe --defaults-extra-file=/etc/my_3307.cnf &
Í£Ö¹
/usr/local/mysql/bin/mysqladmin -uroot -S /tmp/mysql_3307.sock shutdown
ËÄ¡¢²âÊÔ
怫mysql
/usr/local/mysql/bin/mysql -S /tmp/mysql_3307.sock -P 3307
´´½¨Ò»¸öÐÂÊý¾Ý¿â
create database Êý¾Ý¿âÃû;
Í˳öÖ®ºó£¬·µ»Ø/usr/local/mysql/var_3307 Ŀ¼£¬ÓÐеÄ[Êý¾Ý¿âÃû]Ŀ¼£¬±íʾÒÔÉÏÅäÖÃÆôÓÃÖ´ÐÐÕý³£.
×¢Ò⣺
Èç¹ûÆôÓÃmysql·þÎñʧ°Ü£¬·¢ÉúÈçϱ¨´í£º
tail -f /usr/local/mysql/var_3307/localhost.localdomain.err
Ê®Óа˾ÅÊÇȨÏÞÎÊÌâcd /usr/local/mysql/var_3307
chown -R mysql:mysql *
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ