fumerolles Posted February 12, 2021 Share Posted February 12, 2021 Hi all I buy a module and the graphical interface of the mudule doesn't allow me to do what I want, but I suppose the module contain all nessesary functions. The dev have no time for a custom dev, so I wish to analyse the SQL request that this module do. I tried to activate the mysqlbinlog but the output is in binary mode, I can't read it. mysqlbinlog mysql-bin.000001 Do you know a method to see the SQL requests Prestashop send to MySQL ? (debug mode, log file, whatever) Thanks ! Nicolas Link to comment Share on other sites More sharing options...
fumerolles Posted February 12, 2021 Author Share Posted February 12, 2021 Hello I found this solution : In /etc/mysql/mysql.conf.d/mysqld.cnf general_log_file = /var/log/mysql/mysql.log general_log = 1 Then all request are clean and readable. Link to comment Share on other sites More sharing options...
musicmaster Posted February 12, 2021 Share Posted February 12, 2021 You can also do that within Prestashop: - Edit /config/defines.inc.php - set _PS_DEBUG_PROFILING_ to true When you now open a page in your front or backoffice you will find below the real page a long list of sql queries with additional information like where they are in code and how long they took. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now