• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved MariaDB mysqldump error

Simon Z

New Pleskian
Hello,

i have the following problem in the Plesk Onyx Backup Manager and console:

mysqldump: unknown variable 'tmpdir=/var/tmp'


System:
CentOS 7x
MariaDB 10.1

my.cnf:

[mysqld]
bind-address = 127.0.0.1
skip_name_resolve
tmpdir=/var/tmp
log-error=/var/log/mariadb/mariadb.log
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

#optimize

query_cache_type = 1
query_cache_limit = 256K
query_cache_min_res_unit = 2k
query_cache_size = 80M
tmp_table_size= 64M
max_heap_table_size= 64M
innodb_buffer_pool_size=327M
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log
long_query_time = 1
thread_cache_size=4

innodb-defragment=1

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid


tmpdir=/var/tmp

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d

[mysqldump]
tmpdir=/var/tmp


Thanks!
 
Last edited:
Normally MySQL uses the temporary directory defined in the environment variable TMPDIR. If that variable is not set, it uses the system default temporary directory for temporary files. There is no need to enter a definition in the my.cnf file and I am not aware that it is even possible to set it in that file. I suggest to remove both tmpdir-lines from your my.cnf file, then restart MySQL service (or mariadb service, whichever you are using).

If you need a different MySQL temporary storage location, please refer to https://dev.mysql.com/doc/refman/5.7/en/temporary-files.html for a detailed explanation on how to set that. Use "# printenv" to list all environment variables or "# export TMPDIR=yourtempdir" to set it.
 
Back
Top