Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

ERROR when import SQL file #1231

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

ERROR when import SQL file #1231
  • Quote

Post by tomer628 » Fri Jan 09, 2015 10:27 am

hi !

after create DB + USER + PASSWORD i try to import mydb.sql from " php admin" and i got this error :

Code: Select all

Error
SQL query:


/*!40101 SET character_set_client = @saved_cs_client */;
MySQL said: Documentation

#1231 - Variable 'character_set_client' can't be set to the value of 'NULL' 
how can i upload mydb.sql without problem ?

thanks,
Tomer
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: ERROR when import SQL file #1231
  • Quote

Post by joem » Fri Jan 09, 2015 7:59 pm

tomer628 wrote:hi !

after create DB + USER + PASSWORD i try to import mydb.sql from " php admin" and i got this error :

Code: Select all

Error
SQL query:


/*!40101 SET character_set_client = @saved_cs_client */;
MySQL said: Documentation

#1231 - Variable 'character_set_client' can't be set to the value of 'NULL' 
how can i upload mydb.sql without problem ?

thanks,
Tomer

Add this to the top of your file remove anything that matches it.
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 utf8 */;

Add this to the bottom of your file remove anything that matches it.
/*!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 */;
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: ERROR when import SQL file #1231
  • Quote

Post by tomer628 » Sat Jan 10, 2015 6:49 pm

YES IT'S WORKING !!!

thanks
Top

waleeed12
Posts: 1
Joined: Tue Mar 29, 2016 8:17 am

Re: ERROR when import SQL file #1231
  • Quote

Post by waleeed12 » Tue Mar 29, 2016 8:19 am

this to the top of your file remove anything that matches it.\

________________
== crossword puzzles ==
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password