DashDB to MySQL Migration - mysql

Does anyone know an efficient way to migrate from DashDB to MySQL ? I have a database schema on DashDB which contains n number of tables and I wanted to migrate to MySQL.
The only way I can think of is exporting each table to CSV and then import it in MySQL but I am sure there is a better way to do this. Any suggestions?

The IBM DataWorks service on Bluemix is designed for this exact purpose. Here is a screenshot of what the interface looks like:
After creating a free Bluemix account, find the service in the catalog and create an instance of it. You can try the service under the 'starter' level plan for free. A getting started guide can be found in the Bluemix Docs.
Hope this helps

Related

can we setup a sync of databases between on-premises MySQL server to Azure Database for MySQL

by using mysqldump I am able to migrate data from on-premises to Azure Database for MySQL. but now after dump and restore i want to create a continuous sync between them. how's it possible?
I have followed below link but havn't achieved it. Is it possible or not?
https://learn.microsoft.com/en-us/azure/mysql/howto-data-in-replication#other-useful-stored-procedures-for-data-in-replication-operations
Looks like there is no prebuilt service available in azure.
You can find more information on this Link

How do I achieve persistence even when I stop running Spring?

I have just completed a Spring Boot tutorial of 34 videos. Im looking online and everything seems to show me how to create persistence of my data when the spring application is running. However, once I stop the program and restart it, it doesn't have the data I want saved.
So what it sounds like is I need to store this information on a database. I think I've set up a MySql server on my laptop and I have the workbench app/interface.
What might be more appropriate is connecting to an online server that I have with phpmyAdmin. In any case, how do I connect my spring application to a database instead of to a localhost:8080
Please let me know where I can look and what resources I have here as I'm kind of new to this sort of thing. Much appreciated!
There 2 options
Either use persistent DB instead of in-memory storage
You are using spring.jpa.hibernate.ddl-auto=create-drop hibernate property that will recreate db schema every time you start the application - thus its "clear" of the start. Use update or validate instead.
Maybe you can set spring.sql.init.mode=never to not always initialize your database using scripts.
This way you'll find all data you saved even when re-run the app.

How can one connect Prisma/GraphQL to an existing MySQL DB (specifically WordPress)?

I've been teaching myself GraphQL using Prisma -- very much a beginner at both.
I just got a programming test where the brief is to connect a React Native frontend to a WordPress backend. I thought this might be a fun opportunity to put some Prisma and GraphQL into practice. My thought was to connect Prisma to the WP MySQL DB and then use Prisma-GraphQL to connect to React Native.
However, it seems that connecting Prisma to MySQL isn't so straightforward -- at least for me, a beginner. I'd welcome any info as to how one might go about this -- not detailed code, of course, but more whether it's reasonable to do what I'm thinking of, and what packages/route would be the best way forward. Thanks!
An easy answer would be: All you need to connect Prisma to any MySQL database is a Host and a port(3306 because this is MYSQL) of where the DB is running.
And this leads us to where do you have your Prisma Server running?
if you are just a front-end dev and you don't know or don't wanna deal with stuff like docker then you better off using something like Prisma Cloud which will provision a Prisma server for you and can also host the MySQL Database for you or you can host it yourself and choose the have an existing database option and provide the hostname(URL) where you have it during creating your Prisma server.
on the other hand, if you comfortable running it locally or on a cloud provider with Docker(Local Prisma Setup) then you just provide the host and port as you can see in the docs link above in your docker-compose configuration file to Prism.
update:
Regard connecting to an existing DB, If you tried to do a prisma deploy on a DB with a different schema it probably gonna blow and complain about the schema conflict, that's why you need introspection for before but as you mentioned in the comment it's only for PostgreSQL at the moment, they are working on creating a tool for MySQL but it's no one knows when it could be out you can check for updates on the open issue with this feature here
hope this can help simplify things a bit.
For learning project you can do choose any solution. You will have fun and pain with MySQL shared between Prisma/ReactNative and WordPress.
For real project, you should avoid sharing one DataBase between different applications. In your case right architect decision is using WPGraphQL instead Prisma. It will provide you GraphQL from the WordPress Plugin.

How to create a mysql db with a Knex migrator CLI command?

I have a knex powered app that once I clone from github, I can run yarn migrate:latest to get the database up to date.
The problem is, in some cases, like a new developer, the database might not yet exist.
What is the right way to first create the database? Do I need to do that outside of KNEX or is there a KNEX CLI/Migration type of commend for this need?
Thats not supported (knex 0.14.2). You need to create database + db users in advance. If you like to have node library helping in that knex-db-manager is knex based helper lib for database management like creating DBs and db owner user etc.

How to connect to my new mysql DB on the cloud?

I'm trying to figure out the whole idea of databases in a cloud environment, or more correctly - data management on the cloud. I've recently created a test database on what is called a mysql cloud env. and I'm trying to connect to it - anyone have any experience with this? I get connection errors. After that, I'm wondering what is the best way to populate the database with the data from my old MySQL. Any tips are welcome! Thanks :)
Regarding connection errors: what errors?
On how to move data:
export data (use mysqldump)
upload to server (ftp?)
import (use mysql command line)