February 2018
Intermediate to advanced
510 pages
16h 10m
English
In cases where you are facing an issue in MySQL client you can also debug within MySQL client as well, but in order to do so you must have the integrated debug package. You need to configure MySQL with -DWITH_DEBUG=1 to enable debugging in MySQL client.
Prior to running MySQL client, you should set the environment variable MYSQL_DEBUG as follows:
shell> MYSQL_DEBUG=d:t:O,/tmp/client.trace shell> export MYSQL_DEBUG
This makes MySQL client generate a trace file in /tmp/client.trace for Unix or \client.trace for Windows.
In cases where you have problems with your own client code, you can attempt to connect to the server by running your query using the client that is known to work. For doing this you should run mysqld
Read now
Unlock full access