mysql server°²×°
Èý. mysql server°²×°
------------------ÒÔÏÂΪÀ©Õ¹£ºÉ¾³ýmysql----------------
ɾ³ý mysql
sudo apt-get autoremove --purge mysql-server-5.0
sudo apt-get remove mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common //Õâ¸öºÜÖØÒª Ó¦¸ÃΪ×Ô¶¯É¾³ýautoremove
ÉÏÃæµÄÆäʵÓÐһЩÊǶàÓàµÄ¡£
ÇåÀí²ÐÁôÊý¾Ý
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
--------------------À©Õ¹Íê±Ï--------------------------
1. mysql server°²×°
1.sudo apt-get install mysql-server mysql-client
2.ÊäÈërootÃÜÂëΪroot
3.¸ü¸Ämysql×î´óÁ¬½ÓÊý£º
sudo gedit /etc/mysql/my.cnf Ôö¼Ó»òÐÞ¸Ämax_connections=1024;
2.½øÈëmysql:
sudo mysql –u root -p ÊäÈëÃÜÂëroot½øÈë¡£
3.Ìí¼Ó/ɾ³ýȨÏÞ
Óï·¨ÈçÏ£º
grant all privileges(or other options) on *.* (or others) to username@"localhost( or % or otherIP)" identified by"username" (or with grant option);Èôwith grant optionÔòΪ³¬¼¶Óû§¡£
revoke all privileges (or other options) on *.* (or others) from username(or username@"localhost( or % or otherIP)");
ĬÈϰ²×ªÒѾΪrootÌí¼ÓÁ˱¾»úȨÏÞ,»ØÊÕȨÏÞʱÇëÉ÷ÖØ¶ÔrootȨÏÞ»ØÊÕ¡£
×¢£º»ØÊÕȨÏÞ²¢²»É¾³ýÓû§¡£Èç¹ûÏëɾ³ý£¬ÐèÒªdelete from user where USER like '...'
¼ÓȨÏÞµÄÓû§´´½¨£º
eg:mysql>grant all privileges on epaper.* to wenxin@'localhost' identified by 'xinwen365'; Òâ˼ÊÇ:ÔÊÐíwenxin´Ó±¾µØ·ÃÎÊepaperÊý¾Ý¿â²¢ÇÒ¾ßÓжԸÃÊý¾Ý¿âµÄËùÓвÙ×÷
mysql>grant all privileges on epaper.* to wenxin@'%' identified by 'xinwen365'; &nbs
Ïà¹ØÎĵµ£º
Each MySQL Cluster host computer running an SQL node must have
installed on it a MySQL binary. For management nodes and data
nodes, it is not necessary to install the MySQL server binary, but
management nodes require the management server daemon
......
1.ÅäÖÃÃû×ÖΪmyodbcµÄÊý¾ÝÔ´
2.ÔÚstdafx.hÖмÓÉÏ
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename ("EOF", "adoEOF")
3.ÔÚ³ÌÐò³õʼ»¯µÄ·½·¨ÖмÓÉÏ
AfxEnableControlContainer();
// ³õʼ»¯COM,´´½¨ADOÁ¬½ÓµÈ²Ù×÷
AfxOleInit();
4.ÔÚºÏÊʵĵط½¼ÓÉÏ
public:_ConnectionPt ......
MySQLË÷Òý
MySQL²éѯÓÅ»¯×îÖØÒªµÄµ±Êô½¨Á¢ÕýÈ·µÄË÷Òý£¬Ã»ÓÐË÷Òý£¬Ãæ¶Ôº£Á¿Êý¾Ý£¬Ò»ÇеÄÓÅ»¯´¿Êô¿Õ»°¡£Ê²Ã´ÊÇË÷Òý£¿Ë÷ÒýΪʲôÄÇÃ´ÖØÒªÄØ£¿ÕâЩÎÊÌâÕâÀï¾Í²»Ì¸ÁË£¬»¹ÊÇÏÈдÏÂÎÒÊ×´ÎÓÅ»¯MySQL²éѯº£Á¿Êý¾ÝµÄÐĵðɣ¬Êý¾Ý¿â±íÀàÐÍÊÇMyISAM¡£
Èç¹û¼òµ¥µÄÒ»¸ö²éѯÓï¾ä£¬MySQL²éѯËÙ¶È»¹ ......
1¡¢Ñ¡È¡×îÊÊÓõÄ×Ö¶ÎÊôÐÔ
MySQL
¿ÉÒԺܺõÄÖ§³Ö´óÊý¾ÝÁ¿µÄ´æÈ¡£¬µ«ÊÇÒ»°ã˵À´£¬Êý¾Ý¿âÖеıíԽС£¬ÔÚËüÉÏÃæÖ´ÐеIJéѯҲ¾Í»áÔ½¿ì¡£Òò´Ë£¬ÔÚ´´½¨±íµÄʱºò£¬ÎªÁË»ñµÃ¸üºÃµÄÐÔÄÜ£¬ÎÒÃÇ¿ÉÒÔ½«
±íÖÐ×ֶεĿí¶ÈÉèµÃ¾¡¿ÉÄÜС¡£ÀýÈ磬ÔÚ¶¨ÒåÓÊÕþ±àÂëÕâ¸ö×Ö¶Îʱ£¬Èç¹û½«ÆäÉèÖÃΪCHAR(255),ÏÔÈ»¸øÊý¾Ý¿âÔö¼ÓÁ˲»±ØÒªµÄ¿Õ¼ä£¬É ......