MYSQL Password

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MYSQL Password

Postby aoutrance » 16. September 2015 17:34

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";
aoutrance
 
Posts: 5
Joined: 11. September 2015 06:36
Operating System: Windows 7 Professional

Re: MYSQL Password

Postby Altrea » 16. September 2015 19:47

User root does not have a password by default, so empty string is correct.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: MYSQL Password

Postby aoutrance » 18. September 2015 06:13

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?
aoutrance
 
Posts: 5
Joined: 11. September 2015 06:36
Operating System: Windows 7 Professional

Re: MYSQL Password

Postby Altrea » 18. September 2015 12:08

We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 129 guests