how to import data in orange hrm 2.7.1? - php

I want to just trnasfer the data from orange hrm 2.6.3 to 2.7.1.
I found export data functionality of the employees from Admin -> Data Import/Export
And I found that the data are imported in 2.7.1 from PIM -> configuration -> data import/export but in the sample csv i found that there are lots of columns like its all the account details,nationality,country which are not the field in the exported csv.
Or is there any other way to transfer the data from 2.6.3 to 2.7.1 using system or direct from database.
Please suggest me if anyone has any idea.
thanks in advance

This is the instruction.
in your old PC, go to localhost/xampp.
then go to phpmyadmin section.
and click on Export DataBase, and export your DataBase and save the file in your computer.
go to new pc and access the localhost/xampp.
then go to phpmyadmin section and import your database.
Finish

This is the "backend" way. I don't have any special method for OrangeHRM data migration, so I just use the usual database dump.
Basically, I'll dump the database/table first. Then, I'll drop the current database/table (make sure to do a backup copy) before importing a new one.
If you are importing a database, try to use the same name as the old one or else you might need to delete the symfony/cache/orangehrm folder,the lib/confs/Conf.php and the symfony/config/databases.yml file and start a new installation. OrangeHRM uses YAML library for data serialization.
Not sure if there are a lot of differences in terms of db structure between these two versions.

Related

Backup and download .sql file Laravel 4

A project i am currently working on requires the ability to export the full database with a click of a button in an admin area of a website. I know theres plenty of packages out there for automatic backups to dropbox etc.. But thats not what is required for this project.
I was just wondering is there a fast and easy way to just dump the full database in laravel 4?
I can handle the zipping and downloading of the file once its been dumped just wondering if theres an easy way to dump a database with laravel 4.
Any help appriciated
Thanks
Although packages like https://github.com/heybigname/backup-manager are perfect for backing up a database. They offer a lot more than i needed for this particular project.
In the end i used https://github.com/bradcornford/Backup which is a great package for backing up your database on the fly with one simple method.

I want to duplicate my WordPress website, but how do i deal with the database?

I wish to duplicate my current website so I can play around and try new ideas, before putting them on my live site. The reason I want to duplicate is so I have all of the content etc, so I can see how it really looks. I understand I can just copy my entire WordPress install into another directory, but what do I do with my database?
Currently my WordPress is installed into the root directory, I will simple create a new directory called Dev. Then simple just add /Dev to my URL and voila, I can view my duplicated website.
But how do I deal with my database? I am using a MySQL database, hosted with GoDaddy.
(I want to change my hosting from GoDaddy to someone else once the renewal is up, mainly because of their support for SOPA. anyway that's for another time...)
If you have phpMyAdmin installed, you may export your wordpress database, then create a new database and import the .sql file you just exported. Next, configure the copied wordpress to use your new database. The configuration is in wp-config.php. Good luck :)
Like the other answers here i suggest you export your DB via phpmyadmin if can. You will however notice that all image URLS point to the old domain. To fix this run a find and replace script. I usually use this one: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Good luck!
The simple way with GoDaddy is to log into your account, go to your hosting management and click the databases tab at the top and then look for phpMyAdmin.
Once in phpMyAdmin, go to the wordpress database and select the operations tab at the top and then use the "Copy database to:" feature.
If your version of phpMyAdmin doesn't show the copy database feature, you can export all tables of the database and import them into your duplicate database.
Hope this helps!
If you don't want to mess around with a new utility like phpmyadmin, you can install a wordpress plugin to back up your database. Then you can copy your files anywhere and use the same plugin to restore the database. I personally use UpdraftPlus - Backup/Restore.
It should be noted that moving your site to a new folder or domain will break a lot of the database data. A simple search and replace is not enough to fix it.
For more information, you can go here: Wordpress Codex

Malware/Adware on my wordpress blog--want to reinstall

My Wordpress site has some strange adware. Sometimes it redirects to www.usgrants.org , and at one point there was some random text at the bottom of each page that looked like search engine keywords, but that text seemed to have disappeared for now.
So instead, I've decided to back up my blog, and just start fresh with my database, and just reinstall the plugins that I really need.
The question is, how can I do this without losing my content?
I am guessing it is just as easy as exporting my SQL database, deleting everything, reinstalling WP, and then importing it, but I'm not sure if that's the most efficient way.
I'm also looking into Duplicator, but I don't know if that would also migrate the problematic add-ons (I don't even know what the cause of it is).
I'd really love to keep my Thesis theme as well, but I'm not sure if my custom code is causing the problem.
I appreciate the help!
First and foremost if you are still able to get into the admin area of your site, I would install WordFence (http://wordpress.org/plugins/wordfence/), do a complete scan of your site, and make the recommended fixes. Additionally, if you can spring for it, I would get the premium version as it will scan all files on the server, not just in the wordpress install. (I think it's like $40 per year per domain & gets cheaper the more you add.) This option may rescue your current site without the need to start fresh.
That said, if you have malware in your site, it's very difficult to know for sure that it's fixed for good. Depending upon how it's written, it can lie dormant for a while and come back when you least expect it so starting over may be the best idea. Regardless, I would use WordFence to scan first before you start fresh since it will also scan your database to see if anything ended up in one of your tables there. The free version will do that too.
Then you can either export and save your database from MYSQL or you can also use the wordpress export / import tool to manage the transfer of your content. Its a pretty simple process.
To export your site data using the included WP Export tool.
1. Login to the backend admin
2. Navigate to tools
3. Click on 'Export'
4. Select the All Content option and then press the 'Download Export File' button.
5. This will download an XML file that you can import on your new instance of WP.
To import your site data using the WP Import tool.
1. Login to the backend admin
2. Navigate to tools and click import
3. Select 'WordPress' from the list
4. Install the importer
5. Click Activate and Run Plugin
6. Choose the XML file you exported and then select Upload File and Import.
Hope this helps!

Moodle module no database

I want to develop a module for Moodle 2.0 that doesn't need database.
How should I fill the install.xml file when I will not have tables in the database?
Thanks for the help.
Greetings!
If you don't have a need for a database then you don't need to have an install.xml file at all. Moodle will still happily install a plugin without one.
Remember, if you do want a table within the database, the best method for creating that file is using:
Site Administration -> Development -> XMLDB editor
This presents you with a relatively easy to use UI and ensures that Moodle will be happy with your XML.
Don't create db folder in plugin.

How can i Rollback for files/folders corresponding to the changes done?

I am using PHP and Mysql
I have PHP script in which I rollback all the data in the database such data all the old value be reset to the database if update is done, and all new value gets deleted if new insert has been done.
Now my goal is to perform the same process with files/folders associated with the changes done, I am not able to create an idea for doing the rollback job with the files/folders associated with the Changes.. So can anyone of u help me or direct me to get the best idea?????
EDITED
I want this functionality in one of my Joomla Component.. I have to it all through scripting
When it comes to managing histories and providing the functionality to "rollback" to a specific site-wide snapshot, you are probably well-advised to be looking into Source Code Management systems/techniques such as GIT, Subversion, etc.
These systems seem to be the industry standard for managing source code development, and should provide the functionality of which you speak.
If you are looking to create a self-contained Version Control system for these files and folders, then you will either need to custom create one, whereby any change to a file also records the contents of that file (and the change date/time) into a MySQL Table, or you may need to look at adapting an existing PHP/MySQL Version Control system as a component of your product (respecting, of course, their licensing terms).
I would recommend performing a Google Search for "php version control", and then looking through the results for an option which best suits your needs.
May be you should try to use the native api of the host operating system

Categories