SunQuest
           MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 19th, 2000, 09:34 AM
Richard Vos Richard Vos is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Netherlands
Posts: 32 Richard Vos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi,

I still connect as root using my rootpassword. I would like to change this. I do not want to connect as rootuser. So...

As far as I know right now, I should make a standard user and password to connect using $cfgServers[1]['adv_auth'] = true;.
Using phpmyadmin I made a new user 'stuser' with a password and following permissions (Y N N N N N N N N N N N N N --> By the way, is this okay? Or does it make sense to disable select permission?). And gave also select-privelege to this user for the mysql-database (Y N N N N N N N N N N N N N ).

I changed the config.in.php3-file accordingly.

config.inc.php3:
$cfgServers[1]['adv_auth'] = false;
$cfgServers[1]['stduser'] = 'stuser';
$cfgServers[1]['stdpass'] = 'pw';
$cfgServers[1]['user'] = '';
$cfgServers[1]'password'] = '';
$cfgServers[1]['only_db'] = '';

A refresh of the browser shows the auth-popup window, asking for user + password.
But no way I could enter using passwords from the user table (even 'root' + root-password did not work). It says it can't connect to stuser@localhost.

Do you have a clue what is going on?

Thanks,

Richie

Reply With Quote
  #2  
Old July 19th, 2000, 10:16 AM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
If you change permissions by directly manipulating the mysql.* tables, you will need to do a flush privileges or stop/start mysqld for the permissions tables to be reread.

I would advise against doing direct manipulation. Unless you are using an earlier version of MySQL, just use the GRANT query. With GRANT you are much less likely to mess up your permissions AND you don't have to flush.

Reply With Quote
  #3  
Old July 19th, 2000, 10:36 AM
Richard Vos Richard Vos is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Netherlands
Posts: 32 Richard Vos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Thanks for your fast reply, Rod.

I did not understand it all, but I closed mysql and restarted it, that will do some rereading. But still can't get in. It keeps asking me a password when using a user from the user table and password.

Do you mind take a look at the user permissions in the first e-mail?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > 'stuser' in phpmyadmin 205


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway