title: How to view error logs generated by mariadb on CentOS 7
body: <p>I am new to mariadb. Today, I was attempting to import a mysql database to mariadb and during the process the import stops when a warning is encountered as shown below.</p>
  
  <p><a href="https://i.stack.imgur.com/Ge1Nr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ge1Nr.png" alt="enter image description here"></a></p>
  
  <p>Now, I said to myself that I should check a log file so I can see the error but I can't seem to fine any log file. I ran the query below with help from <a href="https://mariadb.com/kb/en/mariadb/get-the-error-log-of-mariadb/" rel="nofollow noreferrer">Get the error log of Mariadb</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/p0fL9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p0fL9.png" alt="enter image description here"></a></p>
  
  <p>As you can see there is no path to an error log file. </p>
  
  <p>Next I checked <code>/var/lib/mysql</code> and below is the dir content:</p>
  
  <pre><code>-rw-rw----. 1 mysql mysql    16384 Jun  5 16:03 aria_log.00000001
  -rw-rw----. 1 mysql mysql       52 Jun  5 16:03 aria_log_control
  -rw-rw----. 1 mysql mysql 79691776 Jun  8 08:02 ibdata1
  -rw-rw----. 1 mysql mysql 50331648 Jun  8 08:02 ib_logfile0
  -rw-rw----. 1 mysql mysql 50331648 Jun  5 16:03 ib_logfile1
  -rw-rw----. 1 mysql mysql        6 Jun  5 16:12 IMSPRO.pid
  drwx------. 2 mysql mysql     4096 Jun  8 08:02 ecommence
  -rw-rw----. 1 mysql mysql        0 Jun  5 16:12 multi-master.info
  drwx--x--x. 2 mysql mysql     4096 Jun  5 16:03 mysql
  srwxrwxrwx. 1 mysql mysql        0 Jun  5 16:12 mysql.sock
  drwx------. 2 mysql mysql       20 Jun  5 16:03 performance_schema
  -rw-rw----. 1 mysql mysql    24576 Jun  5 16:12 tc.log
  </code></pre>
  
  <p>No file in the above dir logs error.</p>
  
  <p>Below is the content of my <code>/etc/my.cnf</code></p>
  
  <pre><code>#
  # This group is read both both by the client and the server
  # use it for options that affect everything
  #
  [client-server]
  
  #
  # include all files from the config directory
  #
  !includedir /etc/my.cnf.d
  </code></pre>
  
  <p>Below is the content of <code>/etc/my.cnf.d</code></p>
  
  <pre><code>drwxr-xr-x.  2 root root  117 Jun  5 16:02 .
  drwxr-xr-x. 91 root root 8192 Jun  7 01:14 ..
  -rw-r--r--.  1 root root  295 May 29 16:48 client.cnf
  -rw-r--r--.  1 root root  763 May 29 16:48 enable_encryption.preset
  -rw-r--r--.  1 root root  232 May 29 16:48 mysql-clients.cnf
  -rw-r--r--.  1 root root 1080 May 29 16:48 server.cnf
  -rw-r--r--.  1 root root  285 May 29 16:48 tokudb.cnf
  </code></pre>
  
  <p>What can I do to get error log?</p>