Commit b1e5c521 authored by Xuqian Yan's avatar Xuqian Yan
Browse files

Added instructions for nexus-e repo

parent ba168686
### **Common issues**
#### Database
##### Grant full privileges to a user in MySQL Workbench
![](images/mysql-user-privileges.png)
![](images/mysql-user-privileges-2.png)
##### Access denied to access database
- In Matlab, print out the variables `connInfo.user`, `connInfo.pw`, and `connInfo.host` to make sure that they are exactly what you provided in the your `UserDBInfo` file.
- Make sure you database user account has [full permission to the database](#grant-full-privileges-to-a-user-in-mysql-workbench)
##### Database server timezone issue
- Open command prompt and login to mysql using the command:
`mysql -u root -p`
- Enter your MySQl password for the root user, this should start mysql and you should see the prompt `mysql>`
- Type the following two command to reset the MySQL time zone:
`SET @@global.time_zone = 'Europe/Paris';`
`SET @@session.time_zone = 'Europe/Paris';`
- If you get the error "Unknown or incorrect time zone: 'XXX'", use the command ([ref](https://dba.stackexchange.com/questions/120945/how-do-i-resolve-this-error-error-1298-hy000-unknown-or-incorrect-time-zone)):
`mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql –p`
Then rerun the `SET @@...` commands.
- You can check that these were properly set using the command:
`SELECT @@global.time_zone, @@session.time_zone;`
- After confirming these are now correct you can exit mysql using the command:
`exit`
##### Database definer missing
Add a dummy user (same name as the missing definer - you can see it from the error message) to the database and [grant all previleges](#grant-full-privileges-to-a-user-in-mysql-workbench) .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment