mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fix mysql init for ubuntu 16.04
This commit is contained in:
parent
1820107da2
commit
65eb4c7fe8
2 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,6 @@ read_rnd_buffer_size = 4M
|
||||||
myisam_sort_buffer_size = 64M
|
myisam_sort_buffer_size = 64M
|
||||||
thread_cache_size = 8
|
thread_cache_size = 8
|
||||||
query_cache_size= 16M
|
query_cache_size= 16M
|
||||||
thread_concurrency = 8
|
|
||||||
|
|
||||||
#innodb_use_native_aio = 0
|
#innodb_use_native_aio = 0
|
||||||
innodb_file_per_table
|
innodb_file_per_table
|
||||||
|
|
|
@ -932,7 +932,9 @@ if [ "$mysql" = 'yes' ]; then
|
||||||
|
|
||||||
# Configuring MySQL/MariaDB
|
# Configuring MySQL/MariaDB
|
||||||
wget $vestacp/mysql/$mycnf -O /etc/mysql/my.cnf
|
wget $vestacp/mysql/$mycnf -O /etc/mysql/my.cnf
|
||||||
|
if [ "$release" != '16.04' ]; then
|
||||||
mysql_install_db
|
mysql_install_db
|
||||||
|
fi
|
||||||
update-rc.d mysql defaults
|
update-rc.d mysql defaults
|
||||||
service mysql start
|
service mysql start
|
||||||
check_result $? "mysql start failed"
|
check_result $? "mysql start failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue