I always use these methods to upload my database file from local to phpmyadmin :
- Get the
.sqlfile from localhost phpmyadmin - Open that in notepad and change localhost to
www.sitename.com - Finally import that
.sqlfile to the site's phpmyadmin
It always worked great without any problems. But this time when I want to import that .sql file it gives me this error :
Error
SQL query: phpMyAdmin SQL Dump
-- version 3.4.10.1
Host: localhost -- Generation Time: Mar 30, 2015 at 12:05 PM
-- Server version: 5.5.20
-- PHP Version: 5.3.10
MySQL said:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'phpMyAdmin SQL Dump
-- version 3.4.10.1
Host:' at line 1
This time it gives me this error. How I can Fix that?
Thanks
.sqlfile. Basically all non executable statements should be commented in the script file. It seems your file lacks them. - Ravinder Reddy.sqlfile, what version are you using to import sql dump and what was previous version of` mysql` . - Altmish-E-Azam