langcog / childes-db-website

http://childes-db.stanford.edu
Other
2 stars 3 forks source link

Download of database dump #25

Closed mitjanikolaus closed 3 years ago

mitjanikolaus commented 4 years ago

I tried downloading a database dump (version 2020.1) using the instructions at http://childes-db.stanford.edu/releases.html . However, the result that I got when writing it into a file was only this (no data was exported):

-- MySQL dump 10.13  Distrib 8.0.21, for Linux (x86_64)
--
-- Host: ec2-54-68-171-132.us-west-2.compute.amazonaws.com    Database: 2020.1
-- ------------------------------------------------------
-- Server version   5.5.59-log

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Current Database: `2020.1`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `2020.1` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `2020.1`;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2020-10-16 19:14:40
sarpu commented 4 years ago

We will update the information shortly, but the address changed, so the server is: ec2-34-212-148-26.us-west-2.compute.amazonaws.com. You should also use the --single-transaction option. We will update all of this soon.

mitjanikolaus commented 3 years ago

Thanks for the quick reply! Unfortunately it still doesn't work. I am getting: mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

(I'm using the username and password from the childes-db.json and using the --single-transaction option.

sarpu commented 3 years ago

Could you try this instead? mysqldump -v -u childesdb -p -h ec2-34-212-148-26.us-west-2.compute.amazonaws.com --single-transaction --no-tablespaces -C --quick --databases 2020.1 And the password is childes-db.json one.

mitjanikolaus commented 3 years ago

This gives me:

-- Connecting to ec2-34-212-148-26.us-west-2.compute.amazonaws.com...
-- MySQL dump 10.13  Distrib 8.0.21, for Linux (x86_64)
--
-- Host: ec2-34-212-148-26.us-west-2.compute.amazonaws.com    Database: 2020.1
-- ------------------------------------------------------
-- Server version   5.7.31-0ubuntu0.16.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-- Starting transaction...

--
-- Current Database: `2020.1`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `2020.1` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `2020.1`;
-- Setting savepoint...
-- Retrieving table structure for table admin...

--
-- Table structure for table `admin`
--

DROP TABLE IF EXISTS `admin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `version` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
-- Sending SELECT query...

--
-- Dumping data for table `admin`
--

-- Retrieving rows...
LOCK TABLES `admin` WRITE;
/*!40000 ALTER TABLE `admin` DISABLE KEYS */;
/*!40000 ALTER TABLE `admin` ENABLE KEYS */;
UNLOCK TABLES;
mysqldump: Couldn't execute 'SELECT COLUMN_NAME,                       JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')                FROM information_schema.COLUMN_STATISTICS                WHERE SCHEMA_NAME = '2020.1' AND TABLE_NAME = 'admin';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109)
sarpu commented 3 years ago

What is your mysqldump version?

mitjanikolaus commented 3 years ago

Ah! I got it: It's because I'm using apparently because I'm using mysql 8. The solution is to use `--column-statistics=0

(https://serverfault.com/questions/912162/mysqldump-throws-unknown-table-column-statistics-in-information-schema-1109)

sarpu commented 3 years ago

Yes I was about to suggest that. Will close the issue after I update the website.