Page 1 of 1

ERROR when import SQL file #1231

Posted: Fri Jan 09, 2015 10:27 am
by tomer628
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

Re: ERROR when import SQL file #1231

Posted: Fri Jan 09, 2015 7:59 pm
by joem
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 */;

Re: ERROR when import SQL file #1231

Posted: Sat Jan 10, 2015 6:49 pm
by tomer628
YES IT'S WORKING !!!

thanks

Re: ERROR when import SQL file #1231

Posted: Tue Mar 29, 2016 8:19 am
by waleeed12
this to the top of your file remove anything that matches it.\

________________
== crossword puzzles ==