sql error database on main page - mysql

any idea how to repair this error? I get this error on the main website page
DATABASE ERROR
************************
SELECT SQL_CACHE cid, title_ AS title
FROM ilance_categories
WHERE cattype = 'product'
AND visible = '1'
AND level <= '1'
ORDER BY sort ASC
MySQL Error : Unknown column 'title_' in 'field list'
Error Number : 1054
Date : Aug 12, 2014, 11:33:15
Script : http://www.redsquaretags.com/main.php
Class : ilance_mysql
Location : main
Referrer : Not referred
IP Address : 196.22.238.162
ILance Version : 4.0.0
Build : 8059
SQL Version : 898
MySQL Version : 5.5.37-cll
Server Load : n/a
************************
END DATABASE ERROR
Thank you, that's the only error I have thank you

Related

Restore data from crashed MariaDB

Need to retrieve a mysql dump from suddenly stopped database.
Database worked in kubernetes cluster as a bitnami/mariadb chart of version 6.7.4.
Was configured a slave and month ago it was stopped, but replication process was still in progress.
Database was crashed probably due to lack of disk space (because of huge binary logs )
I have a full snapshot of database data directory.
I have a full database schema, so I tried to install empty schema and replace all empty .idb files into same with data
After replacing and restarting mariadb I see an errors like that:
MariaDB [store]> select * from admin;
ERROR 1932 (42S02): Table 'store.admin' doesn't exist in engine
I ran mysql_upgrade but stil see same errors:
backend % mysql_upgrade -u store -p
Enter password:
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.global_priv OK
mysql.gtid_slave_pos OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.index_stats OK
mysql.innodb_index_stats OK
mysql.innodb_table_stats OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.roles_mapping OK
mysql.servers OK
mysql.table_stats OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables
Processing databases
information_schema
performance_schema
store
store.account
Error : Table 'store.account' doesn't exist in engine
status : Operation failed
store.account_event
Error : Table 'store.account_event' doesn't exist in engine
status : Operation failed
store.account_setting
Error : Table 'store.account_setting' doesn't exist in engine
status : Operation failed
store.admin
Error : Table 'store.admin' doesn't exist in engine
status : Operation failed
store.aggregated_actions_daily
Error : Table 'store.aggregated_actions_daily' doesn't exist in engine
status : Operation failed
store.aggregated_report_daily
Error : Table 'store.aggregated_report_daily' doesn't exist in engine
status : Operation failed
store.aggregated_report_daily_total
Error : Table 'store.aggregated_report_daily_total' doesn't exist in engine
status : Operation failed
store.aggregated_report_monthly
Error : Table 'store.aggregated_report_monthly' doesn't exist in engine
status : Operation failed
store.aggregated_report_weekly
Error : Table 'store.aggregated_report_weekly' doesn't exist in engine
status : Operation failed
store.aggregated_trainer
Error : Table 'store.aggregated_trainer' doesn't exist in engine
status : Operation failed
store.apple_price
Error : Table 'store.apple_price' doesn't exist in engine
status : Operation failed
store.apple_tier_price
Error : Table 'store.apple_tier_price' doesn't exist in engine
status : Operation failed
store.country
Error : Table 'store.country' doesn't exist in engine
status : Operation failed
store.course
Error : Table 'store.course' doesn't exist in engine
status : Operation failed
store.course_container
Error : Table 'store.course_container' doesn't exist in engine
status : Operation failed
store.course_container_course_dietary_program
Error : Table 'store.course_container_course_dietary_program' doesn't exist in engine
status : Operation failed
store.course_container_course_education_program
Error : Table 'store.course_container_course_education_program' doesn't exist in engine
status : Operation failed
store.course_container_course_workout_program
Error : Table 'store.course_container_course_workout_program' doesn't exist in engine
status : Operation failed
store.course_day
Error : Table 'store.course_day' doesn't exist in engine
status : Operation failed
store.course_dietary_program
Error : Table 'store.course_dietary_program' doesn't exist in engine
status : Operation failed
store.course_education_program
Error : Table 'store.course_education_program' doesn't exist in engine
status : Operation failed
store.course_price
Error : Table 'store.course_price' doesn't exist in engine
status : Operation failed
store.course_workout_program
Error : Table 'store.course_workout_program' doesn't exist in engine
status : Operation failed
store.credit_card
Error : Table 'store.credit_card' doesn't exist in engine
status : Operation failed
store.currency_rate
Error : Table 'store.currency_rate' doesn't exist in engine
status : Operation failed
store.daily_nutrition
Error : Table 'store.daily_nutrition' doesn't exist in engine
status : Operation failed
store.daily_recipe
Error : Table 'store.daily_recipe' doesn't exist in engine
status : Operation failed
store.diet
Error : Table 'store.diet' doesn't exist in engine
status : Operation failed
store.diet_recipe
Error : Table 'store.diet_recipe' doesn't exist in engine
status : Operation failed
store.dietary_program
Error : Table 'store.dietary_program' doesn't exist in engine
status : Operation failed
store.dietary_program_day
Error : Table 'store.dietary_program_day' doesn't exist in engine
status : Operation failed
store.education_program
Error : Table 'store.education_program' doesn't exist in engine
status : Operation failed
store.education_program_day
Error : Table 'store.education_program_day' doesn't exist in engine
status : Operation failed
store.exercise
Error : Table 'store.exercise' doesn't exist in engine
status : Operation failed
store.exercise_step
Error : Table 'store.exercise_step' doesn't exist in engine
status : Operation failed
store.file
Error : Table 'store.file' doesn't exist in engine
status : Operation failed
store.food
Error : Table 'store.food' doesn't exist in engine
status : Operation failed
store.food_copy
Error : Table 'store.food_copy' doesn't exist in engine
status : Operation failed
store.lesson
Error : Table 'store.lesson' doesn't exist in engine
status : Operation failed
store.lesson_pack
Error : Table 'store.lesson_pack' doesn't exist in engine
status : Operation failed
store.lesson_pack_lesson
Error : Table 'store.lesson_pack_lesson' doesn't exist in engine
status : Operation failed
store.marathon
Error : Table 'store.marathon' doesn't exist in engine
status : Operation failed
store.marathon_day
Error : Table 'store.marathon_day' doesn't exist in engine
status : Operation failed
store.note
Error : Table 'store.note' doesn't exist in engine
status : Operation failed
store.nutrition
Error : Table 'store.nutrition' doesn't exist in engine
status : Operation failed
store.nutrition_recipe
Error : Table 'store.nutrition_recipe' doesn't exist in engine
status : Operation failed
store.payment_intention
Error : Table 'store.payment_intention' doesn't exist in engine
status : Operation failed
store.payment_transaction
Error : Table 'store.payment_transaction' doesn't exist in engine
status : Operation failed
store.payment_transaction_apple_in_app
Error : Table 'store.payment_transaction_apple_in_app' doesn't exist in engine
status : Operation failed
store.payment_transaction_bt
Error : Table 'store.payment_transaction_bt' doesn't exist in engine
status : Operation failed
store.payment_transaction_cp
Error : Table 'store.payment_transaction_cp' doesn't exist in engine
status : Operation failed
store.payment_transaction_ym
Error : Table 'store.payment_transaction_ym' doesn't exist in engine
status : Operation failed
store.payout_transaction
Error : Table 'store.payout_transaction' doesn't exist in engine
status : Operation failed
store.payout_transaction_payment_transaction
Error : Table 'store.payout_transaction_payment_transaction' doesn't exist in engine
status : Operation failed
store.phone_verification
Error : Table 'store.phone_verification' doesn't exist in engine
status : Operation failed
store.product
Error : Table 'store.product' doesn't exist in engine
status : Operation failed
store.recipe
Error : Table 'store.recipe' doesn't exist in engine
status : Operation failed
store.recipe_food
Error : Table 'store.recipe_food' doesn't exist in engine
status : Operation failed
store.recipe_step
Error : Table 'store.recipe_step' doesn't exist in engine
status : Operation failed
store.sales_order
Error : Table 'store.sales_order' doesn't exist in engine
status : Operation failed
store.sales_order_item
Error : Table 'store.sales_order_item' doesn't exist in engine
status : Operation failed
store.time_slot
Error : Table 'store.time_slot' doesn't exist in engine
status : Operation failed
store.top_group_product
Error : Table 'store.top_group_product' doesn't exist in engine
status : Operation failed
store.top_home_product
Error : Table 'store.top_home_product' doesn't exist in engine
status : Operation failed
store.top_month_product
Error : Table 'store.top_month_product' doesn't exist in engine
status : Operation failed
store.top_product
Error : Table 'store.top_product' doesn't exist in engine
status : Operation failed
store.top_trainer
Error : Table 'store.top_trainer' doesn't exist in engine
status : Operation failed
store.trainer
Error : Table 'store.trainer' doesn't exist in engine
status : Operation failed
store.trainer_action
Error : Table 'store.trainer_action' doesn't exist in engine
status : Operation failed
store.trainer_chat_link
Error : Table 'store.trainer_chat_link' doesn't exist in engine
status : Operation failed
store.trainer_event
Error : Table 'store.trainer_event' doesn't exist in engine
status : Operation failed
store.trainer_event_message OK
store.trainer_notification_task
Error : Table 'store.trainer_notification_task' doesn't exist in engine
status : Operation failed
store.trainer_payout_info
Error : Table 'store.trainer_payout_info' doesn't exist in engine
status : Operation failed
store.trainer_status_message
Error : Table 'store.trainer_status_message' doesn't exist in engine
status : Operation failed
store.training
Error : Table 'store.training' doesn't exist in engine
status : Operation failed
store.training_exercise
Error : Table 'store.training_exercise' doesn't exist in engine
status : Operation failed
store.user
Error : Table 'store.user' doesn't exist in engine
status : Operation failed
store.user_course
Error : Table 'store.user_course' doesn't exist in engine
status : Operation failed
store.user_course_job
Error : Table 'store.user_course_job' doesn't exist in engine
status : Operation failed
store.user_device
Error : Table 'store.user_device' doesn't exist in engine
status : Operation failed
store.user_measurement_activity
Error : Table 'store.user_measurement_activity' doesn't exist in engine
status : Operation failed
store.user_measurement_belly
Error : Table 'store.user_measurement_belly' doesn't exist in engine
status : Operation failed
store.user_measurement_biceps
Error : Table 'store.user_measurement_biceps' doesn't exist in engine
status : Operation failed
store.user_measurement_bust
Error : Table 'store.user_measurement_bust' doesn't exist in engine
status : Operation failed
store.user_measurement_calf
Error : Table 'store.user_measurement_calf' doesn't exist in engine
status : Operation failed
store.user_measurement_gender
Error : Table 'store.user_measurement_gender' doesn't exist in engine
status : Operation failed
store.user_measurement_height
Error : Table 'store.user_measurement_height' doesn't exist in engine
status : Operation failed
store.user_measurement_hips
Error : Table 'store.user_measurement_hips' doesn't exist in engine
status : Operation failed
store.user_measurement_lactation
Error : Table 'store.user_measurement_lactation' doesn't exist in engine
status : Operation failed
store.user_measurement_neck
Error : Table 'store.user_measurement_neck' doesn't exist in engine
status : Operation failed
store.user_measurement_single_hip
Error : Table 'store.user_measurement_single_hip' doesn't exist in engine
status : Operation failed
store.user_measurement_waist
Error : Table 'store.user_measurement_waist' doesn't exist in engine
status : Operation failed
store.user_measurement_weight
Error : Table 'store.user_measurement_weight' doesn't exist in engine
status : Operation failed
store.user_product
Error : Table 'store.user_product' doesn't exist in engine
status : Operation failed
store.user_progress_report
Error : Table 'store.user_progress_report' doesn't exist in engine
status : Operation failed
store.user_progress_report_request
Error : Table 'store.user_progress_report_request' doesn't exist in engine
status : Operation failed
store.user_trainer
Error : Table 'store.user_trainer' doesn't exist in engine
status : Operation failed
store.user_trainer_referrer
Error : Table 'store.user_trainer_referrer' doesn't exist in engine
status : Operation failed
store.video
Error : Table 'store.video' doesn't exist in engine
status : Operation failed
store.workout_program
Error : Table 'store.workout_program' doesn't exist in engine
status : Operation failed
store.workout_program_day
Error : Table 'store.workout_program_day' doesn't exist in engine
status : Operation failed
sys
sys.sys_config OK
test
Repairing tables
store.account
Error : Table 'store.account' doesn't exist in engine
status : Operation failed
store.account_event
Error : Table 'store.account_event' doesn't exist in engine
status : Operation failed
store.account_setting
Error : Table 'store.account_setting' doesn't exist in engine
status : Operation failed
store.admin
Error : Table 'store.admin' doesn't exist in engine
status : Operation failed
store.aggregated_actions_daily
Error : Table 'store.aggregated_actions_daily' doesn't exist in engine
status : Operation failed
store.aggregated_report_daily
Error : Table 'store.aggregated_report_daily' doesn't exist in engine
status : Operation failed
store.aggregated_report_daily_total
Error : Table 'store.aggregated_report_daily_total' doesn't exist in engine
status : Operation failed
store.aggregated_report_monthly
Error : Table 'store.aggregated_report_monthly' doesn't exist in engine
status : Operation failed
store.aggregated_report_weekly
Error : Table 'store.aggregated_report_weekly' doesn't exist in engine
status : Operation failed
store.aggregated_trainer
Error : Table 'store.aggregated_trainer' doesn't exist in engine
status : Operation failed
store.apple_price
Error : Table 'store.apple_price' doesn't exist in engine
status : Operation failed
store.apple_tier_price
Error : Table 'store.apple_tier_price' doesn't exist in engine
status : Operation failed
store.country
Error : Table 'store.country' doesn't exist in engine
status : Operation failed
store.course
Error : Table 'store.course' doesn't exist in engine
status : Operation failed
store.course_container
Error : Table 'store.course_container' doesn't exist in engine
status : Operation failed
store.course_container_course_dietary_program
Error : Table 'store.course_container_course_dietary_program' doesn't exist in engine
status : Operation failed
store.course_container_course_education_program
Error : Table 'store.course_container_course_education_program' doesn't exist in engine
status : Operation failed
store.course_container_course_workout_program
Error : Table 'store.course_container_course_workout_program' doesn't exist in engine
status : Operation failed
store.course_day
Error : Table 'store.payout_transaction_payment_transaction' doesn't exist in engine
status : Operation failed
store.phone_verification
Error : Table 'store.phone_verification' doesn't exist in engine
status : Operation failed
store.product
Error : Table 'store.product' doesn't exist in engine
status : Operation failed
store.recipe
Error : Table 'store.recipe' doesn't exist in engine
status : Operation failed
store.recipe_food
Error : Table 'store.recipe_food' doesn't exist in engine
status : Operation failed
store.recipe_step
Error : Table 'store.recipe_step' doesn't exist in engine
status : Operation failed
store.sales_order
Error : Table 'store.sales_order' doesn't exist in engine
status : Operation failed
store.sales_order_item
Error : Table 'store.sales_order_item' doesn't exist in engine
status : Operation failed
store.time_slot
Error : Table 'store.time_slot' doesn't exist in engine
status : Operation failed
store.top_group_product
Error : Table 'store.top_group_product' doesn't exist in engine
status : Operation failed
store.top_home_product
Error : Table 'store.top_home_product' doesn't exist in engine
status : Operation failed
store.top_month_product
Error : Table 'store.top_month_product' doesn't exist in engine
status : Operation failed
store.top_product
Error : Table 'store.workout_program_day' doesn't exist in engine
status : Operation failed
Phase 7/7: Running 'FLUSH PRIVILEGES'
OK
Is there any way to restore this data?
Thanks in advance!

