I want to show the createtable time of mysql
table:
I run this in mysql
console
MariaDB [Restaurant]> select CREATE_TIME from information_schema.tables where table_name = 'mytalbe';
+---------------------+
| CREATE_TIME |
+---------------------+
| 2016-06-02 15:38:02 |
| NULL |
+---------------------+
But I run this sentence under python, it goes wrong:
sql='select CREATE_TIME from information_schema.tables where table_name = %s;'
value=('mytalbe',)
result=cur.execute(sql,value)
It throws an exception as:
Warning: Can't find file:'./performance_schema/mytalbe.frm'(errno:13) result=cur.execute(sql,value)
What should I do to get the right result as in mysql? Thanks very much!