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£¨Ã»ÓÐÃÜÂëµÄÇé¿ö£©
mysql -u root -p£¨ÓÐÃÜÂëµÄÇé¿ö£¬È»ºómysql»áÌáʾÊäÈëÃÜÂ룩
ɾ³ýMySQLµÄrootÃÜÂëµÄ·½·¨£¬ÔÚ mysql> ÏÂÊäÈëÒÔÏÂ2ÐÐ:
GRANT USAGE ON *.* TO root@localhost IDENTIFIED BY '';
FLUSH PRIVILEGES;
µ¼³öSQL½Å±¾
mysqldump -uÓû§Ãû -p Êý¾Ý¿âÃû > Êý¾Ý¿âÃû.sql
mysqldump -u root DB_FOR_ALARM > data.sql
Ö´ÐÐSQL½Å±¾£¬ÔÚ mysql> ÏÂÊäÈë
source ./SP_DB.sql
DROP DATABASE IF EXISTS DB_FOR_ALARM;
CREATE DATABASE DB_FOR_ALARM;
Ïà¹ØÎĵµ£º
תÔØÇë×¢Ã÷×÷Õߺͳö´¦
http://www.cnlinux.net
Ò»¡¢½éÉÜ
========
²âÊÔ»·¾³£º
Server1:ndbd 192.168.0.11
Server2:ndbd 192.168.0.12
Server3:mysqld --ndb-cluster 192.168.0.13 (ndbd_mgm ndbd_mgmdÒ²ÔÚ±¾»ú)
²Ù×÷ϵͳ¾ùΪ
RH ES3
kernel-2.4.21-9.EL
glibc-2.3.2-95.6
ËùÐèÈí¼þ°ü£º
mysql-max-5.0.22-lin ......
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Li ......
1.ʵÏÖTAB¼ü²¹È«
SHELL>vi /etc/my.cnf
[mysql]
#no-auto-rehash
auto-rehash
SHELL>reboot mysqld
note: 1.ÒªÏÈuseµ½Ä³¸öÊý¾Ý¿âÏ£»2.Òª²¹È«µÄ¹Ø¼ü×ÖÐèÒª´óд¡£
2.promptÈòÙ×÷¸ü¼ÓÇå³þ
mysql>prompt \u@\h(\d) \r:\m:\s (ÁÙʱ)
[mysql] £¨³¤¾Ã£©
prompt=\\u@\\h
3.pagerÈÃä ......