Tungsten Replicator 4.0 Installation

I am trying to install Tungsten Replicator 4.0 version for Mysql 5.7. I have used binary installation(tar.gz file installation) for Mysql 5.7 and exported path in bash_profile.
./tools/tmp install command got executed successfully but services both master and slave are offline. We are getting below error for service status command.
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl services
Processing services command...
NAME VALUE
---- -----
appliedLastSeqno: -1
appliedLatency : -1.0
role : master
serviceName : beta182_183
serviceType : unknown
started : true
state : OFFLINE:ERROR
NAME VALUE
---- -----
**appliedLastSeqno**:**** **Unknown**
**appliedLatency **:**** **Unknown**
**role** **:** **Unknown**
serviceName : beta183_182
serviceType : Unknown
started : false
state : Unknown
Finished services command...
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl -service beta182_183 status
Processing status command...
NAME VALUE
---- -----
appliedLastEventId : NONE
appliedLastSeqno : -1
appliedLatency : -1.0
autoRecoveryEnabled : true
autoRecoveryTotal : 0
channels : -1
clusterName : beta182_183
currentEventId : NONE
currentTimeMillis : 1579684465335
dataServerHost : beta-388.panterranetworks.net
extensions :
host : beta-388.panterranetworks.net
latestEpochNumber : -1
masterConnectUri : thls://localhost:/
masterListenUri : thls://beta-388.panterranetworks.net:12120/
maximumStoredSeqNo : -1
minimumStoredSeqNo : -1
offlineRequests : NONE
pendingError : Replicator unable to go online due to error
pendingErrorCode : NONE
pendingErrorEventId : NONE
pendingErrorSeqno : -1
pendingExceptionMessage: **Unable to prepare plugin: class name=com.continuent.tungsten.replicator.thl.THL message=[Error while attempting to acquire file lock: /opt/continuent/thl/beta182_183/disklog.lck]**
pipelineSource : UNKNOWN
relativeLatency : -1.0
resourcePrecedence : 99
rmiPort : 10110
role : master
seqnoType : java.lang.Long
serviceName : beta182_183
serviceType : unknown
simpleServiceName : beta182_183
siteName : default
sourceId : beta-388.panterranetworks.net
state : OFFLINE:ERROR
timeInStateSeconds : 15.744
timezone : GMT
transitioningTo :
uptimeSeconds : 15.931
useSSLConnection : true
version : Tungsten Replicator 4.0.0 build 18
Finished status command...
Can anyone please share how to resolve the error? I have tried multiple times with giving all permissions to the file and also uninstalled and reinstalled the tungsten.
Mysql version 5.7 is not support tungsten version 4.0,
https://docs.continuent.com/tungsten-replicator-4.0/introduction.html
Shared your config replicator!

