We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 708
    • 144 Posts
    hi

    i’ve a 2 system OS dualboot : XP and Ubuntu
    i have installed modx on my ubuntu partition and create the db with lamp
    on XP i want to acceed to my modx site but it’s not possible to connect to db...

    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « Failed to select the database ’modx0962’! »

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0322 s
    Total: 0.0322 s
    Error while inserting event log into database.

    how to do to have en access to this db and can working on it on XP like on ubuntu ?

    thx
      AipHesBlOg
      Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
      ---------------------------------------------------------------
      French webdesigner
      • 26903
      • 1,336 Posts
      The MYSQL server on your XP set up can’t see the database on the Ubuntu partition, which is not surprising as its probably on an ext3/2 partition that the MYSQL server on XP can’t access. You may be able to do this if you create a FAT32 partition between the 2 installs, both Ubuntu and XP can read/write FAT32, you’d have to set up both MYSQL servers to point to this partition for database usage although having said that I don’t know without looking if MYSQL can use databases on FAT32. Having a FAT32 partition to share data between dual boot windows/linux machines is quite common, but like I say don’t know about MYSQL here.
        Use MODx, or the cat gets it!
        • 708
        • 144 Posts
        ok but is it possible to copy the ubuntu db on the xp db ? with dump for example...
          AipHesBlOg
          Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
          ---------------------------------------------------------------
          French webdesigner
          • 26903
          • 1,336 Posts
          Yes, you can do an sql dump from one database, using phpMyAdmin say or the MYSQL command line into a file and import that into the other, you’ll have to do that each time you swap OS’es however. I’ve just done a quick google and you can use a FAT32 partition for MYSQL databases, this may be your best bet here. This may help you do this
          http://ubuntuforums.org/archive/index.php/t-126707.html
            Use MODx, or the cat gets it!
            • 708
            • 144 Posts
            i’ll try this but it’s in english and i’m french so it’s a bit difficult to me but i go to try smiley
            for waiting i’ll try to make a dump of my sql db of ubuntu to XP
              AipHesBlOg
              Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
              ---------------------------------------------------------------
              French webdesigner
              • 5274
              • 177 Posts
              Quote from: aiphess at Nov 08, 2008, 11:35 AM

              i’ll try this but it’s in english and i’m french so it’s a bit difficult to me but i go to try smiley
              for waiting i’ll try to make a dump of my sql db of ubuntu to XP

              There are many tools that can help you with the task of moving the MySQL db between your OS partitions. One of them is BkupMODx available in the MODx site Resource area. You can install BkupMODx on both OS partitions then setup the scripts in the Config Tool as follows:

              login: false
              site_url: http://example.com/
              base_path: /home/your_dir/
              dir0: backup/archive/,false

              NOTE: This script is written in PHP which uses "/" style slashes between directory and file names for all OS including Windows and Linux.

              SECURITY NOTE: If you leave the "login: true" then you’ll have to modify the config.inc.php text file directly in the current 2.2 release. If you change "login: false" then be aware that anybody has direct URL access to BkupMODx and can backup/download your entire web site.

              After you’re done with the Config Tool on both OS sides run the Backup Tool from the side you want to copy. Next go to the Archive Tool and Download (to a USB drive for example). Then on the other OS go to the Archive Tool and Upload (from the same USB drive for example), Extract the backup file and Import the db dump. Sounds like a lot but most of the work is already done for you.

              Enjoy!
                • 708
                • 144 Posts
                great tool anymore smiley i’ll to try it thx
                  AipHesBlOg
                  Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
                  ---------------------------------------------------------------
                  French webdesigner
                  • 708
                  • 144 Posts
                  i’ve downloaded the backup zip files but i don’t uderstand how it works and where i must put it...
                  some help possible plz ?
                  http://127.0.0.1/Modx_travail/backup/
                  Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php

                  thx
                    AipHesBlOg
                    Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
                    ---------------------------------------------------------------
                    French webdesigner
                    • 5274
                    • 177 Posts
                    Quote from: aiphess at Nov 09, 2008, 10:47 AM

                    i’ve downloaded the backup zip files but i don’t uderstand how it works and where i must put it...
                    some help possible plz ?
                    http://127.0.0.1/Modx_travail/backup/
                    Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php

                    thx

                    That error says that MODx is not installed. After rereading your original post I suspect you are trying to run MODx from XP but it’s installed only on Ubuntu on the same dual boot system. If that is correct then it will never work because you need both XP & Ubuntu running at the same time to. The only way I know how to run both OS at the same time on the same machine is to use a virtualization solution like VMWare. Did I misread your original post?
                      • 708
                      • 144 Posts
                      error with the ubuntu OS :
                      Config::setConfig - ERROR: missing required file: manager/includes/config.inc.php

                      so where i must put the backup directory ? at the root of the modx install ? or in the manager dir ? because the message say that the problem is in a manger file..
                        AipHesBlOg
                        Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
                        ---------------------------------------------------------------
                        French webdesigner