当前位置:Gxlcms > 数据库问题 > Ubuntu 12.04下安装MySQL图解

Ubuntu 12.04下安装MySQL图解

时间:2021-07-01 10:21:17 帮助过:39人阅读

   技术分享技术分享
  1. # For advice on how to change settings please see  
  2. # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html  
  3. # *** DO NOT EDIT THIS FILE. It‘s a template which will be copied to the  
  4. # *** default location during install, and will be replaced if you  
  5. # *** upgrade to a newer version of MySQL.  
  6.   
  7. [client]  
  8. port        = 3306  
  9. default-character-set=utf8  
  10. # Here is entries for some specific programs  
  11. # The following values assume you have at least 32M ram  
  12.   
  13. [mysqld]  
  14. character_set_server=utf8  
  15. lower_case_table_names=1  
  16. init_connect=‘SET NAMES utf8‘  
  17.   
  18. lower_case_table_names=1  
  19.   
  20. max_connections=3000    
  21. max_allowed_packet = 32M   
  22.   
  23. thread_cache_size = 16    
  24. thread_concurrency = 8    
  25.   
  26. query_cache_size = 128M    
  27.   
  28. # Remove leading # and set to the amount of RAM for the most important data  
  29. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.  
  30. innodb_buffer_pool_size = 128M  
  31.   
  32. # Remove leading # to turn on a very important data integrity option: logging  
  33. # changes to the binary log between backups.  
  34. # log_bin  
  35.   
  36. # These are commonly set, remove the # and set as required.  
  37. basedir = .....  
  38. datadir = .....  
  39. port = .....  
  40. server_id = .....  
  41. socket = .....  
  42.   
  43. # Remove leading # to set options mainly useful for reporting servers.  
  44. # The server defaults are faster for transactions and fast SELECTs.  
  45. # Adjust sizes as needed, experiment to find the optimal values.  
  46.  join_buffer_size = 16M  
  47.  sort_buffer_size = 16M  
  48. read_rnd_buffer_size = 2M   
  49.   
  50. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES   
  51.   
  52. [mysqldump]  
  53. quick  
  54. quote-names  
  55. max_allowed_packet = 32M    
  56.     
  57. [mysql]    
  58. no-auto-rehash    

 

 

参考文章: http://blog.csdn.net/njchenyi/article/details/17615391

Ubuntu 12.04下安装MySQL图解

标签:变更   ace   用户模式   top   title   repo   远程登录   character   sel   

人气教程排行