Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

"Atach" mysql database

Posted on 2014-11-12
7
626 Views
Last Modified: 2014-11-14
Hi,

In SqlServer i can copy database files from a pc to another pc, and then attach and view tables with management studio. I can do the "same" with phpadmin, but when i create dbfile and import sqlquery for ex. Now i have a folder with some mysql files (I think that will be the tables of the database)  and i need "attach" or import database to phpadmin to export some data, is possible?

best regards
0
Comment
Question by:rflorencio
7 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 40438337
0
 

Author Comment

by:rflorencio
ID: 40439437
Hi,

Although I'm not so familiar with mysql, it seems to me that to do what you tell the server would have to be active. The problem is that I have only the files and are not "attached" to the server.

best regards
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40439514
That's confusing.  MySQL does not 'attach' databases like SQL Server does.

phpMyAdmin won't connect to a MySQL installation unless MySQL is running.  Give us an example of the file names.  If they are '*.sql', then you should be able to import them into MySQL with either phpMyAdmin or at the command line.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:rflorencio
ID: 40439781
Hi,

As I have said many have little knowledge in mysql. Supposedly I have a series of files .MYD, .MYI that I think will be tables that belong to a data base. I do not have access to the server where this database was, only have the files. Intend to read the content and then export to sqlserver, like a .sql script.

thanks
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 400 total points
ID: 40440542
No, that won't work, those are not in 'SQL' format.  ".MYD" and ".MYI" are the 'data' and 'index' file for a MyISAM database.  You can put them in a directory for their database and restart MySQL and see if it picks them up.
0
 
LVL 20

Assisted Solution

by:Muhammad Wasif
Muhammad Wasif earned 100 total points
ID: 40440851
There must be files like .frm. Without them, you may not be able get the data as Dave has suggested. If you have all three files e.g. table1.FRM, table1.MYD and table1.MYI (or atleast .FRM and .MYD) then you can read the data as Dave suggested.
0
 

Author Closing Comment

by:rflorencio
ID: 40442140
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating Functions in phpMyAdmin 8 26
MS SQL Server COnditional Where statement 7 84
How to fix Datetime in MySQL? 4 48
CLI command keep running after close 7 36
This article describes some very basic things about SQL Server filegroups.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question