I see - it was missed because you included it inside the quote of my response. I've removed it so that it is visible to everyone now.
Checking a CentOS 6 server to compare and everything installed appears to be correct:
I tested by running mysqldump manually:
Code:
mysqldump --version
mysqldump Ver 10.17 Distrib 10.3.23-MariaDB, for Linux (x86_64)
Code:
# mysqldump --databases cptest_testdb
-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: cptest_testdb
-- ------------------------------------------------------
-- Server version 10.3.23-MariaDB
/*!40101 SET @[email protected]@CHARACTER_SET_CLIENT */;
/*!40101 SET @[email protected]@CHARACTER_SET_RESULTS */;
/*!40101 SET @[email protected]@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @[email protected]@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @[email protected]@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @[email protected]@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @[email protected]@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @[email protected]@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `cptest_testdb`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `cptest_testdb` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `cptest_testdb`;
/*!40103 SET [email protected]_TIME_ZONE */;
/*!40101 SET [email protected]_SQL_MODE */;
/*!40014 SET F[email protected]_FOREIGN_KEY_CHECKS */;
/*!40014 SET [email protected]_UNIQUE_CHECKS */;
/*!40101 SET [email protected]_CHARACTER_SET_CLIENT */;
/*!40101 SET [email protected]_CHARACTER_SET_RESULTS */;
/*!40101 SET [email protected]_COLLATION_CONNECTION */;
/*!40111 SET [email protected]_SQL_NOTES */;
-- Dump completed on 2020-06-05 0:11:53
Code:
stat /usr/bin/mysqldump
File: `/usr/bin/mysqldump'
Size: 7453976 Blocks: 14560 IO Block: 4096 regular file
Device: fd01h/64769d Inode: 152114 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-06-05 00:11:11.316999926 +0000
Modify: 2020-05-09 22:23:45.000000000 +0000
Change: 2020-06-05 00:02:26.738000017 +0000
Can you provide me the following from your server?
What happens when you try to manually run mysqldump?
Code:
mysqldump --databases $dbname
[
[email protected] ~]# mysqldump --version
mysqldump Ver 10.17 Distrib 10.3.23-MariaDB, for Linux (x86_64)
[
[email protected] ~]# stat /usr/bin/mysqldump
File: `/usr/bin/mysqldump'
Size: 7453976 Blocks: 14584 IO Block: 4096 regular file
Device: fd01h/64769d Inode: 1671211 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-06-04 21:00:49.000000000 -0400
Modify: 2020-05-09 18:23:45.000000000 -0400
Change: 2020-05-29 17:09:03.000000000 -0400
[
[email protected] ~]# mysqldump --databases ********_geodata_test
-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: *********_geodata_test
-- ------------------------------------------------------
-- Server version 10.3.23-MariaDB-log
/*!40101 SET @
[email protected]@CHARACTER_SET_CLIENT */;
/*!40101 SET @
[email protected]@CHARACTER_SET_RESULTS */;
/*!40101 SET @
[email protected]@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @
[email protected]@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @
[email protected]@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @
[email protected]@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @
[email protected]@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @
[email protected]@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `*******_geodata_test`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `*******_geodata_test` /*!40100 DEFAULT CHARACTER SET latin1 */;
This works fine (as I think I mentioned in my OP. Its just the batch backup script that doesnt work.
[
[email protected] ~]# cat /etc/my.cnf
[mysqld]
log-error=/var/lib/mysql/vps.xxxxxxxxxx.com.err
performance-schema=0
slow-query-log=1
long-query-time=1
slow-query-log-file="/var/log/mysql/localhost-slow.log"
default-storage-engine=MyISAM
innodb_file_per_table=1
max_allowed_packet=268435456
init-file = "/usr/share/mysql/mysql_start.sql"
query_cache_type=ON
query_cache_size=16777216
max_connections = 150
open_files_limit=10000
innodb_flush_log_at_trx_commit = 0
I apprecate you looking into this.... im still running manual backups until i can resolve.
Bll