SQL username and password

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
abelaguilar
Posts: 87
Joined: Tue Jun 19, 2007 3:26 pm
Location: Manchester, GA
Contact:

SQL username and password

Post by abelaguilar » Sun Jan 31, 2010 3:55 am

Anyone know if its possible to add a username and password to SQL?

I am trying to use a backup program that backups sql databases but it needs sql to have a username and password in order for it to access the database.

How can it be done and will it cause problems?

I called open dental and the support tech said that open dental was not intended to be used with a sql username and password.
Abel Aguilar, DMD
http://www.DrAguilar.com

User avatar
jordansparks
Site Admin
Posts: 5746
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: SQL username and password

Post by jordansparks » Sun Jan 31, 2010 8:48 am

The username is root and the password is blank. Also see http://www.opendental.com/manual/passwordsmysql.html
Jordan Sparks, DMD
http://www.opendental.com

medicusjim
Posts: 10
Joined: Mon Mar 15, 2010 10:46 am
Location: Bainbridge Island, WA
Contact:

Re: SQL username and password

Post by medicusjim » Mon Mar 15, 2010 12:18 pm

Log into root MySql account then create another dedicated account like this:

mysql> grant select on opendental.* to 'newuser'@'ip_address_of_connection_point' identified by 'password';

* Replace 'newuser' with some username.
* Replace 'ip_address_of_connection_point' with the IP address of the machine that will be connecting to the database server. This could be the backup server. Or, you can use '192.168.%' to allow connections for any server on the internal network.
* Replace 'password' with whatever you want the password to be.
* Since this is just a connection used for backups, "select" priv should be enough, but you could list other too "select,insert,update," etc.

-Jim
Jim Young
Medicus Software LLC
321 High School Rd. NE Ste D3-243
Bainbridge Island, WA 98110
(206) 201-3543
http://MedicusSoftware.com
http://MyPatientScheduler.com

Post Reply