skip to Main Content

Enter time stamp into MySQL column – PHP Versions

I've recently upgraded MySQL to version 5.7.35 and PHP to version 7.4.21. This PHP script is failing to enter the data into 'my_table' $hoje = date("Y-m-d H:i:s"); $stmt = $db->prepare("INSERT INTO my_table(teste_id,data) VALUES (:ftesteid, :fdata)"); $stmt->bindParam(':ftesteid', $testeMaisRecente, PDO::PARAM_INT); $stmt->bindParam(':fdata', $hoje,…

VIEW QUESTION

Still can't enable the slow query log – CentOS

Environment This is my environment: System: CentOS 7 virtual machine, created by virtualbox, only mysql installed MySQL: 5.7.35 Setup MySQL by this chinese toturial: link my.cnf: [mysqld] # slow query log slow_query_log=on slow_query_log_file=/var/log/mysql/slow_query.log long_query_time=1 # UTF-8 collation-server=utf8_general_ci init-connect='SET NAMES utf8'…

VIEW QUESTION
Back To Top
Search