There are a few ways to do this but here is my recommendation.
On the database server, install mysql as recommended for that OS. For example, with Windows, use th official mysql installer. For linux, use the distribution's package management system.
Once installed, mysql will have an admin user. This user will have full rights on all databases but MAY be limited to access the databases only from the machine directly. This is a very common security-aware configuration so that you don't unexpectedly allow admin (root) access from outside with default passwords etc.
There are two options now to get this db server to work with a sugar install on another server. either.
1. BAD - allow the admin/root user access from over the network. it's bad because if it is compromised, they can do anything to the database server. The password is stored in the sugar config so if you web server is compromised, they might be able to get complete control of your db server.
2. GOOD - create a new user will full admin rights on the sugracrm database ONLY. that way, if the user/password is compromised, then they can only get to the sugar database and nothing else.
To do the latter, get to the command prompt and type the following. this assumes that the default database admin user is called root.
1. Type:
Code:
# mysqladmin -uroot -p create sugarcrm
this will create a blank database called sugarcrm - it will prompt for the root password.
this will start the mysql shell - again the password is prompted for. Next type:
Code:
> create user 'sugaruser'@'%' identified by 'some_password';
this will create the user sugaruser - next give that user admin rights for the sugarcrm database
Code:
> grant all privileges on sugarcrm.* to 'sugaruser'@'%';
and to exit the mysql shell:
Now - on the other server, install sugar and when prompted use the username "sugaruser" with the give password when creating the database "sugarcrm".
If that doesn't work - then it might be that the mysql server is configured to not allow database connections from the network. If that's the case, let us know and we can take it from there.
Bookmarks