answersLogoWhite

0

MySQL

MySQL is a Relational Database Management System. It was first released in 1995 and is most commonly used with the PHP programming language. MySQL is open source and 100% free to use.

500 Questions

How do you insert an image into MySQL using a BLOB?

User Avatar

Asked by Wiki User

There is a pretty solid tutorial here http://www.mysqltutorial.org/php-mysql-blob/ if you are using PDO. Without seeing your database table structure, it is hard to know what the propoer approach would be for your situation

What is decomposition in database management system?

User Avatar

Asked by Wiki User

We can explain the given information using smaller amount of dats's by using decomposition. also, we can get separate details.

How is a database view different from tables?

User Avatar

Asked by Wiki User

A database view is a dynamic table compared to the 'fixed' ones.

A view contains a select statement, which dynamically updates the table everytime the view is looked at and the data has changed. Since these queries are compiled they will be faster than normal queries.

Example:

Table A:

ID, Integer

FullName, String

Table B:

AID, Integer

Address, String

You would like to find the address for each person.

Instead of making a long select each time you want a specific address for a specific person. You could make a select, that joins the data, make it into a view, and then use the View afterwards. Like:

SELECT a.id, a.fullname, b.address FROM a, b WHERE a.id = b.aid;

This will be your view, tView. Now the data:

SELECT * FROM tView WHERE fullname = 'John Randomness'.

Is MySQL DBMS or RDBMS?

User Avatar

Asked by Wiki User

AnswerMySQL, like most modern Database Management Systems is based on the relational model. So it is a RDBMS (Relational Database Management System).

How do you backup and restore mySQL Database using PHP scripts?

User Avatar

Asked by Wiki User

You have to create two scripts, one for export and one for import. Data you get from database don't have to be in specific format, as long as you store whole information at all times.

You will have to make an export script, that basically SELECTs all the data of all tables you want to backup. Those data can be stored for example in a TXT file. It is very important that you save all the information about a data (e.g. from which table these data come from, what is the data context, and so on).

When you need to import data to a new database, you can read a TXT file, create a database structure using SQL function CREATE TABLE and then import read data using SQL command INSERT.

It's considered the best solution to encapsulate export and import features into functions.

How do you create a table?

User Avatar

Asked by Wiki User

It depends on the database software. General syntax is:

create table TABLENAME define columns (data type, not null)

What is the correct way to connect to a MySQL database?

User Avatar

Asked by Wiki User

Simple way to connect to mysql server using PHP..

$hostname = 'localhost';

$username = 'root';

$password = 'anypassword';

//Connecting to mysql server..

$connect = mysql_connect($hostname, $username, $password);

if(!$connect)

{

die('Connection Failed'. mysql_error());

}

//Selecting the database..

$select = mysql_select_db('any_database_name');

if(!$select)

{

die('Database not Selected'. mysql_error());

}

?>

What is the easiest way to learn Espanol?

User Avatar

Asked by Wiki User

Go to Mexican speaking restaurants as often as possible. Watch as many shows and movies in Spanish as you can, also the children show Dora The Explorer is a great way for some people to learn the language. Some teachers believe that the best way to learn any language is to give a spelling test of some sort every other day, but that is actually the worst way to learn. Te best way is to learn the language is by taking a test at the end of every week.

Sequence diagram for online bus reservation?

User Avatar

Asked by Wiki User

digrams for public transportation

What are the diffeneces between a files processing system and a Data base management system?

User Avatar

Asked by Wiki User

  • A database coordinates the physical and logical access to the data; a file-processing system only coordinates physical access to the data
  • A DBMS reduces the amount of data duplication
  • A DBMS is designed to allow flexibility in what queries give access to the data, where a file-processing system only allows pre-determined access to data (by specific compiled programs)
  • A DBMS is designed to coordinate and permit multiple users to access data at the same time. A file processing system is much more restrictive in simultaneous data access

: http://www.answers.com/in%20dbms%20difference%20between%20file%20processing%20and%20database%20system

Disadvantages of file management system?

User Avatar

Asked by Wiki User

We may say its disadvantages are:

1. Unauthorized user can find your files easily.

2. Hacker can take advantage your computer file system if it is not password protected or encrypted.

What is database server and how they works?

User Avatar

Asked by AnshulSAINIgp2037

A database is a collection of tables in which large quantities of data (information) can be stored. The question and answer you are looking at right now are both stored in a database, for example.

Databases are used by applications (like websites) to store and retrieve data.

How does Apache MySQL and PHP work together?

User Avatar

Asked by Wiki User

Let me answer from less 'technicall' point of view.

Apache is the HTTP server. It gets the HTTP requests and answers with the HTML code. PHP is used to generate this HTML dynamically on server side. MySQL is used by PHP for getting the data.

