• Resolved bvstrien

    (@bvstrien)


    Hi there,

    I installed the plugin on my wordpress site on my Synology NAS, but get errors on finding the dump paths voor MYSQL.

    —–
    Checking MYSQL Dump Path …

    MYSQL dump path does NOT exist. Please check your mysqldump path under DB Options. If uncertain, contact your server administrator.

    Checking MYSQL Path …

    MYSQL path does NOT exist. Please check your mysql path under DB Options. If uncertain, contact your server administrator.
    —–

    Auto detect says:

    Path To mysqldump: /usr/bin/mysqldump
    Path To mysql:/usr/bin/mysql

    But they just don’t work and so the backup doesn’t work also 🙁

    Can you guys help me out?

    Thanx!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Lester Chan

    (@gamerz)

    1st Q in https://wordpress.org/plugins/wp-dbmanager/faq/

    You need to echo out the command that the the plugin will run, SSH into your NAS and run that command.

    Thread Starter bvstrien

    (@bvstrien)

    Hi Lester, I tested the above suggestion, but have no result so far.

    I did the following:

    1. In wp-dbmanager.php
    2. Find check_backup_files(); on line 230
    3. Add below it echo $command;
    4. Go to WP-Admin -> Database -> Backup
    5. Click Backup
    6. It should print some debugging statements
    7. Copy that line than run it in SSH
    8. If you need help on SSH contact your host or google for more info

    But i didn’t find check_backup_files(); on line 230, it was on line 246, is that the same:

    243 ### Executes OS-Dependent mysqldump Command (By: Vlad Sharanhovich)
    244 function execute_backup($command) {
    245 $backup_options = get_option('dbmanager_options');
    246 check_backup_files(); 
    247
    248	if( realpath( $backup_options['path'] ) === false ) {

    After adding the echo command it looks like this:

    243 ### Executes OS-Dependent mysqldump Command (By: Vlad Sharanhovich)
    244 function execute_backup($command) {
    245 $backup_options = get_option('dbmanager_options');
    246 check_backup_files(); 
    247 echo $command;
    248
    249	if( realpath( $backup_options['path'] ) === false ) {

    Then I go to WP-admin -> Database -> Backup DB

    But nothing is shown 🙁

    Is there something i do wrong?

    Plugin Author Lester Chan

    (@gamerz)

    That looks correct. Howo about use die if that doesn’t work?

    echo $command; die();

    Thread Starter bvstrien

    (@bvstrien)

    Oops, duh…excuse me, forgot to press the backup button to show the echo. The echo works now and shows the following:

    bin/mysqldump --force --host='localhost' --user='USERNAME' --password='PASSWORD' --default-character-set="utf8" --add-drop-table --skip-lock-tables DATABASENAME > /volume1/web/domainname/wp-content/backup-db/1476571334_-_DATABASENAME.sql

    But after running this line in SSH, it gives the following line as a reaction:

    -sh: /volume1/web/domainname/wp-content/backup-db/1476571334_-_DATABASENAME.sql: Permission denied

    What’s wrong???

    • This reply was modified 7 years, 6 months ago by bvstrien.
    Plugin Author Lester Chan

    (@gamerz)

    I have no idea what is wrong. I am guessing permission issue (based on the errror).

    It seems you can;t use this plugin on your server. You might want to try an alternative like https://wordpress.org/plugins/wp-db-backup/ because it uses PHP to generate the backup which should not give you a permission issue.

    Thread Starter bvstrien

    (@bvstrien)

    Hi Lester, i’ve tried the other plugin and that works! However it is strange the first plugin won’t work. The sever is my own Synology NAS, so i could do somerhing with rigjts and permissions. I just don’t know where tondo that? Do tou have any clue?

    Thanx for the help so far!

    Plugin Author Lester Chan

    (@gamerz)

    I am not sure as well since I don’t use Synology myself. I don’t think Synology provides root access or the running user doesn’t have access to the path?

    Thread Starter bvstrien

    (@bvstrien)

    Ok thanx so far. I got the other plugin working, so the main problem is solved, a proper backup function 😁👍

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Synology NAS Mysql paths?’ is closed to new replies.