Author Topic: MySQL username password  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

Offline neontTopic starter

  • Irregular
  • Posts: 2
    • View Profile
MySQL username password
« on: February 02, 2010, 06:53:11 AM »
Hi guys. Any help will be much appreciated.

I am trying to make use of the 'dataface' application. In doing so I need to have a password in order to access the MySQL database. As it stands, I have no password as a line of code in my config.ini.php file states 'allow no password'.

However, trying to alter this code gives me errors when loading the my localhost/phpmyadmin page.

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type']            = 'config';
$cfg['Servers'][$i]['user']                 = 'root';
$cfg['Servers'][$i]['password']             = '';
$cfg['Servers'][$i]['AllowNoPassword']      = true;  //This is what i remove and simply type a password..

<<<<<>>>>>

MSQL VERSION: # Server version: 5.1.41

PHP: 3.2.4

APACHE: 2.2.14

mysql said: #1045 - Access denied for user 'root'@'localhost' (using password: YES)


<<<<<>>>>>


Im not sure if this is of any particular significance...

/* Server parameters */
$cfg['Servers'][$i]['host']             = 'localhost';
$cfg['Servers'][$i]['connect_type']     = 'tcp';
$cfg['Servers'][$i]['compress']         = false;

/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysqli';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';


Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: MySQL username password
« Reply #1 on: February 02, 2010, 06:54:50 AM »
What exactly is your question?

Offline neontTopic starter

  • Irregular
  • Posts: 2
    • View Profile
Re: MySQL username password
« Reply #2 on: February 02, 2010, 08:06:15 AM »

Basically I am currently ultilising phpMyadmin with no password.

I would like to be able initiate a password, but i'm not sure how to structure the script.

Offline Scanjo

  • Irregular
  • Posts: 4
    • View Profile
Re: MySQL username password
« Reply #3 on: February 19, 2010, 05:14:04 PM »
This is quoted from the tutorial at http://www.reg.ca/faq/PhpMyAdminTutorial.html

"...a dialog box will prompt you for a username and password. This will be the username and password given you when we set  it up for you."

According to this, I would say it's not a simple matter of changing a script. You need to talk to whomever set it up for you and get it changed.  If there is no password setup, then how would the program know if the password you logged in with was right or not?