mysql启动停止 以及基本使用,乱码处理
1)可以使用解压版本直接解压:比如mysql-5.7.9-linux-glibc2.5-x86_64.tar.gz2)将准备好的my.cnf(该文件可以通过mysql目录下的support-files目录下的my_default.cnf复制过来,然后在里面添加一些参数)放到 mysql解压目录下
my.cnf具体为:
#For advice on how to change settings please see
#http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# DO NOT EDIT THIS FILE. It's a template which will be copied to the
# default location during install, and will be replaced if you
#*** upgrade to a newer version of MySQL.
character-set-server=utf8
collation-server=utf8_general_ci
Remove leading # and set to the amount of RAM for the most important data
#cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 128M
skip-host-cache
skip-name-resolve
lower_case_table_names=1
#Remove leading # to turn on a very important data integrity option: logging
changes to the binary log between backups.
#log_bin
#These are commonly set, remove the # and set as required.
basedir =/home/bes/webgate/mysql-5.7.9-linux-glibc2.5-x86_64
datadir =/home/bes/webgate/mysql-5.7.9-linux-glibc2.5-x86_64/data
socket=/home/bes/webgate/mysql-5.7.9-linux-glibc2.5-x86_64/mysql.sock
port =3306
#server_id =
Remove leading # to set options mainly useful for reporting servers.
The server defaults are faster for transactions and fast SELECTs.
Adjust> joinbuffersize = 128M
sortbuffersize = 2M
readrndbuffersize = 2M**
max_connections=1000
max_allowed_packet=1073741824
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
innodb_locks_unsafe_for_binlog=1innodb_print_all_deadlocks=1
log-error=/home/bes/webgate/mysql-5.7.9-linux-glibc2.5-x86_64/error.err
%E5%85%B7%E4%BD%93%E4%BF%AE%E6%94%B9%E5%AE%89%E8%A3%85%E7%9B%AE%E5%BD%95%E5%8D%B3%E5%8F%AF
3%EF%BC%89%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%EF%BC%8C%E4%BC%9A%E7%94%9F%E6%88%90%E4%B8%80%E4%B8%AAroot@localhost%E7%9A%84%E8%B4%A6%E5%8F%B7%EF%BC%8C%E5%AF%86%E7%A0%81%E4%B8%BA%E7%A9%BA
页:
[1]