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.
Related
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 am working on a site, and the client wants me to start from scratch with a new theme. They are using wordpress but don't like the theme. They still want the info, but they want me to use a different theme and make it look nicer.
They set me up with a testing server so I don't wreck the current site, but they hadn't transferred the content over, is there an easy way to do that? It'd be nice if I din't have to reinsert everything.
You can dump the wordpress database and execute it on the new staging website this way you will keep every data.
Sure, assuming you're newer to this it's easiest to use phpMyAdmin to view the database.
Click the 'Export' tab to export the database in SQL format.
Create a new database on the staging server with the same name as the .sql file.
On the new database in phpMyAdmin, click 'Import' and upload the .sql file.
Make sure the credentials all match in your wp-config.php file.
The best and most easiest way to do this by using a well known plugin called Duplicator
Here is the link: https://wordpress.org/plugins/duplicator/
This plugin will help you to create a duplicate version of the current site very easily.
Hope this helps :)
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
i have a doubt about Drupal, i've recently developed a website using php and mysql, this site has a cms that was created by the previous developer, so... i have some new contents in the DB and i need to create the modules in the cms to manage them, but i've heard that it would be better if i install drupal. ¿Can i install this drupal cms and manage my already created DB?, i'm not using a drupal theme. I mean i only need to manage the DB not create the entire site. ¿is it possible? or it would be better just create the new modules into the already created cms (it isn't joomla, wordpress...) ¡thanks in advance!
You will not be able to install Drupal and use it to manage the existing site. They are going to have different data structures.
If you came to understand the data structures of the two CMSes you might find that you could export out of the old one and into Drupal. This would require a good bit of comfort with MySQL.
You can use the existing db and can build custom module to use the data in other table, created for your custom CMS. However, there is no direct or automatic way which will allow you to access those data! You have to write your own code!
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.