Stand alone Mysql Database

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Stand alone Mysql Database

Postby chasejordan1 » Wed Jan 21, 2015 5:49 pm

I am trying to set up a stand alone mysql server that will only have Ubunutu 14.04 and Marian DB on it.

My current db server is a vicibox 6.0 server, marian DB.

My process is as follows... lock tables, dump DB on current server. Then create database on new server (asterisk) add all the permissions and upload database. At this point everything looks fine.

reboot

I then point my Web server and telphone servers to new server.

In the mysql tables all data and settings are fine, but, and this is the problem when I log into the web page the only thing missing is the lists, campaigns, users, phones etc are there, but the lists are empty. How can I trouble shoot this? Or did I do something wrong?
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: Stand alone Mysql Database

Postby DomeDan » Thu Jan 29, 2015 8:30 am

Post the export/import process in more detail. (commands etc)
do you get any error messages when you do the import?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Stand alone Mysql Database

Postby chasejordan1 » Thu Jan 29, 2015 10:39 am

My process is as follows... lock tables, dump / export DB on current server. Then create database on new server (asterisk) add all the permissions and upload / import database.

reboot
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: Stand alone Mysql Database

Postby mav2287 » Thu Jan 29, 2015 7:47 pm

I have done this before and what we did was the following on the working server
Code: Select all
#mysqldump asterisk > /path_to_where_you_want_it/asterisk.sql

Then we put that file on a flash drive and mounted the drive in the new server. We then loaded that DB in by doing the following
Code: Select all
#mysql
mysql> create database asterisk;
Query OK, 1 row affected (0.02 sec)
mysql>exit
# mysql asterisk < /path_to_file/asterisk.sql


That is how I converted one of our single server setups to my first cluster. It should take everything with it from the old DB and be a perfect copy if you do it right.

Also for reference I always like this page for info on mysqldump as well. I use it as quick reference when I space on this stuff http://www.thegeekstuff.com/2008/09/bac ... mysqldump/ it has good information for mysqldump including a 1 liner for what you are trying to do. (I wouldn't do it this way though unless you are sure you know what you are doing)

[local-server]# mysqldump -u root -ptmppassword sugarcrm | mysql \
-u root -ptmppassword --host=remote-server -C sugarcrm1
[Note: There are two -- (hyphen) in front of host]
ViciBox5.x86_64-5.0.3.preload from .iso upgraded to 13.1 | VERSION: 2.10-444c BUILD: 150129-0828 | 1.8.32.2-vici | Dual Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel twin quad core 3Ghz Xeon chips | 32gb of RAM
mav2287
 
Posts: 256
Joined: Thu Oct 03, 2013 6:47 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 134 guests