How To Use Vanilla Forum On MySQL Database Without Password Set如何使用香草座谈会上的MySQL数据库,没有密码设置
First of all I want to make it clear that having a MySQL database without a password set (on your root account) is a very very bad idea.首先我要明确指出,有一个MySQL数据库没有密码设置(在您的root帐号)是一个非常非常糟糕的主意。 However I wanted to set it up on my home machine which has XAMPP installed.不过,我想它设定了对我家的机器已安装xampp 。 And XAMPP by default creates a root account for MySQL without any password.和xampp默认情况下创建一个root帐号为MySQL开发没有任何密码。 I had several applications installed in that configuration.我有几个应用程序安装在这方面的配置。 So I tried to do the same with Vanilla.因此,我试图做同样的,与香草。 However Vanilla wouldn’t allow me to do so.不过香草不会容许我这样做。 Actually the setup goes fine but then it refuses to show claiming failure to connect to the database.其实安装有云,然后罚款,但它拒绝显示,自称失败的连接到数据库。 Here is a simple solution.这里是一个简单的解决办法。
Open conf\database.php .打开设置\ database.php 。 Add the line after $Configuration['DATABASE_USER'] = ‘root’; -行添加后, 元,配置[ ' database_user ' ] = ' 根' ; -
$Configuration['DATABASE_PASSWORD'] = ”; 元配置[ ' database_password ' ] = “ ;
That’s all folks!这是所有的乡亲!
BTW: Just so are on the same page; never ever do it (setup a MySQL root account without password) on any server exposed to the internet.的BTW :刚才,因此在同一页上;从未这样做(安装一个MySQL root帐号没有密码)的任何服务器上暴露到互联网上。 I know I am repeating myself but it it very important as you surely understand.我知道我重复自己,但它非常重要,因为你们一定了解。
Filed under提起下 Computer Security计算机安全 , , Database数据库 , , How To如何 , , Open Source Software开放源码软件 , , PHP PHP的 , , RDBMS RDBMS的 , , Tech Note技术说明 , , Web网页 , , Web Hosting虚拟主机 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |




