where is the index physically located in MySQL database?

Let’s learn where is the index physically located in MySQL database. The most accurate or helpful solution is served by Database Administrators.

There are ten answers to this question.

Best solution

where is the index physically located in MySQL database

Just wondering where is the index info physically located in MySQL database if I have indexed a table with ALTER TABLE contacts ADD KEY (columnName); ? it will stay with that table and add a new spacial column to it; stay separately from that table; I think the #2 is the correct answer. Can we index columns from more than one tables? how?

Answer:

(This question might better be asked on dba.stackexchange.com) But to answer your questions: For the...

Read more

5YrsLaterDBA at Database Administrators Mark as irrelevant Undo

Other solutions

Please help me connecting to mysql database using php.?

Hi guys, I have designed a very simple guestbook using a mysql database and php to link to my website but am having problems getting it going. Am fairly new to this kind of programming so I am sure its something simple ..... Basically ..... I have a...

Answer:

The code should work (I believe) so perhaps you have the wrong name of the database? I would suggest...

Read more

Yiaggi at Yahoo! Answers Mark as irrelevant Undo

What are the advantages of NoSQL with Cassandra over MySQL?

I work on large database (hundreds of GB) and Mysql now gives me more or less satisfaction. I hesitate to cassandra on launch.  What I want to know everything before, so this kind of DBMS NoSQL is supposed to be faster than MySQL?  Several points: The...

Answer:

See this related topic on some of the NoSQL solutions - What are each of these solutions best fit for...

Read more

Raghavendra Kidiyoor at Quora Mark as irrelevant Undo

Twitter bot coding fail: is my MySql setup right?

I have been trying and failing, to code a twitter bot that tweets lines held in a MYSQL database, one by one, in order. I have a DATABASE with two tables:  1. tweetstable - holds a lot of tweets (tweetsfield) and an id column (id)  2. last_row - holds...

Answer:

Fatal error: Call to a member function where() on a non-object in /LOCATION/index.php on line 13 means...

Read more

Adam Marshall at Quora Mark as irrelevant Undo

RTree as index structure in mysql?

Hi all, Need help on deciding Index for my database table. so here are the details. I have a table Source which have 10 million records and growing. Now the web application has search functionality. the user on web application can search for sources...

Answer:

The purpose of an R-tree index is primarily for indexing multi-dimensional data like points and regions...

Read more

Bill Karwin at Quora Mark as irrelevant Undo

Can we connect a MYSQL db which is located in Win Server 2003 MS-IIS/6.0 from a Linux Apache server?

Please let me know whether is it possible to connect a MYSQL db which is located in Windows Server 2003 Microsoft-IIS/6.0 from a Linux Apache/1.3.37 (Unix) server. FYI, the mysql db connection file is in LINUX Apache server and the mysql database is...

Answer:

make sure the mysql server is configured to allow connections from other computers, and that any firewals...

Read more

Mahesh at Yahoo! Answers Mark as irrelevant Undo

How to make MySql connect with Java?

So, I have a database in MySql, and i want to use the database in a java application. I dont know how to connect the two. The database in Sql is called "restaurants" I've tried the following code: Connection con = null; try { Class.forName...

Answer:

You must download the MySQL driver that will connect you with the DB by means of JDBC. Use this to connect...

Read more

mayi o at Yahoo! Answers Mark as irrelevant Undo

How do you force MySQL to use a better-performing secondary index without using FORCE INDEX?

We recently converted our database from MyISAM to InnoDB. Now, when looking at some EXPLAINs, the optimizer chooses to use Key: PRIMARY, instead of the better-performing secondary index it was using in MyISAM. How long, if ever, will it take MySQL to...

Answer:

It's not necessarily going to be better-performing to use a secondary index over PRIMARY in InnoDB,...

Read more

Bill Karwin at Quora Mark as irrelevant Undo

MySQL dump/import command

I am not interested in a collection of links to sites that offer all sorts of explanations of all the command line switches for doing this (I could find these myself). I want a researcher who knows the answer with confidence to respond to this question...

Answer:

Hello, I manage a couple forums in MySQL which have different tables & data which need to be backed...

Read more

mork-ga at Google Answers Mark as irrelevant Undo

What is the optimal way to store and index a GUID field in MySQL (InnoDB)?

I'm currently retro-fitting an InnoDB-based MySQL table with GUIDs. In the short-term, I'll be assigning each existing record a GUID and indexing on it (in the long-term, I'll be migrating to a K-V store). I have two optimizations in mind, and I'm wondering...

Answer:

Regarding option #1: I don't understand how that would help. The B-tree data structure stores the least...

Read more

Bill Karwin at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.