Configuring MySQL Server |
To use another MySQL server after rpm installation has occurred, you must update .my.cnf files and application configuration files.
Replace the bolded example variables with your MySQL server information. production: database: shares username: "mysql_user" password: "3xamp13MySQLp4zzw0rd1234567" host: 10.0.0.0 port: 1234 encoding: utf8 reconnect: false pool: 5 production_stats_collector: database: stats_collector username: "mysql_user" password: "3xamp13MySQLp4zzw0rd1234567" host: 10.0.0.0 port: 1234 encoding: utf8 reconnect: false pool: 5
Replace the bolded example variables with your MySQL server information. <!-- connection URL: jdbc:mysql://HOST:PORT/DATABASE --> <property name="hibernate.connection.url" value="jdbc:mysql://10.0.0.0:1234/stats_collector"/> <property name="hibernate.connection.username" value="mysql_user"/> <property name="hibernate.connection.password" value="3xamp13MySQLp4zzw0rd1234567"/>
Run the following commands to restart all Shares services at once. # service aspera-shares stop # service aspera-shares start
rm /opt/aspera/shares/etc/runit/runlevels/setup/mysqld rm /opt/aspera/shares/etc/runit/runlevels/up/mysqld