[英]Connecting phpmyadmin to local database created in mysqlworkbench
I have a bunch of tables and databases created in mysql workbench, but I don't know how to connect them to phpmyadmin. 我有一堆在mysql工作台中创建的表和数据库,但是我不知道如何将它们连接到phpmyadmin。 When I start phpmyadmin I get the following error:
当我启动phpmyadmin时,出现以下错误:
Warning in .\libraries\dbi\DBIMysqli.php#556
mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given
Backtrace
.\libraries\dbi\DBIMysqli.php#556: mysqli_real_escape_string(
boolean false,
string '_',
)
.\libraries\DatabaseInterface.php#2735: PMA\libraries\dbi\DBIMysqli-
>escapeString(
boolean false,
string '_',
)
.\libraries\navigation\nodes\Node.php#449: PMA\libraries\DatabaseInterface-
>escapeString(string '_')
.\libraries\navigation\NavigationTree.php#289:
PMA\libraries\navigation\nodes\Node->getData(
string 'databases',
integer 0,
string '',
)
.\libraries\navigation\NavigationTree.php#847:
PMA\libraries\navigation\NavigationTree->_buildPath()
.\libraries\navigation\Navigation.php#45:
PMA\libraries\navigation\NavigationTree->renderState()
.\libraries\Header.php#425: PMA\libraries\navigation\Navigation->getDisplay()
.\libraries\Response.php#260: PMA\libraries\Header->getDisplay()
.\libraries\Response.php#273: PMA\libraries\Response->_getDisplay()
.\libraries\Response.php#432: PMA\libraries\Response->_htmlResponse()
PMA\libraries\Response->response()
I am trying to host from IIS 8 win 2012 server r2...so I don't know how to fix this error as there is no config.inc file and is there a way to directly connect the tables I have created in workbench to phpmyadmin? 我正在尝试从IIS 8 Win 2012 Server R2托管...所以我不知道如何解决此错误,因为没有config.inc文件,并且有一种方法可以将我在工作台中创建的表直接连接到phpMyAdmin的?
Both MySQL WorkBench and PHPMyAdmin are tools to use MySQL, that is, they connect to the RDBMS and provide a ui to simplify your work with it. MySQL WorkBench和PHPMyAdmin都是使用MySQL的工具,也就是说,它们连接到RDBMS并提供ui来简化您的工作。 So your tables are created in MySQL, not in MySQL WorkBench.
因此,您的表是在MySQL中创建的,而不是在MySQL WorkBench中创建的。
The actual error means that the connection to the RDBMS was unsuccessful. 实际错误意味着与RDBMS的连接不成功。 This is why
mysqli_real_escape
_string gets a boolean argument. 这就是为什么
mysqli_real_escape
_string获得布尔参数的原因。 You will need to make sure that you connect using the correct: 您将需要确保使用正确的连接:
You will need to ensure everything is correct using the PHPMyAdmin configuration . 您将需要使用PHPMyAdmin 配置确保一切正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.