Koozali.org: home of the SME Server

need info to change mysql password

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
need info to change mysql password
« on: October 08, 2007, 04:07:56 AM »
I need to change mysql password, I do not want to reset it but change it, is this possible without breaking any other appz

the problem is that I have a forward slash / in the password, which I believe is causing my problem with installing a web app that requires the root password.

I have used the same app on a test server and the installation was successful

Thanks, Russell
.........

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: need info to change mysql password
« Reply #1 on: October 08, 2007, 06:58:16 AM »
I need to change mysql password, I do not want to reset it but change it, is this possible without breaking any other appz

the problem is that I have a forward slash / in the password, which I believe is causing my problem with installing a web app that requires the root password.

I have used the same app on a test server and the installation was successful

Thanks, Russell
You should NEVER change the mysql root password.  And you should NEVER use the root user for a web app.

Your web app should never be allowed to have root privileges to mysql. 

Create a new user in mysql and give that new user all privileges for the web app's database.  Something like this:

create database webapp;
grant all privileges on webapp.* to webappuser@localhost identified by 'secretpassword';

See http://wiki.contribs.org/MySQL for additional information.
In life, you must either "Push, Pull or Get out of the way!"

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: need info to change mysql password
« Reply #2 on: October 08, 2007, 07:42:03 AM »
is this possible without breaking any other appz

Probably not.

As per above post... create a new mySQL user.

You can do it with a menu'd script

Code: [Select]
mysql_setpermission
Regards,
William

IF I give advise.. It's only if it was me....