Be a Supporter!

getting started with mysql

  • 548 Views
  • 7 Replies
New Topic Respond to this Topic
perj
perj
  • Member since: Dec. 9, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
getting started with mysql 2006-12-05 20:42:33 Reply

"Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole."

I get this message in php myadmin. Obviously i haven't set a password in php.ini, however i can't find exactly where im supposed to do this in the config file. can some1 tell me? thanks.

Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to getting started with mysql 2006-12-05 21:16:54 Reply

Where it says password? lol

This is the basic structure for the config file.

$dbhost = 'hostname';
$dbname = 'database name';
$dbuser = 'user name';
$dbpasswd = 'password';

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to getting started with mysql 2006-12-05 21:42:23 Reply

If you're logged in as the default user, can't you just modify the MySQL user info via PHPMyAdmin?

I don't believe you would set that in the mysql config file. I think you can use PHPMyAdmin, or run a query.


BBS Signature
perj
perj
  • Member since: Dec. 9, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to getting started with mysql 2006-12-05 21:47:06 Reply

yeh i dont see it. I'm using wamp, if that matters.

The php.ini file is here: kuniforms.com/php.txt

I just found something with username and stuff called ingres.default_user, is that it?

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to getting started with mysql 2006-12-05 21:49:38 Reply

At 12/5/06 09:47 PM, perj wrote: yeh i dont see it. I'm using wamp, if that matters.

The php.ini file is here: kuniforms.com/php.txt

I just found something with username and stuff called ingres.default_user, is that it?

Just as I thought... In PHPMyAdmin:
Privileges -> Edit privileges on root, and there is the login info...


BBS Signature
perj
perj
  • Member since: Dec. 9, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to getting started with mysql 2006-12-05 22:15:46 Reply

At 12/5/06 09:49 PM, DFox wrote:
At 12/5/06 09:47 PM, perj wrote: yeh i dont see it. I'm using wamp, if that matters.

The php.ini file is here: kuniforms.com/php.txt

I just found something with username and stuff called ingres.default_user, is that it?
Just as I thought... In PHPMyAdmin:
Privileges -> Edit privileges on root, and there is the login info...

i changed the password and now I can't even get into phpmyadmin, it says

MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to getting started with mysql 2006-12-05 22:21:25 Reply

At 12/5/06 10:15 PM, perj wrote: MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)

That's supposed to happen. Now just configure the correct login in the phpmyadmin file config.inc.php to match the username and password.


BBS Signature
perj
perj
  • Member since: Dec. 9, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to getting started with mysql 2006-12-05 23:15:00 Reply

sweet! i got it, thanks a lot sons