boblan66 Posted November 8, 2010 Share Posted November 8, 2010 I testing my work using WAMP and phpMyAdmin. i have a question concerning on how tp establish a password. The code to open the db is shown below. <? error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR); $host = "localhost"; $dbName="membership;" $user = "root"; $passWord=""; $cxn = mysqli_connect($host, $user, $passWord, $dbName ); or die ("Could not make a connection. Please try again later.."); Ihope someone can help. Link to comment https://forums.phpfreaks.com/topic/218076-help-setting-password-for-db-created-with-phpmyadmin/ Share on other sites More sharing options...
ManiacDan Posted November 9, 2010 Share Posted November 9, 2010 Create a new user account using the Create User syntax and then use that user instead of "root" for your website. "Root" should never be used as the web user, you should always use a more limited account so that if your site is ever compromised, the attacker cannot delete your entire database. -Dan Link to comment https://forums.phpfreaks.com/topic/218076-help-setting-password-for-db-created-with-phpmyadmin/#findComment-1132330 Share on other sites More sharing options...
ttocskcaj Posted November 10, 2010 Share Posted November 10, 2010 lol I always use root Link to comment https://forums.phpfreaks.com/topic/218076-help-setting-password-for-db-created-with-phpmyadmin/#findComment-1132541 Share on other sites More sharing options...
ManiacDan Posted November 10, 2010 Share Posted November 10, 2010 Don't do that, and don't advertise that fact on a public forum. Link to comment https://forums.phpfreaks.com/topic/218076-help-setting-password-for-db-created-with-phpmyadmin/#findComment-1132631 Share on other sites More sharing options...
ttocskcaj Posted November 28, 2010 Share Posted November 28, 2010 Only on my testing server. Link to comment https://forums.phpfreaks.com/topic/218076-help-setting-password-for-db-created-with-phpmyadmin/#findComment-1140494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.