Importing sql file using phpmyadmin in EasyPHP

女生的网名这么多〃 提交于 2019-11-28 19:15:21
Bridget Jones

Having wasted many hours, I have a solution so here it is.

Having a look on the web I found I needed to change my config.inc.php file in the phpadmin directory as I was running EasyPHP 13.1 password slightly diff to that mentioned in the blog at http://amir-shenodua.blogspot.co.uk/2012/03/error-while-importing-db-in-mysql.html. I added 2 lines:

$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';

So all sorted !! Yippee!!

So if you have trouble please read:
http://amir-shenodua.blogspot.co.uk/2012/03/error-while-importing-db-in-mysql.html

user3980196

For temporary relief:

Comment out this line in your config.inc.php file (place // before the line)

$cfg['Servers'][$i]['pmadb'] = $dbname;

Then close all browsers. Try importing again.

As an alternative to modifying phpMyAdmin's config.inc.php as proposed in other answers, if you have shell access then you can directly execute this file using the MySQL console client.

First, change directories to the folder containing your DDL script runningc_bjart.sql

Then run this command, replacing the values for host, user, password, and database name:

mysql --host=database_server --user=database_user --password=database_password --database=database_name < runningc_bjart.sql

This ran just fine without the error received when importing via phpMyAdmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!