Once the Apache HTTP server gets the request for the page with php (or php3, php4, phtml or whatever is configured in Apache's config file), it calls PHP interpreter to generate HTML. Then this HTML is returned to the client - internet browser which sent HTTP request.

PHP has got an access to MySQL DB via several APIs. This simply means, that you can just call some function in PHP script to select, import update or delete some data in a table of DB. You can also maintain the DB, create, delete new tables a.s.o. There is a lot of functions for that ;)

What is the difference between a simple query and a complex query?

User Avatar

Asked by Wiki User

A simple search is one based on a single term or criterion.

ER Diagram for a railway management system?

User Avatar

Asked by Wiki User

there are three entities involved station railway and passengers railway has station nd attributes of railway are railway no. railway name railway type and railway seats and station attributes are waiting room,office,canteen,station id

What is total participation in database management?

User Avatar

Asked by Wiki User

Participation (or optionality) concerns the involvement of entities i a relationship. Participation is about exceptions to the rule. An entity's participation is optional if there is a least one instance of an entity which does not participate in the relationship. An entity participation is mandatory if all instances of an entity must participate in the relationship.

What is an entity?

User Avatar

Asked by Wiki User

In VHDL, entity is the keyword for defining a new object. In SGML and its derived markup languages HTML and XML, an entity is a named body of data associated with a document. Once defined, an entity can be referenced any number of times within the document, via entity references. An entity typically consists of a sequence of one or more characters, either encapsulated within a declaration of the entity's existence, or encoded and stored externally in a text file. Such entities and their references are comparable to macros and include files in programming languages. However, entities don't necessarily have to contain parseable text; they may also be binary files that are included in a document only by reference, with the entity name as the value of an ENTITY-type attribute.

Answer:

An entity is something that has a distinct, separate existence, though it need not be a material existence. In particular, abstractions and legal fictions are usually regarded as entities. In general, there is also no presumption that an entity is animate. Entities are used in system developmental models that display communications and internal processing of, say, documents compared to order processing.

An entity could be viewed as a set containing subsets. In philosophy, such sets are said to be abstract objects.

Sometimes, the word entity is used in a general sense of a being, whether or not the referent has material existence; e.g., is often referred to as an entity with no corporeal form, such as a language. It is also often used to refer to ghosts and other spirits. Taken further, entity sometimes refers to existence or being itself. For example, the former U.S. diplomat George F. Kennan once said that "the policy of the government of the United States is to seek . . . to preserve Chinese territorial and administrative entity.

Answer:

An entity is a legally recognized and formally structured grouping of people focused on some common cause or objective.

Examples

Here are some examples of entities:

SIL

an SIL branch

UNESCO

What is an index in database?

User Avatar

Asked by Wiki User

Oracle includes numerous data structures to improve the speed of Oracle SQL queries. Oracle includes many new indexing algorithms that dramatically increase the speed with which Oracle queries are serviced like b-tree index, bitmap indexes, function-based indexes, and index-only tables (IOTs


Oracle uses indexes to avoid the need for large-table, full-table scans and disk sorts, which are required when the SQL optimizer cannot find an efficient way to service the SQL query. I begin our look at Oracle indexing with a review of standard Oracle b-tree index methodologies.

What is the maximum database storage capacity of MySQL?

User Avatar

Asked by Wiki User

It all depends on the type of MySQL database you wish to use and also the operating system the server has. Most of the restraints are due to the max file size the operating system can store. The limits are done by table size rather than the database size as a whole.

  • Win 32 w/ FAT/FAT32 - 2GB/4GB
  • Win 32 w/ NTFS - 2TB (possibly larger)
  • Linux 2.2-Intel 32-bit - 2GB (LFS: 4GB)
  • Linux 2.4+ - (using ext3 file system) 4TB
  • Solaris 9/10 - 16TB
  • MacOS X w/ HFS+ - 2TB
  • NetWare w/NSS file system - 8TB

InnoDB tables are often split up into multiple files to allow larger tables, this is known as a tablespace. The maximum table space is 64TB.

MyISAM tables default size is at 4GB, but this can be changed to a maximum of 65,536TB.

What is Schema in the term of Database Management System?

User Avatar

Asked by Wiki User

Schema means structure of the databse. Like, tables, constraints, relation

What is difference between MySQL server MsSQL?

User Avatar

Asked by Wiki User

MSSQL is the abbreviation for the Server system Microsoft has.

Compared to MySQL, which is the SQL server system that is open source, maintained by the MySQL company (Now owned by Sun).

Describe the main characteristics of the database approach and contrast it with the file-based approach?

User Avatar

Asked by Wiki User

The Database Approach has four common characteristics. These are: Self-describing nature, support multiple user view of data, share the data and multiple user transaction processing and insulation between data and data abstraction.

Explain different types of attributes with example in DBMS.?

User Avatar

Asked by Wiki User

Different types of attributes in DBMS are:

  • Key or non key attributes
  • Required or optional Attributes
  • Simple or composite Attributes
  • Single-valued and multi-valued Attributes
  • Stored, Coded or derived Attributes