Author Topic: Mariadb inport errors  (Read 5284 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Mariadb inport errors
« on: May 12, 2019, 06:58:52 PM »
Im having a hard time with one website on my new install.

First it was a problem with followsymlinks that I think I fixed by modifying the single vhost file.

But now I exported dbase from older version cwp.  When I import I get syntax errors from mariadb.

I cant get past the top of the file

-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 12, 2019 at 06:49 PM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 7.0.24

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!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 */;
/*!40101 SET NAMES utf8mb4 */;
« Last Edit: May 12, 2019, 07:00:55 PM by pixelpadre »

Offline
***
Re: Mariadb inport errors
« Reply #1 on: May 12, 2019, 07:51:59 PM »
Its been a reallllllllllly long day today.

Followsymlinks issue took half a day and the dabase import took half a day.

The fix for the database was this.

DO NOT USE EXPORT FUNCTION WITHIN CWP PHPMYADMIN. IT WILL GENERATE A PIECE OF SHIT.

DO A MYSQLDUMP FROM CENTOS SHELL AND YOU WILL GET A USABLE SQL FILE TO IMPORT.

Code: [Select]
[ ~]# mysqldump -u root -p scanmyid_rush > scanmyid_rush.sql

  (FILE OUTPUT WILL BE IN THE DIRECTORY WHERE YOU DID THE DUMP.
« Last Edit: May 12, 2019, 07:55:04 PM by pixelpadre »

Offline
***
Re: Mariadb inport errors
« Reply #2 on: May 12, 2019, 08:18:42 PM »
BTW...password is root mysql password