![]() Open /usr/local/bin/start-memcached with your favorite editor and paste in: #!/usr/bin/perl -w PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binĭAEMONBOOTSTRAP=/usr/local/bin/start-memcachedĮcho $"Usage: $0 " # applications by alleviating database load. # intended for use in speeding up dynamic web # object caching system, generic in nature, but # description: memcached is a high-performance, distributed memory # memcached This shell script takes care of starting and stopping Open /etc/init.d/memcached with your favorite editor and paste in: #!/bin/bash # user to run daemon nobody/apache/www-data Open /etc/nf with your favorite editor and paste in: #Memory a usar root# yum install libevent-devel libevent gcc make -y Head over to and grab the latest version. Root# yum install libevent libevent-devel -y ![]() This completes the transfer of your site.This guide will walk you through installing memcache and memcached on a dedicated or vps server.įor the wiki version of this guide visit: ![]() And as in that screenshot, replace whatever database name was there with your new one – remember prefix and suffix!įor other CMSs, you’ll need to follow different instructions.Ĭongratulations! You’ve successfully imported your database into NameHero along with the files and folders as shown in Part I of this tutorial. As in Step 1, navigate to your site’s wp-config.php (on NameHero this time instead of the older cPanel). Step 6: Using the New Database in WordPress or Whereverįinally, you need to ensure that your new installation of WordPress is updated with the database name. This will initiate the import of the file and if all goes well, you should see a “Success” screen afterward like the one here: Click it, and select the SQL file you downloaded in Step 3. Here, you will see the button “Choose File”. Like before, this will log you into your database section and you should now see the new database you created in Step 4 on the left-hand side. Go back to your cPanel log in screen and scroll down to find the phpMyAdmin icon in the NameHero control panel: Click “Create Database” and you’re done! Step 5: Importing the New Database SQL File It could be anything – or you might choose to use the suffix of the old name. This is done for security reasons to ensure that all databases don’t have easily guessable names. This will bring up the database creation dialogue box right at the top.Īs you can see, it’s divided into two sections and the first one is selected automatically for you. So first log into NameHero’s cPanel and click “MySQL Databases” as shown here: The reason is that we might not have permissions to create a new one from directly within phpMyAdmin. Step 4: Creating the New Database on NameHeroīefore importing our data, we first need to explicitly create a new database on cPanel. A medium sized size can have a database size of say 30 MB. Depending on the size of your database, it may take a few minutes. This will initiate a download of your database to the desktop in the form of a text file. Once the database on the left is selected, see the tabs on top and click on Export: Now we’re going to export this via a file. On the left-hand side, find the database name that you got in Step 1 and click on it: This will log you into all the databases connected with your account. To do this, log into cPanel and search for the phpMyAdmin icon like this: Step 2: Locate the Database in phpMyAdminĬPanel has a fantastic web based tool using which you can access and manipulate your databases. This file contains all the essential connection details for WordPress, including the database name as shown here: If you’re using WordPress, open the root of your website and look for the “wp-config.php” file. To export your database from cPanel, you need to find out what the name of your current database is. Let’s get started! Step 1: Get the Name of Your Existing Database So Part II of this series focuses on transferring the “engine” of your site to NameHero. ![]() Plugins for example, use databases to store their settings and data. Recent themes and versions of WordPress have moved even more functionality into the database. All the content, settings, widgets, and menus reside there. To upload your website in cPanel, we need to move the database as well. The “meat” of your site is in the database. But modern Content Management Systems (CMSs) are far more than mere files. ![]() In Part I of this series, I showed you how to transfer your files and folders from your older cPanel account to NameHero. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |