Ошибка при импорте базы данных phpmyadmin

Ошибка при импорте базы данных в phpMyAdmin

Невозможность загрузки (импорта файла базы данных) в phpMyAdmin в панели управления Vesta (CentOS). Сообщение о превышении максимально-допустимого к загрузке размера файла (upload_max_filesize).

Панель управления сайтами Vesta мне понравилась с первого раза. Бесплатная и ничего лишнего, очень минималистично и при этом функционально. Однако уже не первая ошибка в «Весте», которая заставила меня поломать голову. На этот раз проблема касалась upload_max_filesize. Значения никак не хотели меняться. Но давайте по порядку:

Если значения upload_max_filesize поддаются изменению

Ошибка в базе данных на английском:

You probably tried to upload a file that is too large. Please refer to documentation for a workaround for this limit.

Для исправления надо перейти во вкладку Server. Дальше навести мышку на httpd, выбрать CONFIGURE. Перейти во вкладку HTTPD CONFIGURE PHP.INI.

И здесь поменять значение upload_max_filesize.

Если значения upload_max_filesize не изменяются

Вообще-то по-умолчанию значения должны меняться через панель, но это у меня не всегда происходило. Сам файл конфигурации в панели однажды оказался пустым.

vesta_php-ini
Изменение в его значениях ни к чему не приводили.

Пришлось менять всё вручную. Сначала я нашел все файлы php.ini у себя на сервере:

Было не мало файлов:

/tmp/tmp.sfsdf48wmWo4vX/vesta/src/rpm/conf/php.ini
/etc/php70/php.ini
/etc/php71/php.ini
/etc/php.ini
/etc/php52/php.ini
/etc/php54/php.ini
/etc/php55/php.ini
/etc/php56/php.ini
/etc/php53/php.ini

Из них данные были только в файлах /etc/php.ini и в /tmp/. Остальные оказались пустыми. В поисках решения я даже удалил все файлы и тоже ничего не изменилось.

Решение как изменить значение upload_max_filesize в панели Vesta (CentOS) я всё-таки обнаружил. Значения хоть и изменились, но MySQL по-прежнему не хотел импортировать файл в 3 мб, ругаясь на размер файла.

Как изменить upload_max_filesize в файле php.ini панели управления Vesta (CentOS)

Создаем файл на сервере:

Заходим в него через адресную строку браузера:

https://ploshadka.net/info.php

Находим строчку:

Смотрим значение справа (у меня это было):

Значит сервер использует конфигурацию PHP по адресу — /etc/php56/php.ini

Копируем в этот файл конфигурацию по-умолчанию:

cp /etc/php.ini /etc/php56/php.ini

Правим сам файл /etc/php56/php.ini, изменяем значение upload_max_filesize на 30М.

Перезагружаем сервер

Теперь в файле info.php отображается правильный upload_max_filesize.

Однако это не помогло импортировать базу данных MySQL. PhpMyAdmin всё также ругался на размер файла. Потому пришлось импортировать его через терминал.

Импорт базы данных MySQL через SSH

Если предыдущие способы не помогли импортировать базу данных MySQL, остаётся способ воспользоваться импортом через консоль.

Кладем файл в любую папку на сервере. При этом файл базы данных должен быть разархивированным. Затем воспользуемся командой:

mysql -u username -p database name < /path_to_MySQL_upload/name.sql

После ввода этой команды появится требование ввести пароль от базы данных. Вводим пароль и база будет импортирована.

Путь должен быть абсолютным, от корня главного раздела, например:

/home/admin/web/sait/public_html/

Загрузка резервной копии (бэкапа) базы данных с помощью phpMyAdmin через панель управления

Arnas Damasickis avatar

Автор: Arnas Damasickis

Обновлено более недели назад

Если Вы хотите импортировать резервную копию своей базы данных с помощью phpMyAdmin, Вам необходимо:

1. Перейти в меню Хостинг → Базы данных → ↓ возле нужной базы → phpMyAdmin:

2. Нажмите на имя базыИмпорт. Если не нажать на имя базы, при импорте могут появиться ошибки.
3. В открывшейся вкладке нажмите Выберите файл, выберите файл Вашей базы данных (в формате .sql или .sql.zip) и Выполнить:

Готово — Ваша база данных загружена! :)

Возможные проблемы при импорте базы данных

База данных слишком большая

Если при попытке импортировать БД, Вы получаете ошибку 502 или 503, возможно, файл слишком большой. Максимальный размер базы данных, которую можно загрузить через phpMyAdmin, составляет 256 МБ. Если файл базы данных больше, можете легко импортировать его через SSH.

Неверный параметр формата

При импорте базы данных убедитесь, что Ваш файл имеет формат .sql. Вы также можете импортировать сжатый файл .sql со следующими типами сжатия: gzip, bzip2, zip (например, file.sql.zip). Эта ошибка также может означать повреждённый файл базы данных.

Ошибка выполнения запроса: command denied to user

Если Вы видите эту ошибку, это означает, что у пользователя Вашей базы данных недостаточно прав для её импорта (англ.).

Ошибка доступа: Access is denied. You need the SUPER privilege for this operation

Эта ошибка означает, что Ваша база данных включает запросы, для выполнения которых требуются привилегии SUPER. В этом случае проверьте файл .sql и посмотрите можно ли удалить эти запросы. После того как Вы удалите их с помощью любого текстового редактора на Ваш выбор, базу данных можно будет импортировать.

