0

When I query

SELECT * FROM INFORMATION_SCHEMA.PARTITIONS;

it returns this error:

CODE[1146] MSG[Table 'EmailRecord.PARTITIONS' doesn't exist].

It works fine with the current schema, but I can't access any other schema.

I managed to access other schema in the workbench.

  • Mysql version: 5.7.18-0ubuntu0.16.04.1
  • C api: mysql/mysql.h
  • Current schema: EmailRecord
J. Chomel
  • 8,193
  • 15
  • 41
  • 69
wa56
  • 331
  • 2
  • 13

1 Answers1

0

This was solved and should be posted as an answer:

OP solution is :

Remove parameter MYSQL_OPT_RECONNECT when mysql_real_connect()

Too bad we don't have more source to chew on and help others, like e.g. here, there...

J. Chomel
  • 8,193
  • 15
  • 41
  • 69