Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Control Panel
- cPanel
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Clienttemplate
- Createdatabase
- Crontab
- Demo
- Domaintemplate
- Faq
- Managedatabase
- Newclient
- Newdomain
- Removeopenbasedir
- Plesk
- Install an SSL in Plesk
- Reset the Plesk MySQL Password
- Configure Plesk and Hosted Messaging and Collaboration (HMC) Exchange for Spilt Domains
- Change all FTP passwords for Plesk (Linux) via SSH
- Enable mailman in Plesk
- Enable the firewall in Plesk
- Enable the Watchdog in Plesk
- Recover my Plesk password
- Retrieve Horde passwords on Plesk Linux Server
- Schedule and Run backups in Plesk 9
- Suspend a domain in Plesk 9
- View all traffic to all domains within Plesk
- Add a new database in Plesk
- Add a new email user in Plesk
- Check the Mail log on Plesk Server
- Migrate saved settings for Horde in Plesk 8/9
- Preview your site on a Linux Server with Plesk
- Set up email notifications in Plesk
- Set up FTP repository backups within Plesk 9
- Create a Cron Task in Plesk 8
- Create a Cron Task in Plesk 9
- Increase memory_limit on Plesk VPS
- Migrate Plesk data manually with Plesk Migration Manager
- Unsuspend A Domain During A Plesk Backup
- Modify Number of SpamAssassin Processes for Plesk
- Enable Google Services for a Domain in Plesk 10
- Disabling the FTP Server for Plesk 8.x and 9.x
- Installing ClamAV in Plesk 8 & 9
- Using Winscp to Upload Files To A Plesk Server
- Add a New Domain in Plesk 10
- Add a New Subdomain in Plesk 10
- User Roles in Plesk 10
- Adding Additional FTP Users in Plesk 10
- Creating Email Accounts in Plesk 10
- Change Domain Settings in Plesk 10
- Restrict Administrative Access in Plesk 10
- Create Additonal FTP Accounts in Plesk 10
- Server Settings for Plesk 10
- SiteBuilder and Plesk
- Password Protect a Directory in Plesk 10
- Create Mobile Website Within Plesk 10
- Create Scheduled Task in Plesk 10
- Managing A Firewall In Plesk 10
- Migrating From Plesk to cPanel
- Log Rotation in Plesk 10
- Copy Site Files to a Different Domain or FTP Site in Plesk 10
- Maintenance Mode for Plesk 10
- Reinstall a Plesk License
- Fix Service Unavailable Message
- How To Reinstall Horde For Plesk 8x - 9x
- How To Recreate The Horde Database In Plesk 8x - 9x
- Change Primary FTP Password in Plesk 8
- Change Primary FTP Password in Plesk 9
- Change Primary FTP Password in Plesk 10
- Retrieve Administrator Password for Plesk 10.2
- Rename domain in Plesk 8
- Rename domain in Plesk 9
- Rename domain in Plesk 10
- Install SSL in Plesk 9
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
How To Recreate The Horde Database In Plesk 8x - 9x
This article explains how to recreate a damaged or corrupted Horde database for both Plesk 8x and 9x. Please note that this requires you to have an understanding of SSH and MySQL, as this will all need to be done via SSH command line. Should you have any questions regarding this, please contact Hosting.com / Hostmysite.com support.
- Since the database is either corrupted or damage, you will need to remove the existing database. To do this you will need to log into the Mysql instance and remove the database. To do this, type the following command
- Now you will have to create the horde database.
- With the database created, you can enter the database.
- Now that you are in the horde database, running the script below will populate the horde database. Please be sure you copy the entire command and paste it in the mysql command line and then press enter.
- Once the command is ran, the entire horde database is now populated and horde can be accessed.
"drop horde;"
"create database horde;"
"use horde;"
CREATE TABLE horde_users (
user_uid VARCHAR(255) NOT NULL,
user_pass VARCHAR(255) NOT NULL,
user_soft_expiration_date INT,
user_hard_expiration_date INT,
PRIMARY KEY (user_uid)
);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_users TO horde@localhost;
CREATE TABLE horde_prefs (
pref_uid VARCHAR(200) NOT NULL,
pref_scope VARCHAR(16) NOT NULL DEFAULT '',
pref_name VARCHAR(32) NOT NULL,
pref_value LONGTEXT NULL,
PRIMARY KEY (pref_uid, pref_scope, pref_name)
);
CREATE INDEX pref_uid_idx ON horde_prefs (pref_uid);
CREATE INDEX pref_scope_idx ON horde_prefs (pref_scope);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_prefs TO horde@localhost;
CREATE TABLE horde_datatree (
datatree_id INT NOT NULL,
group_uid VARCHAR(255) NOT NULL,
user_uid VARCHAR(255) NOT NULL,
datatree_name VARCHAR(255) NOT NULL,
datatree_parents VARCHAR(255) NOT NULL,
datatree_order INT,
datatree_data TEXT,
datatree_serialized SMALLINT DEFAULT 0 NOT NULL,
PRIMARY KEY (datatree_id)
);
CREATE INDEX datatree_datatree_name_idx ON horde_datatree (datatree_name);
CREATE INDEX datatree_group_idx ON horde_datatree (group_uid);
CREATE INDEX datatree_user_idx ON horde_datatree (user_uid);
CREATE INDEX datatree_serialized_idx ON horde_datatree (datatree_serialized);
CREATE TABLE horde_datatree_attributes (
datatree_id INT NOT NULL,
attribute_name VARCHAR(255) NOT NULL,
attribute_key VARCHAR(255) DEFAULT '' NOT NULL,
attribute_value TEXT
);
CREATE INDEX datatree_attribute_idx ON horde_datatree_attributes (datatree_id);
CREATE INDEX datatree_attribute_name_idx ON horde_datatree_attributes (attribute_name);
CREATE INDEX datatree_attribute_key_idx ON horde_datatree_attributes (attribute_key);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_datatree TO horde@localhost;
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_datatree_attributes TO horde@localhost;
CREATE TABLE horde_tokens (
token_address VARCHAR(100) NOT NULL,
token_id VARCHAR(32) NOT NULL,
token_timestamp BIGINT NOT NULL,
PRIMARY KEY (token_address, token_id)
);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_tokens TO horde@localhost;
CREATE TABLE horde_vfs (
vfs_id BIGINT NOT NULL,
vfs_type SMALLINT NOT NULL,
vfs_path VARCHAR(255) NOT NULL,
vfs_name VARCHAR(255) NOT NULL,
vfs_modified BIGINT NOT NULL,
vfs_owner VARCHAR(255) NOT NULL,
vfs_data LONGBLOB,
PRIMARY KEY (vfs_id)
);
CREATE INDEX vfs_path_idx ON horde_vfs (vfs_path);
CREATE INDEX vfs_name_idx ON horde_vfs (vfs_name);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_vfs TO horde@localhost;
CREATE TABLE horde_histories (
history_id BIGINT NOT NULL,
object_uid VARCHAR(255) NOT NULL,
history_action VARCHAR(32) NOT NULL,
history_ts BIGINT NOT NULL,
history_desc TEXT,
history_who VARCHAR(255),
history_extra TEXT,
PRIMARY KEY (history_id)
);
CREATE TABLE horde_histories_seq (
id int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (id)
);
CREATE TABLE horde_datatree_seq (
id int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (id)
);
CREATE INDEX history_action_idx ON horde_histories (history_action);
CREATE INDEX history_ts_idx ON horde_histories (history_ts);
CREATE INDEX history_uid_idx ON horde_histories (object_uid);
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_histories TO horde@localhost;
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_histories_seq TO horde@localhost;
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_datatree_seq TO horde@localhost;
CREATE TABLE horde_sessionhandler (
session_id VARCHAR(32) NOT NULL,
session_lastmodified INT NOT NULL,
session_data LONGBLOB,
PRIMARY KEY (session_id)
) ENGINE = InnoDB;
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_sessionhandler TO horde@localhost;
FLUSH PRIVILEGES;