Not able to create mysql user with AWSAuthenticationPlugin with terraform

I am trying to create a MySQL user to use with IAM, and I am using terraform to do this.
This is what I am trying to accomplish :
CREATE USER 'lambda' IDENTIFIED WITH AWSAuthenticationPlugin as 'RDS';
with
provider "mysql" {
alias = "kadamb-test"
endpoint = "${aws_db_instance.kadamb-test.endpoint}"
username = "${aws_db_instance.kadamb-test.username}"
password = "${aws_db_instance.kadamb-test.password}"
}
resource "mysql_user" "kadamb-test-iam-user" {
provider = "mysql.kadamb-test"
user = "kadamb_test_user"
host = "%"
auth_plugin = "AWSAuthenticationPlugin"
tls_option = ""
}
This is the output when I am running terraform-apply:
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ mysql_user.kadamb-test-iam-user
id: <computed>
auth_plugin: "AWSAuthenticationPlugin"
host: "%"
user: "kadamb_test_user"
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
mysql_user.kadamb-test-iam-user: Creating...
auth_plugin: "" => "AWSAuthenticationPlugin"
host: "" => "%"
user: "" => "kadamb_test_user"
Error: Error applying plan:
1 error(s) occurred:
* mysql_user.kadamb-test-iam-user: 1 error(s) occurred:
* mysql_user.kadamb-test-iam-user: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
I am reading the documentation and trying to debug what is going wrong, but couldn't find anything.
Can anyone help me with this?
Just changing tls_option = "" to tls_option = "NONE", solved my problem.
I am not sure, how and what difference did it make, but I was able to create the user with this.

