cloudbees database dump - mysql

How i can export the mysql database out of cloudbees ?
I'd like to use mysqldump or comparable command, but my database is hosted by cloudbees so I can't ssh to the mysql host to run such a command.

You can connect to your database from outside the Cloudbees network, using mysql connection parameters you can grab from https://run.cloudbees.com/a/{{accountId}}#db-manage.
Use your favorite mysql tools to export and manage your database, like mysql workbench.

Related

Manipulating a MySQL database via MS Access over an SSH connection (PuTTY)

I use PuTTY to access a remote MySQL database via 'ssh' and then use mysql through PuTTY.
Is there any way I could open the same in Microsoft Access database manager and append data to the MySQL table(s) remotely?
I have an Excel file and I want to insert its contents to the MySQL db and it would be very tiresome through putty command line.
Just install the MySQL ODBC driver on your PC: http://dev.mysql.com/downloads/connector/odbc/
Then you can link your MySQL tables to your Access database and use them directly.
In linux server access db in local m/c to set tunnel address for putty .

Migrate MS SQL Server database to MySQL using Workbench migration wizard over ssh

I am trying to migrate a SQL Server 2008 database to MySQL. The MySQL database is on a vps on digital ocean. In the migration process, the source selection was successfull but the target selection is not. For the target selection, I used the connection method as Standard TCP/IP over SSH. Clicking on Test connection gives the error "Unsupported connection method. MySQL connections over SSH are not supported in this version of MySQL workbench migration wizard."
I have MySQL version 6.1
These are the parameters I used:
SSH Hostname: host IP address:22
SSH Username: root
SSH Password: host password
SSH KeyFile: I did not set up a key file for my MySQL db. Is it required?
MySQL HostName: 127.0.0.1
MySQL Server port: 3306
username: root
password: password to MySQL
Please tell me if I am missing something or if I am giving the parameters wrong.
Do I have to set the ssh key file to migrate the database over ssh?
Note
The migration process does not support source or target RDBMS connections through SSH.
A workaround is to set up an encrypted tunnel, and then treat the MySQL target as a standard TCP (unencrypted) connection.
I found this note on the MySQL Workbech documentation for migration wizard. Heres the link
http://dev.mysql.com/doc/workbench/en/wb-migration-install.html
I do not know how to do the migration with the suggested work around. Any help will be greatly appreciated.
Thanks.
This is what I did:
First, Install MySQL on the same machine where the MS SQL Server database exists. Use the MySQL Migration wizard to migrate the database locally. Now there are two options here.
OPTION 1: Create a backup file for the migrated database in MySQL. Use this backup file and restore database in the target MySQL.
OPTION 2: Export each table from the migrated database in MySQL to .csv files and then copy these files to the server and import them in to the target MySQL database.

accessing database created in mysql via phpmyadmin

Does the mysql program running under the linux terminal look at the same databases as the phpmyadmin tool?
The problem that I have is that using "show databases;" in mysql in the terminal I can see a database I created, but in the phpmyadmin tool it does not show up in the list of databases.
Consequently my php programs cannot find the database (I am trying to get started with the yii2 cms framework).
How is it possible that the phpmyadmin and the mysql command show different databases? They are both logged in as the same user. ie..
"select user();" executed in the mysql command and in phpmyadmin both say: root#localhost.
phpmyadmin uses the local host to connect with mysql, so you have to check if you have an apache server running and connected with phpmyadmin... The terminal works when you install mysql... So if you have not configured the apache server this will heappen.

Connection by ODBC

I'm trying connect to my Oracle database in Windows by ODBC to upload data in MySQL database of openshift cloud service. I cannot connect with MySQL database by Tcp/Ip.
How I can connect to MySQL from Oracle pl/sql?
You will not be able to connect directly to your OpenShift MySQL database, you will need to use the rhc port-forward command to create a connection from your local computer to your gear so that you can access MySQL directly.

How to create a mysql database on localmachine and remote connect to it

How can I create a mysql database on my own pc and remote connect to it from external source?
What do I need?
You can try and use XAMPP
Find it here: http://www.apachefriends.org/en/xampp-windows.html
It will let you host Mysql server inlcuding PHPMyAdmin. If you open your ports, you can connect remotely to PHPMyAdmin and manage your Mysql database.