Если эти запросы необходимы, стоит рассмотреть вариант перехода на один из наших планов VPS (VPS для Клиентов из России, VPS для Клиентов из Украины).

Вот и всё! Теперь Вы знаете, как импортировать базу данных MySQL.

ПРИМЕЧАНИЯ:

  • Перед импортом новой резервной копии настоятельно рекомендуем убедиться, что Ваша база данных пуста.

  • Как импортировать БД через SHH?

  • Вы также можете проверить нашу коллекцию руководств связанных с MySQL

  • После загрузки базы на сайте появилась Ошибка соединения с базой данных? Проверьте это руководство.

Здравствуйте! Я тут занимался приватным сервером в игре и при переносе базы данных выскакивает ошибка: #1046 — База данных не выбрана.
Что очень странно ведь я установил туда файл : database.sql пытался и вручную через вкладку SQL

-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Počítač: localhost
-- Vytvořeno: Čtv 29. bře 2018, 19:23
-- Verze serveru: 10.1.23-MariaDB-9+deb9u1
-- Verze PHP: 7.1.12-1+0~20171129100725.11+jessie~1.gbp8ded15

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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 */;

--
-- Databáze: `public_cvoltongdps`
--

-- --------------------------------------------------------

--
-- Struktura tabulky `acccomments`
--