Can not Connect to a database on Redshift in R by RODBC package

I am trying to connect to A DB on Redshift in r using following syntax (I am using a Mac):
odbcConnect("xxxxaddresss.redshift.amazonaws.com:5439", uid = "xxxx", pwd = "xxxx")
and get the following errors.
Warning messages:
1: In
RODBC::odbcDriverConnect("DSN=xxxxaddresss.redshift.amazonaws.com:5439;UID=xxxx;PWD=xxxx")
: [RODBC] ERROR: state IM012, code 0, message [unixODBC][Driver
Manager]DRIVER keyword syntax error
2: In
RODBC::odbcDriverConnect("DSN=xxxxaddresss.redshift.amazonaws.com:5439;UID=xxxx;PWD=xxxx")
:
ODBC connection failed
What is the reason of the problem?

Rails invalid date error

Im using this gem to setup a calendar in my app. Everything is working fine except the arrows that change the month.. Getting the following error:
ArgumentError in UsersController#show
invalid date
Rails.root: /Users/nelsonkeating/Desktop/ReminDeal
Application Trace | Framework Trace | Full Trace
app/controllers/users_controller.rb:13:in `show'
Request
Parameters:
{"month"=>"2012-06",
"id"=>"7"}
users_controller.rb
def show
#user = User.find(params[:id])
#friends = #user.friends.paginate(page: params[:page])
#date = params[:month] ? Date.parse(params[:month]) : Date.today
end
Console:
Started GET "/users/7?month=2012-06" for 127.0.0.1 at 2012-05-29 21:30:04 -0700
Processing by UsersController#show as HTML
Parameters: {"month"=>"2012-06", "id"=>"7"}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "7"]]
Completed 500 Internal Server Error in 33ms
ArgumentError (invalid date):
app/controllers/users_controller.rb:13:in `show'
It is cause due to improper format of the date, the date format is either "%Y-%m-%d" or"%d-%m-%Y" since you have just pass the parameter i.e.
{"month"=>"2012-06", "id"=>"7"}
you should send the parameter
{"month"=>"2012-06-27", "id"=>"7"}
you should send the date also
I had the same problem and solve by adding day in the date parameter.
Hope this will help you.
It is Date.parse("2012-06") causing the error.
If the date is not significant, you may try this: Date.parse("#{params[:month]}-01")