Skip to main content
Question

Moving the mysql database to a different server


Forum|alt.badge.img+12

Hello,

I'm looking into the possibility of moving the MySQL database from the jss
to a different server. Mainly to consolidate backup of multiple mysql
databases. I found that the JSS uses the username of jamfsoftware to access
the database. I have not seen in any documentation what that password is or
how to set it. As important is how would I tell the JSS to look for the
database on a different box? Has anyone done this before? We are looking
at tossing it onto a RHEL5 machine.

Thanks,
Ken

7 replies

Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • November 9, 2009

Actually, I think by default it uses the mysql root account with no password on OS X Server and you have to set a mysql root (different from system root) password.

So, just try mysql -u root -p

Then hit enter to keep the password blank or try entering a password for the mysql root user if one was set.



Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351
chown -R us /.base


Forum|alt.badge.img+12
  • Contributor
  • 312 replies
  • November 9, 2009

So you're saying they were just trying to keep me honest…nice

:)

~Ryan


Forum|alt.badge.img+12
  • Author
  • Contributor
  • 186 replies
  • November 9, 2009

I do see an account in that database called jamfsoftware. Also I'm looking
for where to point the JSS at a different database server.


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • November 9, 2009

The database is called jamfsoftware...

this is my JSS, and I use default installs

s001-casper:~ root# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 9298 Server version: 5.0.67-log Source distribution

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> show databases ; +--------------------+ | Database | +--------------------+ | information_schema | | jamfsoftware | | mysql | | test | +--------------------+ 4 rows in set (0.00 sec)

mysql>

The user name you want is the mysql root user as it can administer the
database


Forum|alt.badge.img+12
  • Author
  • Contributor
  • 186 replies
  • November 9, 2009

Ok, think I found it... In /Library/Tomcat/conf/server.xml there is
information about how it connects to mysql. It shows the user
'jamfsoftware' and the password in this file. In mysql, you can see that
jamfsoftware is a user.

Looks like you may be able to change the mysql server from here as well.
There are a few variables called 'jdbcUrl' that point at the local server's
mysql database.


Forum|alt.badge.img+12
  • Author
  • Contributor
  • 186 replies
  • November 10, 2009

Hmm, dumpped the database to a new sql server box and can connect to it over
the network fine. However, the tomcat apps don't start properly after
editing /Library/Tomcat/server.xml I have contacted support to see if
they have any pointers... Maybe there are other files that need to be edited
in order to get this working.


Forum|alt.badge.img+17
  • Contributor
  • 352 replies
  • September 19, 2012

.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings