Page 1 of 1

MYSQL Password

PostPosted: 16. September 2015 17:34
by aoutrance
Finally got XAMPP (control panel v3.2.1) working.

Initialized/started phpMyAdmin (v 4.4.14)

Created a new database

Where do I set the password for .php files to access this database?

I am talking abut the password that I have to put in the connection string that includes ($db_pass = "";) :

$db_host = "localhost";
$db_username = "sitemgr";
$db_pass = "";
$db_name = "112fielda_sitemgt";

Re: MYSQL Password

PostPosted: 16. September 2015 19:47
by Altrea
User root does not have a password by default, so empty string is correct.

Re: MYSQL Password

PostPosted: 18. September 2015 06:13
by aoutrance
I noted that and not a problem on my home based testing server. But my live hosting service may still require a password (I'm checking that) and if so will I have to build 2 connection strings or is there a way to set a password on my testing server?

Re: MYSQL Password

PostPosted: 18. September 2015 12:08
by Altrea