login about faq

Due to the large amount of spam accounts, we temporarily disabled new user sign ups. To override this, email newuser.lgqa@gmail.com and an admin will determine if you are permitted to join


I have a file with an .sql suffix and I want to see the database. How can I get it?

I use a Mac.

asked Jun 19 '10 at 16:17

Syren's gravatar image

Syren
582152032

edited Sep 25 '12 at 17:55

Fogarty's gravatar image

Fogarty ♦♦
11.7k122738


I use MySQL for SQL databases. This is for online databases. In this scenario, you would use Apache + MySQL, a good choice would be XAMPP (or LAMPP for Linux).

Once your server is setup, create a new database and import your .sql file into the query window. And there ya go :P

answered Jun 19 '10 at 16:49

Luma's gravatar image

Luma
346158

edited Jun 19 '10 at 16:50

XAMP, Lamp and Wamp are good for testing or for taking a quick look into testing what you need to do with the three combine. But if you are look for a dedicated server for home lan and all that Then I would suggest Apache or IIS under the windows environment if your using windows as well. Or just Apache and mysql that you can download both as well on your own.

answered May 02 '12 at 17:39

Compucore's gravatar image

Compucore
2.4k111925

Simply open it with a text editor.

answered May 02 '12 at 17:42

Jackster1337's gravatar image

Jackster1337
8.5k178214300

A .sql file is just a text file; your ability to "see" the database will depend on what SQL instructions and queries have been put in it, and how you use it. The .sql file itself is not a database.

Now you'll need to connect to a database. Depending on which type of SQL Server you're using, you'll need different programs to connect to it. Microsoft SQL Server, for example, uses SQL Server Management Studio. You'll need to install the appropriate program to connect to whatever kind of server it is.

If the database already exists somewhere, the program will have an easy-to-find that says "Connect", "Register Server", or something similar. Connect to the database using the credentials provided by whoever setup or currently administers the database. Then you can import your .sql file and run it. Be careful, though; if you don't know what's in it, it could alter or eliminate your data and structure.

If the database does not exist, it will need to be created. Your .sql file may contain the instructions needed to do so.

answered May 03 '12 at 14:56

tsilb's gravatar image

tsilb
21.0k65199333

Download MySQL? Lol http://www.mysql.com/

answered Sep 25 '12 at 18:23

Cameron's gravatar image

Cameron
1.8k103127134

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×1,971
×86
×67
×29
×15
×2

Asked: Jun 19 '10 at 16:17

Seen: 2,176 times

Last updated: Sep 25 '12 at 18:23