diff --git a/config/database.yml.example b/config/database.yml.example index 89b06726f..6df574636 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -7,7 +7,6 @@ default: &default username: <%= ENV.fetch("MYSQL_USER") { 'root' } %> password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %> wait_timeout: 10 - ssl_mode: disabled gitea_server: adapter: mysql2 database: <%= ENV.fetch("MYSQL_DB_GITEA") { 'gitea' } %> diff --git a/lib/tasks/sync_table_structure.rake b/lib/tasks/sync_table_structure.rake index e0eb24d7b..d1484915b 100644 --- a/lib/tasks/sync_table_structure.rake +++ b/lib/tasks/sync_table_structure.rake @@ -17,7 +17,7 @@ namespace :sync_table_structure do puts "bash: mysql -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database}" - system "mysql --ssl-mode='DISABLED' -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database} < #{Rails.root}/db/structure.sql" + system "mysql -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database} < #{Rails.root}/db/structure.sql" puts "init success" end