We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Import  MySQL database  Newbir Question

maxalarie
maxalarie asked
on
Medium Priority
359 Views
Last Modified: 2012-05-11
Good day,

I run a mysql server on Linux.

I have a mysql database dumpfile on a  prodserver . I would like to create a NEW DB on the same server and import this backup into it..  

I have logged in, and created a database like this:

Mysql> create database testmax;
Query OK, 1 row affected (0.06 sec)
mysql> use testmax;
Database changed
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| phpmyadmin         |
| procorp            |
| testmax            |
+--------------------+

(I want to import  procorp's backup in testmax)

Now, I am at the part where i want  to populate this testmax  database with my existing  procorp backup. I also want to make sure i dont overwrite the procorp database (production database)

How do I do that?

I know in Oracle you can set ORACLE_SID but im not familiar with mysql.
Comment
Watch Question

Top Expert 2012
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Thanks guys,.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.