CREATE TABLE `acccomments` (
  `userID` int(11) NOT NULL,
  `userName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `comment` longtext COLLATE utf8_unicode_ci NOT NULL,
  `secret` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `commentID` int(11) NOT NULL,
  `timestamp` int(11) NOT NULL,
  `likes` int(11) NOT NULL DEFAULT '0',
  `isSpam` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `accounts`
--

CREATE TABLE `accounts` (
  `userName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `secret` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `accountID` int(11) NOT NULL,
  `saveData` longtext COLLATE utf8_unicode_ci NOT NULL,
  `isAdmin` int(11) NOT NULL DEFAULT '0',
  `userID` int(11) NOT NULL DEFAULT '0',
  `friends` varchar(1024) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `blockedBy` varchar(1024) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `blocked` varchar(1024) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `mS` int(11) NOT NULL DEFAULT '0',
  `frS` int(11) NOT NULL DEFAULT '0',
  `cS` int(11) NOT NULL DEFAULT '0',
  `youtubeurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `twitter` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `twitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `registerDate` int(11) NOT NULL DEFAULT '0',
  `friendsCount` int(11) NOT NULL DEFAULT '0',
  `saveKey` blob NOT NULL,
  `discordID` bigint(20) NOT NULL DEFAULT '0',
  `discordLinkReq` bigint(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `actions`
--

CREATE TABLE `actions` (
  `ID` int(11) NOT NULL,
  `type` int(11) NOT NULL DEFAULT '0',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `timestamp` int(11) NOT NULL DEFAULT '0',
  `value2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `value3` int(11) NOT NULL DEFAULT '0',
  `value4` int(11) NOT NULL DEFAULT '0',
  `value5` int(11) NOT NULL DEFAULT '0',
  `value6` int(11) NOT NULL DEFAULT '0',
  `account` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `bannedips`
--

CREATE TABLE `bannedips` (
  `IP` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '127.0.0.1',
  `ID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `blocks`
--

CREATE TABLE `blocks` (
  `ID` int(11) NOT NULL,
  `person1` int(11) NOT NULL,
  `person2` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `comments`
--

CREATE TABLE `comments` (
  `userID` int(11) NOT NULL,
  `userName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `comment` longtext COLLATE utf8_unicode_ci NOT NULL,
  `secret` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none',
  `levelID` int(11) NOT NULL,
  `commentID` int(11) NOT NULL,
  `timestamp` int(11) NOT NULL,
  `likes` int(11) NOT NULL DEFAULT '0',
  `percent` int(11) NOT NULL DEFAULT '0',
  `isSpam` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `cpshares`
--

CREATE TABLE `cpshares` (
  `shareID` int(11) NOT NULL,
  `levelID` int(11) NOT NULL,
  `userID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `dailyfeatures`
--

CREATE TABLE `dailyfeatures` (
  `feaID` int(11) NOT NULL,
  `levelID` int(11) NOT NULL,
  `timestamp` int(11) NOT NULL,
  `type` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `friendreqs`
--

CREATE TABLE `friendreqs` (
  `accountID` int(11) NOT NULL,
  `toAccountID` int(11) NOT NULL,
  `comment` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `uploadDate` int(11) NOT NULL,
  `ID` int(11) NOT NULL,
  `isNew` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `friendships`
--

CREATE TABLE `friendships` (
  `ID` int(11) NOT NULL,
  `person1` int(11) NOT NULL,
  `person2` int(11) NOT NULL,
  `isNew1` int(11) NOT NULL,
  `isNew2` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `gauntlets`
--

CREATE TABLE `gauntlets` (
  `ID` int(11) NOT NULL,
  `level1` int(11) NOT NULL,
  `level2` int(11) NOT NULL,
  `level3` int(11) NOT NULL,
  `level4` int(11) NOT NULL,
  `level5` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `levels`
--

CREATE TABLE `levels` (
  `gameVersion` int(11) NOT NULL,
  `binaryVersion` int(11) NOT NULL DEFAULT '0',
  `userName` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `levelID` int(11) NOT NULL,
  `levelName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `levelDesc` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `levelVersion` int(11) NOT NULL,
  `levelLength` int(11) NOT NULL DEFAULT '0',
  `audioTrack` int(11) NOT NULL,
  `auto` int(11) NOT NULL,
  `password` int(11) NOT NULL,
  `original` int(11) NOT NULL,
  `twoPlayer` int(11) NOT NULL DEFAULT '0',
  `songID` int(11) NOT NULL DEFAULT '0',
  `objects` int(11) NOT NULL DEFAULT '0',
  `coins` int(11) NOT NULL DEFAULT '0',
  `requestedStars` int(11) NOT NULL DEFAULT '0',
  `extraString` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `levelString` longtext COLLATE utf8_unicode_ci,
  `levelInfo` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `secret` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `starDifficulty` int(11) NOT NULL DEFAULT '0' COMMENT '0=N/A 10=EASY 20=NORMAL 30=HARD 40=HARDER 50=INSANE 50=AUTO 50=DEMON',
  `downloads` int(11) NOT NULL DEFAULT '300',
  `likes` int(11) NOT NULL DEFAULT '100',
  `starDemon` int(1) NOT NULL DEFAULT '0',
  `starAuto` varchar(11) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `starStars` int(11) NOT NULL DEFAULT '0',
  `uploadDate` varchar(1337) COLLATE utf8_unicode_ci NOT NULL,
  `updateDate` bigint(11) NOT NULL,
  `rateDate` bigint(20) NOT NULL DEFAULT '0',
  `starCoins` int(11) NOT NULL DEFAULT '0',
  `starFeatured` int(11) NOT NULL DEFAULT '0',
  `starHall` int(11) NOT NULL DEFAULT '0',
  `starEpic` int(11) NOT NULL DEFAULT '0',
  `starDemonDiff` int(11) NOT NULL DEFAULT '0',
  `userID` int(11) NOT NULL,
  `extID` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `unlisted` int(11) NOT NULL,
  `originalReup` int(11) NOT NULL DEFAULT '0' COMMENT 'used for levelReupload.php',
  `hostname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isCPShared` int(11) NOT NULL DEFAULT '0',
  `isDeleted` int(11) NOT NULL DEFAULT '0',
  `isLDM` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `levelscores`
--

CREATE TABLE `levelscores` (
  `scoreID` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `levelID` int(11) NOT NULL,
  `percent` int(11) NOT NULL,
  `uploadDate` int(11) NOT NULL,
  `attempts` int(11) NOT NULL DEFAULT '0',
  `coins` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `links`
--

CREATE TABLE `links` (
  `ID` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `targetAccountID` int(11) NOT NULL,
  `server` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `timestamp` int(11) NOT NULL,
  `userID` int(11) NOT NULL,
  `targetUserID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `mappacks`
--

CREATE TABLE `mappacks` (
  `ID` int(11) NOT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `levels` varchar(512) COLLATE utf8_unicode_ci NOT NULL COMMENT 'entered as "ID of level 1, ID of level 2, ID of level 3" for example "13,14,15" (without the "s)',
  `stars` int(11) NOT NULL,
  `coins` int(11) NOT NULL,
  `difficulty` int(11) NOT NULL,
  `rgbcolors` varchar(11) COLLATE utf8_unicode_ci NOT NULL COMMENT 'entered as R,G,B',
  `colors2` varchar(11) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `messages`
--

CREATE TABLE `messages` (
  `userID` int(11) NOT NULL,
  `userName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `body` longtext COLLATE utf8_unicode_ci NOT NULL,
  `subject` longtext COLLATE utf8_unicode_ci NOT NULL,
  `accID` int(11) NOT NULL,
  `messageID` int(11) NOT NULL,
  `toAccountID` int(11) NOT NULL,
  `timestamp` int(11) NOT NULL,
  `secret` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unused',
  `isNew` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `modactions`
--

CREATE TABLE `modactions` (
  `ID` int(11) NOT NULL,
  `type` int(11) NOT NULL DEFAULT '0',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `timestamp` int(11) NOT NULL DEFAULT '0',
  `value2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `value3` int(11) NOT NULL DEFAULT '0',
  `value4` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `value5` int(11) NOT NULL DEFAULT '0',
  `value6` int(11) NOT NULL DEFAULT '0',
  `account` int(11) NOT NULL DEFAULT '0',
  `value7` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `modipperms`
--

CREATE TABLE `modipperms` (
  `categoryID` int(11) NOT NULL,
  `actionFreeCopy` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Struktura tabulky `modips`
--

CREATE TABLE `modips` (
  `ID` int(11) NOT NULL,
  `IP` varchar(69) COLLATE utf8_unicode_ci NOT NULL,
  `isMod` int(11) NOT NULL,
  `accountID` int(11) NOT NULL,
  `modipCategory` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `poll`
--

CREATE TABLE `poll` (
  `accountID` int(11) NOT NULL,
  `pollOption` varchar(255) NOT NULL,
  `optionID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Struktura tabulky `quests`
--

CREATE TABLE `quests` (
  `ID` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `reward` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `reports`
--

CREATE TABLE `reports` (
  `ID` int(11) NOT NULL,
  `levelID` int(11) NOT NULL,
  `hostname` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `roleassign`
--

CREATE TABLE `roleassign` (
  `assignID` bigint(20) NOT NULL,
  `roleID` bigint(20) NOT NULL,
  `accountID` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Struktura tabulky `roles`
--

CREATE TABLE `roles` (
  `roleID` bigint(11) NOT NULL,
  `priority` int(11) NOT NULL DEFAULT '0',
  `roleName` varchar(255) NOT NULL,
  `commandRate` int(11) NOT NULL DEFAULT '0',
  `commandFeature` int(11) NOT NULL DEFAULT '0',
  `commandEpic` int(11) NOT NULL DEFAULT '0',
  `commandUnepic` int(11) NOT NULL DEFAULT '0',
  `commandVerifycoins` int(11) NOT NULL DEFAULT '0',
  `commandDaily` int(11) NOT NULL DEFAULT '0',
  `commandWeekly` int(11) NOT NULL DEFAULT '0',
  `commandDelete` int(11) NOT NULL DEFAULT '0',
  `commandSetacc` int(11) NOT NULL DEFAULT '0',
  `commandRenameOwn` int(11) NOT NULL DEFAULT '1',
  `commandRenameAll` int(11) NOT NULL DEFAULT '0',
  `commandPassOwn` int(11) NOT NULL DEFAULT '1',
  `commandPassAll` int(11) NOT NULL DEFAULT '0',
  `commandDescriptionOwn` int(11) NOT NULL DEFAULT '1',
  `commandDescriptionAll` int(11) NOT NULL DEFAULT '0',
  `commandPublicOwn` int(11) NOT NULL DEFAULT '1',
  `commandPublicAll` int(11) NOT NULL DEFAULT '0',
  `commandUnlistOwn` int(11) NOT NULL DEFAULT '1',
  `commandUnlistAll` int(11) NOT NULL DEFAULT '0',
  `commandSharecpOwn` int(11) NOT NULL DEFAULT '1',
  `commandSharecpAll` int(11) NOT NULL DEFAULT '0',
  `commandSongOwn` int(11) NOT NULL DEFAULT '1',
  `commandSongAll` int(11) NOT NULL DEFAULT '0',
  `profilecommandDiscord` int(11) NOT NULL DEFAULT '1',
  `actionRateDemon` int(11) NOT NULL DEFAULT '0',
  `actionRateStars` int(11) NOT NULL DEFAULT '0',
  `actionRateDifficulty` int(11) NOT NULL DEFAULT '0',
  `actionRequestMod` int(11) NOT NULL DEFAULT '0',
  `toolLeaderboardsban` int(11) NOT NULL DEFAULT '0',
  `toolPackcreate` int(11) NOT NULL DEFAULT '0',
  `toolModactions` int(11) NOT NULL DEFAULT '0',
  `dashboardModTools` int(11) NOT NULL DEFAULT '0',
  `modipCategory` int(11) NOT NULL DEFAULT '0',
  `isDefault` int(11) NOT NULL DEFAULT '0',
  `commentColor` varchar(11) NOT NULL DEFAULT '000,000,000',
  `modBadgeLevel` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Struktura tabulky `songs`
--

CREATE TABLE `songs` (
  `ID` int(11) NOT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `authorID` int(11) NOT NULL,
  `authorName` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `size` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `download` varchar(1337) COLLATE utf8_unicode_ci NOT NULL,
  `hash` varchar(256) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `isDisabled` int(11) NOT NULL DEFAULT '0',
  `levelsCount` int(11) NOT NULL DEFAULT '0',
  `reuploadTime` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Struktura tabulky `users`
--

CREATE TABLE `users` (
  `isRegistered` int(11) NOT NULL,
  `userID` int(11) NOT NULL,
  `extID` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `userName` varchar(69) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'undefined',
  `stars` int(11) NOT NULL DEFAULT '0',
  `demons` int(11) NOT NULL DEFAULT '0',
  `icon` int(11) NOT NULL DEFAULT '0',
  `color1` int(11) NOT NULL DEFAULT '0',
  `color2` int(11) NOT NULL DEFAULT '3',
  `iconType` int(11) NOT NULL DEFAULT '0',
  `coins` int(11) NOT NULL DEFAULT '0',
  `userCoins` int(11) NOT NULL DEFAULT '0',
  `special` int(11) NOT NULL DEFAULT '0',
  `gameVersion` int(11) NOT NULL DEFAULT '0',
  `secret` varchar(69) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none',
  `accIcon` int(11) NOT NULL DEFAULT '0',
  `accShip` int(11) NOT NULL DEFAULT '0',
  `accBall` int(11) NOT NULL DEFAULT '0',
  `accBird` int(11) NOT NULL DEFAULT '0',
  `accDart` int(11) NOT NULL DEFAULT '0',
  `accRobot` int(11) DEFAULT '0',
  `accGlow` int(11) NOT NULL DEFAULT '0',
  `creatorPoints` double NOT NULL DEFAULT '0',
  `IP` varchar(69) COLLATE utf8_unicode_ci NOT NULL DEFAULT '127.0.0.1',
  `lastPlayed` int(11) NOT NULL DEFAULT '0',
  `diamonds` int(11) NOT NULL DEFAULT '0',
  `orbs` int(11) NOT NULL DEFAULT '0',
  `completedLvls` int(11) NOT NULL DEFAULT '0',
  `accSpider` int(11) NOT NULL DEFAULT '0',
  `accExplosion` int(11) NOT NULL DEFAULT '0',
  `chest1time` int(11) NOT NULL DEFAULT '0',
  `chest2time` int(11) NOT NULL DEFAULT '0',
  `chest1count` int(11) NOT NULL DEFAULT '0',
  `chest2count` int(11) NOT NULL DEFAULT '0',
  `isBanned` int(11) NOT NULL DEFAULT '0',
  `isCreatorBanned` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Klíče pro exportované tabulky
--

--
-- Klíče pro tabulku `acccomments`
--
ALTER TABLE `acccomments`
  ADD PRIMARY KEY (`commentID`),
  ADD KEY `userID` (`userID`);

--
-- Klíče pro tabulku `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`accountID`),
  ADD UNIQUE KEY `userName` (`userName`),
  ADD KEY `isAdmin` (`isAdmin`);

--
-- Klíče pro tabulku `actions`
--
ALTER TABLE `actions`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `bannedips`
--
ALTER TABLE `bannedips`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `blocks`
--
ALTER TABLE `blocks`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `ID` (`ID`);

--
-- Klíče pro tabulku `comments`
--
ALTER TABLE `comments`
  ADD PRIMARY KEY (`commentID`),
  ADD KEY `levelID` (`levelID`);

--
-- Klíče pro tabulku `cpshares`
--
ALTER TABLE `cpshares`
  ADD PRIMARY KEY (`shareID`);

--
-- Klíče pro tabulku `dailyfeatures`
--
ALTER TABLE `dailyfeatures`
  ADD PRIMARY KEY (`feaID`);

--
-- Klíče pro tabulku `friendreqs`
--
ALTER TABLE `friendreqs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `toAccountID` (`toAccountID`);

--
-- Klíče pro tabulku `friendships`
--
ALTER TABLE `friendships`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `person1` (`person1`),
  ADD KEY `person2` (`person2`),
  ADD KEY `isNew1` (`isNew1`),
  ADD KEY `isNew2` (`isNew2`);

--
-- Klíče pro tabulku `gauntlets`
--
ALTER TABLE `gauntlets`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `level5` (`level5`);

--
-- Klíče pro tabulku `levels`
--
ALTER TABLE `levels`
  ADD PRIMARY KEY (`levelID`),
  ADD KEY `levelID` (`levelID`),
  ADD KEY `levelName` (`levelName`),
  ADD KEY `starDifficulty` (`starDifficulty`),
  ADD KEY `starFeatured` (`starFeatured`),
  ADD KEY `starEpic` (`starEpic`),
  ADD KEY `starDemonDiff` (`starDemonDiff`),
  ADD KEY `userID` (`userID`),
  ADD KEY `likes` (`likes`),
  ADD KEY `downloads` (`downloads`),
  ADD KEY `starStars` (`starStars`),
  ADD KEY `songID` (`songID`),
  ADD KEY `audioTrack` (`audioTrack`),
  ADD KEY `levelLength` (`levelLength`),
  ADD KEY `twoPlayer` (`twoPlayer`);

--
-- Klíče pro tabulku `levelscores`
--
ALTER TABLE `levelscores`
  ADD PRIMARY KEY (`scoreID`),
  ADD KEY `levelID` (`levelID`);

--
-- Klíče pro tabulku `links`
--
ALTER TABLE `links`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `mappacks`
--
ALTER TABLE `mappacks`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `messages`
--
ALTER TABLE `messages`
  ADD PRIMARY KEY (`messageID`),
  ADD KEY `toAccountID` (`toAccountID`);

--
-- Klíče pro tabulku `modactions`
--
ALTER TABLE `modactions`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `modipperms`
--
ALTER TABLE `modipperms`
  ADD PRIMARY KEY (`categoryID`);

--
-- Klíče pro tabulku `modips`
--
ALTER TABLE `modips`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `poll`
--
ALTER TABLE `poll`
  ADD PRIMARY KEY (`optionID`);

--
-- Klíče pro tabulku `quests`
--
ALTER TABLE `quests`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `reports`
--
ALTER TABLE `reports`
  ADD PRIMARY KEY (`ID`);

--
-- Klíče pro tabulku `roleassign`
--
ALTER TABLE `roleassign`
  ADD PRIMARY KEY (`assignID`);

--
-- Klíče pro tabulku `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`roleID`);

--
-- Klíče pro tabulku `songs`
--
ALTER TABLE `songs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `name` (`name`);

--
-- Klíče pro tabulku `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`userID`),
  ADD KEY `userID` (`userID`),
  ADD KEY `userName` (`userName`),
  ADD KEY `stars` (`stars`),
  ADD KEY `demons` (`demons`),
  ADD KEY `coins` (`coins`),
  ADD KEY `userCoins` (`userCoins`),
  ADD KEY `gameVersion` (`gameVersion`),
  ADD KEY `creatorPoints` (`creatorPoints`),
  ADD KEY `diamonds` (`diamonds`),
  ADD KEY `orbs` (`orbs`),
  ADD KEY `completedLvls` (`completedLvls`),
  ADD KEY `isBanned` (`isBanned`),
  ADD KEY `isCreatorBanned` (`isCreatorBanned`);

--
-- AUTO_INCREMENT pro tabulky
--

--
-- AUTO_INCREMENT pro tabulku `acccomments`
--
ALTER TABLE `acccomments`
  MODIFY `commentID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `accounts`
--
ALTER TABLE `accounts`
  MODIFY `accountID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `actions`
--
ALTER TABLE `actions`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `bannedips`
--
ALTER TABLE `bannedips`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `blocks`
--
ALTER TABLE `blocks`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `comments`
--
ALTER TABLE `comments`
  MODIFY `commentID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `cpshares`
--
ALTER TABLE `cpshares`
  MODIFY `shareID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `dailyfeatures`
--
ALTER TABLE `dailyfeatures`
  MODIFY `feaID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `friendreqs`
--
ALTER TABLE `friendreqs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `friendships`
--
ALTER TABLE `friendships`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `gauntlets`
--
ALTER TABLE `gauntlets`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `levels`
--
ALTER TABLE `levels`
  MODIFY `levelID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `levelscores`
--
ALTER TABLE `levelscores`
  MODIFY `scoreID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `links`
--
ALTER TABLE `links`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `mappacks`
--
ALTER TABLE `mappacks`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `messages`
--
ALTER TABLE `messages`
  MODIFY `messageID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `modactions`
--
ALTER TABLE `modactions`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `modipperms`
--
ALTER TABLE `modipperms`
  MODIFY `categoryID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `modips`
--
ALTER TABLE `modips`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `poll`
--
ALTER TABLE `poll`
  MODIFY `optionID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `quests`
--
ALTER TABLE `quests`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `reports`
--
ALTER TABLE `reports`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `roleassign`
--
ALTER TABLE `roleassign`
  MODIFY `assignID` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `roles`
--
ALTER TABLE `roles`
  MODIFY `roleID` bigint(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `songs`
--
ALTER TABLE `songs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `users`
--
ALTER TABLE `users`
  MODIFY `userID` int(11) NOT NULL AUTO_INCREMENT;COMMIT;

/*!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 */;

PhpMyAdmin Error – incorrect format parameter might appear on multiple hosting platforms like shared hosting, VPS, localhost, or Dedicated Server. You may get incorrect format parameters if you trying to import a heavy MySQL database in MAMP, XAMPP on localhost, or even on some shared hosting. Some VPS or Dedicated Hosting can show this error. This article will show you how to resolve the problem and fix this phpMyAdmin Error.

Table of Contents

  • 1 What is the cause of this error?
  • 2 Fix phpMyAdmin Error – Incorrect Format Parameter on localhost:
    • 2.1 Edit on MAMP php.ini
    • 2.2 Edit on Xampp php.ini
  • 3 Fix Parameter Format Not Correct on Shared Hosting:
    • 3.1 Solution 1:  Fix PHPmyadmin error incorrect format parameter by increasing PHP Values
    • 3.2 Solution 2: Increase PHP memory limit, time limit in Cpanel
  • 4 Fix Incorrect Format Parameter on VPS and Dedicated Server:

What is the cause of this error?

Sometimes, we import the database into MySQL server through PHPMyadmin, incorrect format parameter errors may appear.

PhpMyAdmin Error incorrect format parameter might appear due to multiple reasons such as:

  • Execution of a script exceeding the defined maximum execution time on the server.
  • Parsing of requested input data exceeds the defined maximum input parsing time.
  • Script needing operating memory higher than the one defined in memory limit.
  • The size of post data is higher than the defined maximum post data size.
  • The size of the file being uploaded is higher than the defined maximum file size.

phpMyAdmin Error incorrect format parameter

phpMyAdmin Error incorrect format parameter

Find php.ini file and increase these values:

upload_max_filesize

post_max_size

max_execution_time

memory_limit

It depends on your MySQL file and your configuration of the server, but I can suggest these values as below:

upload_max_filesize=128M

post_max_size=256M

max_execution_time=1000

memory_limit=512M

Edit on MAMP php.ini

To be clearer, I have the same problem and try to find php.ini to edit. But it does not work, when I import MySQL file via phpMyAdmin, I was getting this error: Incorrect Format Parameter. Then I found the cause: I was modifying the wrong php.ini!

Where does MAMP keep its php.ini?

Depending on your version of PHP, there will be 2 php.ini files in MAMP (in this example is PHP 7.2.10):

Applications/MAMP/conf/php7.2.10/php.ini
Applications/MAMP/bin/php/php7.2.10/conf/php.ini

The file you have to edit is in MAMP Pro and uses the php.ini file every time it starts up:
Start MAMP PRO
Edit File > Edit Templates > PHP 7.2.2 php.ini
Restart MAMP Pro
Your changes should stick.
Or you can go by:
MAMP-> bin-> php-> php(your php version)-> conf-> php.ini

If you are not sure where is php.ini, just create a phpinfo.php file at your localhost root. Put this <?PHP phpinfo(); ?> within it, run that from your browser. Look for the value Loaded Configuration File.

This tells you which php.ini file PHP is using in the context of the webserver.

Edit MAMP php.ini

Edit MAMP php.ini

Edit on Xampp php.ini

Let me show you how I solve it easily on my Xampp.

Step 1: Open the Xampp control panel click on the Apache config button and click on PHP (php.ini)

Fix phpMyAdmin Error - incorrect format parameter on localhost

Fix phpMyAdmin Error – incorrect format parameter by edit xampp php.ini file
Fix incorrect format parameter on localhost
Edit php.ini on XAMPP

Step 2: Then search the below settings to easily import any database:

upload_max_filesize=128M

post_max_size=512M

max_execution_time=1000

memory_limit=512M

You can change the above settings as per your database size. then save the file.

Step 3: Now you have to restart the Apache and MySQL.

Step 4: Now you have to import your database SQL file under your database like (demo) and you see that your database will import correctly and the error will be gone.

So if you have more questions on this topic then comment us we will give you more solutions on it.

If the error still exists, open the xampp/phpmyadmin/libraries/config.default.php and disable the script execution time limit. Search for the phrase ExecTimeLimit as shown below.

$cfg[‘ExecTimeLimit’] = 300;

All you have to do is change the ExecTimeLimit value to 0 to get it disabled.

$cfg[‘ExecTimeLimit’] = 0;

Fix Parameter Format Not Correct on Shared Hosting:

Solution 1:  Fix PHPmyadmin error incorrect format parameter by increasing PHP Values

If your hosting support changes PHP value via htaccess file, you can easily fix this PHPMyAdmin error by increasing below value by adding this code to htaccess file:

php_value memory_limit 512M

php_value post_max_size 512M

php_value upload_max_filesize 256M

For Dreamhost Shared Hosting users, you can change max upload size by:

Step 1: Create a .phprc file inside your user folder:

/home/[user]/.php/7.2/phprc # change 7.2 to your current php version for example:

/home/[user]/.php/7.4/phprc

Edit that .phprc file and put below content:

upload_max_filesize = 512M

memory_limit = 512M

post_max_size = 512M

max_input_vars = 20000

Save and kill all PHP processes by login to the server via ssh and running this command:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

For PHP 5.6:

[server]$ killall 9 php56.cgi u shelluser

For PHP 7.0:

[server]$ killall 9 php70.cgi u shelluser

For PHP 7.1:

[server]$ killall 9 php71.cgi u shelluser

For PHP 7.2:

[server]$ killall 9 php72.cgi u shelluser

For PHP 7.3:

[server]$ killall 9 php73.cgi u shelluser

For PHP 7.4:

[server]$ killall 9 php74.cgi u shelluser

Remember to replace shell user with your SSH username

Solution 2: Increase PHP memory limit, time limit in Cpanel

Login to your Cpanel and go to the Software section, click into Select PHP Version

Increase PHP memory limit

Next, click on the Options tab and change your desired values to increase the PHP time limit, memory limit in cPanel

increase PHP maximum execution time in cPanel

Fix Incorrect Format Parameter on VPS and Dedicated Server:

I have CentOS VPS on Vultr, running Nginx, PHP-FPM, MariaDB 10, and all PHP addons. The first time I import my forum DB to phpMyAdmin, it show this error:

phpMyAdmin Error

incorrect format paramete

After searching, i found the solution: Open your php.ini on your VPS or Server, edit these value: upload_max_filesize, post_max_size, max_execution_time

It is suggested to increase the values of three variables in the php.ini file.

Change following values in php.ini

upload_max_filesize=256M

post_max_size=256M

max_execution_time=1000

Then restart the VPS or server.

This solved my issue.

AlexBBB

22 / 22 / 9

Регистрация: 16.03.2015

Сообщений: 193

1

09.07.2015, 12:05. Показов 11020. Ответов 5

Метки нет (Все метки)


Добрый день.
База данных была создана в phpmyadmin на Денвере на одном компе. После чего был сделан дамп базы данных. При переносе БД на другой комп, так же на Денвер, возникает ошибка:

Ошибка

SQL-запрос:

MySQL
1
2
3
4
5
6
7
8
9
10
-- --------------------------------------------------------
--
-- Структура таблицы `brands`
--
CREATE TABLE IF NOT EXISTS `brands` (
`brand_id` tinyint( 4 ) unsigned NOT NULL AUTO_INCREMENT ,
`brand_name` varchar( 255 ) NOT NULL ,
`parent_id` tinyint( 4 ) NOT NULL DEFAULT '0',
PRIMARY KEY ( `brand_id` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 AUTO_INCREMENT =16;

Ответ MySQL: Документация
#1146 — Table ‘ishop.brands’ doesn’t exist

Cама база данных создается и после отображается в pma, но таблицы в базе не отображаются.
Прошу помощи у знающих. В sql новичек.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



42 / 42 / 19

Регистрация: 25.05.2015

Сообщений: 121

09.07.2015, 13:38

2

1. Export the database to file;

2. verify if exported file is really OK!!;

3. drop the database where I have issues;

4. create a new database with the same name that the last;

5. import the file to the database.

Источник.



0



2 / 2 / 3

Регистрация: 17.12.2014

Сообщений: 43

09.07.2015, 15:06

3

На Денвере куда переносите сначала создайте базу данных и в нее уже импортируйте.



1



172 / 167 / 75

Регистрация: 21.11.2014

Сообщений: 1,490

10.07.2015, 10:41

4

Попробуйте просто в phpMyAdmin выполнить этот скрипт



0



22 / 22 / 9

Регистрация: 16.03.2015

Сообщений: 193

10.07.2015, 11:20

 [ТС]

5

Спасибо большое вопрос решил удалением базы данных и созданием новой под другим именем. Под старым именем импорт не проходил.

Вопрос закрыт.



0



22 / 22 / 9

Регистрация: 16.03.2015

Сообщений: 193

10.07.2015, 11:20

 [ТС]

6

kisenko, База данных В рабочем состоянии была экспортирована в файл на домашнем компьютере и залита на флешку. Далее на рабочем компе, была попытка импорта БД без создания самой БД. Выдал ошибку, о которой написано выше. Сама БД была создана но без таблиц. Повторил попытку с созданной БД, выдал ошибку:
Ошибка

SQL-запрос:


— База данных: `ishop`

CREATE DATABASE `ishop` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Ответ MySQL: Документация
#1007 — Can’t create database ‘ishop’; database exists

После чего снова удалена БД ishop и создана БД test. Импорт файла привел к самой первой ошибке.

с файлом вроде бы все в порядке, имеет расширение sql как пишут на многих форумах.

Добавлено через 20 часов 10 минут
Спасибо большое вопрос решил удалением базы данных и созданием новой под другим именем. Под старым именем импорт не проходил.

Вопрос закрыт.



0



Database modification can be irritating if it fails with the phpMyAdmin error incorrect format parameter.

And, when this happens midst of a WordPress’s migration, things go for a toss!

Insufficient limits in the server often result in such PHPMyAdmin error.

At Bobcares, we often receive requests to fix phpMyAdmin errors as a part of our Server Management Service.

Today, let’s discuss the phpMyAdmin error incorrect format parameter and analyze how our Support Engineers usually fix it.

What is phpMyAdmin?

Initially, let’s check about PHPMyAdmin.

PhpMyAdmin is a very powerful and handy tool for database management. Certainly, it provides a nice interface to manage the database easily. We can also import backups to the server using the interface.

The scenario of phpMyAdmin error incorrect format parameter

We’ll move on and check the scenario at which the error occurs. Mostly, this error happens in tasks like WordPress migration, moving databases, etc.

Let’s say when users are changing hosting providers or uploading content or databases in the server for production. The files are usually easy to download and configure. However, the database is something that needs efforts if annoying errors appear.

While importing the database backup file, it might result in the PHPMyAdmin error incorrect format parameter.

phpMyAdmin error incorrect format parameter

Causes of phpMyAdmin error incorrect format parameter

We’ll move on and find the possible reasons for the error.

From our expertise in managing servers, incorrect format parameter appears due to multiple reasons such as:

1. Running a script more than the defined maximum execution time.
2. Similarly, if the requested data exceeds the defined limit.
3. The script may need more memory than the defined memory limit.
4. The size of post data goes higher than the defined maximum post data size.
5. Likewise, if the size of the backup file is more than defined maximum file size.
6. Due to corrupted SQL.

How we fix the phpMyAdmin error incorrect format parameter?

Till now we saw the various reasons for the error. Let’s check how our Support Engineers fix each of them.

1. Exceed PHP limits

First of all, we start by checking the PHP parameters.

However, the exact location of the PHP configuration depends on the server we are looking into. Let’s discuss a few such types.

1. If it’s WHM, then the config is located at WHM->Server configuration -> Tweak Settings.
2. For the Ubuntu server with Apache, it is in /etc/php/{PHPversion}/apache2/php.ini.
3. If it’s a local machine with Xammp: xampp/php/php.ini.
4. For Nginx webserver : /etc/php/{PHPversion}.

We change the following parameters based on requirements.

max_execution_time = 3000
max_input_time = 60
memory_limit = 128M
post_max_size = 200M
upload_max_filesize = 200M

We restart the apache service for the changes to reflect. If the issue still persists, we further change the execution time limit in the phpmyadmin configuration file. For WHM/cPanel it is generally located at /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php. Here again, configuration file location may vary depending on the type of server.

We change the below parameter :
$cfg['ExecTimeLimit'] = 1000;

To avoid any errors with the websites, we always take a backup of the configuration files prior to any edit.

2. Possible corrupt SQL

In most cases, increasing PHP limits fix the error. However, at times the error can happen due to corrupt SQL files too. Therefore, we request a fresh backup of the database. As a last resort, our team starts rebuilding the SQL script if the problem exists due to a corrupted SQL file.

3. Manual SQL Import using SSH

In some rare cases, the restore from PHPMyAdmin does not work at all. In such cases, we proceed with manual importing of the database backup via SSH. Further, we always add the necessary privileges to the database user too.

[Having trouble in fixing phpmyadmin errors? – We’ll fix it for you.]

Conclusion

In short, WordPress migration often results in PHPMyAdmin error incorrect format parameter due to insufficient PHP limits on the server, corrupt SQL, etc. Today, we saw how our Support Engineers fixes the PHPMyAdmin incorrect format error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Понравилась статья? Поделить с друзьями:
  • Ошибка при иммобилизации всей нижней конечности лестничными шинами
  • Ошибка при измерении давления которую делают все
  • Ошибка при изменении статуса задачи код ошибки 102 касперский
  • Ошибка при изменении параметра не удается изменить
  • Ошибка при запуске фазмофобия пиратка