title: Setup WSO2 IS 5.0.0 using JDBC as the primary datastore
body: <p>I am trying to configure WSO2 IS 5.0.0 to use a mysql database as the default primary datasource.  </p>
  
  <p>I have reviewed the following guides from the documentation:
  <a href="https://docs.wso2.com/display/IS500/Setting+up+MySQL" rel="nofollow">https://docs.wso2.com/display/IS500/Setting+up+MySQL</a>
  <a href="https://docs.wso2.com/display/IS500/Configuring+a+JDBC+User+Store" rel="nofollow">https://docs.wso2.com/display/IS500/Configuring+a+JDBC+User+Store</a></p>
  
  <p>I receive the following error when I try to login as admin via the admin website:</p>
  
  <p>Failed Administrator login attempt 'admin[-1234]' at [2015-01-08 22:31:03,647-0500]</p>
  
  <p>This is a fresh install of WSO2IS 5.0.0. The database was initialized using the -Dsetup property. The UM_USER table shows the admin user exists. I have configured the mysql datasource in master-datasource.xml, disabled the embedded ldap server in embedded-ldap.xml, and commented out the ldap tenant in tenant-mgt.xml.</p>
  
  <p>When I start the server I do not see any errors aside from the login warning noted above. The database also appears to have all the information, but the admin web application does not let me login as admin. </p>
  
  <p>I also noticed that the tenant id is -1234. Is that an expected default or indicate a potential multi-tenant error? </p>
  
  <p>Here's my user-mgt.xml</p>
  
  <pre><code>&lt;UserManager&gt;
      &lt;Realm&gt;
          &lt;Configuration&gt;
                  &lt;AddAdmin&gt;true&lt;/AddAdmin&gt;
                  &lt;AdminRole&gt;[Role]&lt;/AdminRole&gt;
                  &lt;AdminUser&gt;
                       &lt;UserName&gt;[userName]&lt;/UserName&gt;
                       &lt;Password&gt;[password]&lt;/Password&gt;
                  &lt;/AdminUser&gt;
              &lt;EveryOneRoleName&gt;everyone&lt;/EveryOneRoleName&gt; &lt;!-- By default users in this role sees the registry root --&gt;
              &lt;Property name="dataSource"&gt;jdbc/WSO2CarbonDB&lt;/Property&gt;
          &lt;/Configuration&gt;
          &lt;UserStoreManager class="org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager"&gt;
              &lt;Property name="TenantManager"&gt;org.wso2.carbon.user.core.tenant.JDBCTenantManager&lt;/Property&gt;
              &lt;Property name="ReadOnly"&gt;false&lt;/Property&gt;
              &lt;Property name="MaxUserNameListLength"&gt;100&lt;/Property&gt;
              &lt;Property name="IsEmailUserName"&gt;false&lt;/Property&gt;
              &lt;Property name="DomainCalculation"&gt;default&lt;/Property&gt;
              &lt;Property name="PasswordDigest"&gt;SHA-256&lt;/Property&gt;
              &lt;Property name="StoreSaltedPassword"&gt;true&lt;/Property&gt;
              &lt;Property name="ReadGroups"&gt;true&lt;/Property&gt;
              &lt;Property name="WriteGroups"&gt;true&lt;/Property&gt;
              &lt;Property name="UserNameUniqueAcrossTenants"&gt;false&lt;/Property&gt;
              &lt;Property name="PasswordJavaRegEx"&gt;^[\S]{8,50}$&lt;/Property&gt;
              &lt;Property name="PasswordJavaScriptRegEx"&gt;^[\S]{8,50}$&lt;/Property&gt;
              &lt;Property name="UsernameJavaRegEx"&gt;^[^~!#$;%^*+={}\\|\\\\&amp;lt;&amp;gt;,\'\"]{3,30}$&lt;/Property&gt;
              &lt;Property name="UsernameJavaScriptRegEx"&gt;^[\S]{3,30}$&lt;/Property&gt;
              &lt;Property name="RolenameJavaRegEx"&gt;^[^~!#$;%^*+={}\\|\\\\&amp;lt;&amp;gt;,\'\"]{3,30}$&lt;/Property&gt;
              &lt;Property name="RolenameJavaScriptRegEx"&gt;^[\S]{3,30}$&lt;/Property&gt;
              &lt;Property name="UserRolesCacheEnabled"&gt;true&lt;/Property&gt;
              &lt;Property name="MaxRoleNameListLength"&gt;100&lt;/Property&gt;
              &lt;Property name="MaxUserNameListLength"&gt;100&lt;/Property&gt;
              &lt;Property name="SharedGroupEnabled"&gt;false&lt;/Property&gt;
              &lt;Property name="SCIMEnabled"&gt;true&lt;/Property&gt;
          &lt;/UserStoreManager&gt;
          &lt;AuthorizationManager
              class="org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager"&gt;
              &lt;Property name="AdminRoleManagementPermissions"&gt;/permission&lt;/Property&gt;
              &lt;Property name="AuthorizationCacheEnabled"&gt;true&lt;/Property&gt;
          &lt;/AuthorizationManager&gt;
      &lt;/Realm&gt;
  &lt;/UserManager&gt;
  </code></pre>
  
  <p>Any guidance is greatly appreciated.</p>