bitsCN.com
Open SUSE12.2 MySQL5.6数据库安装配置
系统环境:Open SUSE12.2 x86_64
一、下载"SuSE Linux Enterprise Server 11 (x86, 64-bit), RPM Bundle" 或者"SuSE Linux Enterprise Server 11 (x86, 64-bit), RPM Package Client Utilities"、"SuSE Linux Enterprise Server 11 (x86, 64-bit), RPM PackageMySQL Server",地址:https://dev.mysql.com/downloads/mysql/
二、因为在新安装完的SUSE 12.2系统中,原本已有MySQL5.5.25a版本的MySQL,建议清除(本次安装是已清除原有Mysql5.5.25版本后的安装过程),不过也可以在安装过程中覆盖它。按照MySQL官网文档叙述,如果需要在本地登录,则需安同时装MySQL-server和MySQL-client:
rpm -ivh MySQL-server-5.6.13-1.sles11.x86_64.rpm
rpm -ivh MySQL-client-5.6.13-1.sles11.x86_64.rpm
三、安装完成后,你可以在目录/usr下找到my.cnf,不过这个my.cnf没什么内容,下面配置一下my.cnf,该配置仅作参考使用。
[plain] # The following options will be passed to all MySQL clients [client] #password = your_password port = 3306 socket = /opt/mysql/mysql.sock # Here follows entries for some specific programs # The MySQL server [mysqld] port = 3306 socket = /opt/mysql/mysql.sock # Change following line if you want to store your database elsewhere basedir=/usr datadir = /opt/mysql skip-external-locking key_buffer_size = 16M max_allowed_packet = 1M table_open_cache