Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

MyEclipse Á¬½ÓÔ¶³ÌµÄ MYSQL

mysql Êý¾Ý¿âĬÈϵÄÁ¬½ÓÖ»ÄÜÔÚ±¾»úÁ¬½Ó£¬Ô¶³ÌÁ¬½Ó±ØÐëÊÚȨ¡£
´úÂë: È«Ñ¡
¡¡GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED
BY 'mypassword' WITH GRANT
OPTION;Èç¹ûÄãÏëÔÊÐíÓû§myuser´ÓipΪ192.168.1.6µÄÖ÷»úÁ¬½Óµ½mysql·þÎñÆ÷£¬²¢Ê¹ÓÃ
mypassword×÷ΪÃÜÂë
´úÂë:      GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.0.68'IDENTIFIED BY 'admin' WITH GRANT OPTION
¡¡
ÕâÑùÊý¾Ý¿â¾ÍÔÊÐíÔ¶³ÌÁ¬½ÓÁË¡£
µ«ÔÚÓÃMyEclipseµÄdb
browser
Á¬½Óʱ£¬»¹ÊÇÌáʾÎÞ·¨Á¬½Ó¡£ÎҾͻ³ÒÉÊDz»ÊÇÎÒµÄmysqlÇý¶¯°üÓÐÎÊÌâ¡£
¸Õ¿ªÊ¼ÓõÄÇý¶¯°üÊÇmysql-connector-java-3.1.13-bin.jar
£¬»³Òɰ汾̫µÍ£¬½á¹ûÓÖDOWNÁËÒ»¸öеÄmysql-connector-java-5.1.7-bin.jar¡£¼ÌÐøÁ¬½Ó»¹ÊDz»ÐС£
Í·¶¼ÏëÆÆÁË£¬ÍøÉÏ×ÊÁϲéÁËÒ»¶ÑҲû·¢ÏÖÏà¹ØµÄ½â¾ö·½°¸£¬ÓÚÊDZ§×ÅÊÔÊÔ¿´µÄÐÄ̬ȥ²é¿´mysqlµÄÅäÖÃÎļþ
vi
/etc/mysql/my.cnf
½á¹û·¢ÏÖÓÐÕâô¼¸ÐÐ
´úÂë:bind-address = 127.0.0.1
#
# * Fine
Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack =
128K
thread_cache_size =
8
´ó¼Ò¿´µ½ÁË°Ébind-address = 127.0.0.1
ÕâÒ»ÐоͰÑÁ¬½ÓµØÖ·¸øÏÞÖÆËÀÁË£¬Ö»Äܱ¾»úÁ¬½Ó¡£ÓÚÊÇÎÒ°ÑÕâÐÐ×¢Ê͵ô\
´úÂë: #bind-address = 127.0.0.1
#
# * Fine
Tuning
#
ÖØÐÂÆô¶¯mysql
´úÂë:sudo /etc/init.d/mysql
restart
ÔÙÓÃMyEclipse Á¬½Ó¡£ÖÕÓڳɹ¦ÁË¡£


Ïà¹ØÎĵµ£º

Mysql¡¢Apache¡¢PhpµÄжÔØ (Linux)

 Ð¶ÔØMysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.4-11
mod_auth_mysql-20030510-4.1
mysql-server-3.23.58-9
˵Ã÷£ºrpm –qa | grep mysql ÃüÁîÊÇΪÁË°ÑmysqlÏà¹ØµÄ°ü¶¼ÁгöÀ´£¬Ð¶Ôض¼´Ó×îÏÂÃæµÄÒ»¸ö°ü¿ªÊ¼£¬Ö±µ½Ð¶ÔصôµÚÒ»¸öΪֹ¡£Ö´ÐÐrpm -q php£¬Èç¹û·µ»Øphp°æ±¾£¬ ......

MySQL ÃüÁîÐÐ

 MySQL ÃüÁîÐÐ
µÚÒ»ÕС¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þÕС¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈ ......

MySQL 6 ÂÌÉ«¾«¼òBAT°æ

 
¹Ø¼ü×Ö: mysql6 mysql6ÏÂÔØ
×÷ΪһÃû¿ª·¢ÈËÔ±,ÎÒ¶ÔÂÌɫСÈí¼þÇéÓжÀÖÓ,ÒòΪÓÃÆðÀ´·½±ã¿ì½ÝÂï,±ãÓÚЯ´ø,Ò×ÓÚÔÚÑÝʾϵͳÖÐʹÓÃ,¿ª·¢Ê±¿ÉÁ¢¼´½øÈë״̬. £¨ÔÚ¸½¼þÖУ©
ÒÔÏÂÊÇÏêϸ˵Ã÷:
MySQL 6 ÂÌÉ«¾«¼ò°æ(BAT°æ±¾)
        MySQL 6 Ö§³ÖÍâ¼ü,ÊÓͼ´æ´¢¹ý³Ì,ÊÂÎñµÈ¹¦ÄÜ(ÂÌÉ«¾« ......

mysqlÎļþµ¼ÈëÂÒÂëÎÊÌâµÄ½â¾ö£º

mysqlÎļþµ¼ÈëÂÒÂëÎÊÌâµÄ½â¾ö£º
1 ÃüÁî²ì¿´×Ö·ûÉèÖá£
mysql> show   variables   like   "%char%";
2 ½«²»ÊÇutf-8µÄ¶¼¸Ä³Éutf8¡£Ö»ÓÐfilesystem²»±ä;
| Variable_name            | Value
   &nb ......

ubuntu °²mysql install dbʱ³öÁËÎÊÌâ

ÕâÁ½ÌìÎÒ×°ÁËUBUNTU £¬ÔÚ±àÒë°²×°MYSQLµÄʱºòûÓгöʲôÎÊÌ⣬
µ½scripts/mysql_install_db --user=mysql
ÕâÒ»²½Ê±£¬µÃµ½ÈçÏ´íÎó
FATAL ERROR: Can't find mysqld. Please specify your installation
directory with the '--basedir=' option.
FATAL ERROR: Could not find SQL file '/fill_help_tables.sql'
µ½ÍøÉ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