Download Document 7760007

yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts

Object-relational impedance mismatch wikipedia, lookup

Microsoft SQL Server wikipedia, lookup

Clusterpoint wikipedia, lookup

Open Database Connectivity wikipedia, lookup

Relational model wikipedia, lookup

Database model wikipedia, lookup

Getting Started with MySQL
Whichever method and operating system you use, you'll end up at a command
line, ready to run the MySQL client program and connect to your MySQL server.
Here's what you should type:
mysql -h hostname –u username -p
You need to replace hostname with the host name or IP address of the computer
on which the MySQL server is running. If the client program is run on the same
computer as the server, you can actually leave off the -h hostname part of the
command instead of typing -h localhost or –h username should be
your MySQL user name. If you installed the MySQL server yourself, this will
just be root. If you're using your Web host's MySQL server, this should be the
MySQL user name they assigned you.
The -p argument tells the program to prompt you for your password, which it
should do as soon as you enter the command above. If you set up the MySQL
server yourself, this password is the root password you chose in Chapter 1. If
you're using your Web host's MySQL server, this should be the MySQL password
they gave you.
If you typed everything properly, the MySQL client program will introduce itself
and then dump you on the MySQL command line:
Now, the MySQL server can actually keep track of more than one database. This
allows a Web host to set up a single MySQL server for use by several of its subscribers , for example. So your next step should be to choose a database with
which to work. First, let's retrieve a list of databases on the current server. Type
this command (don't forget the semicolon!), and press Enter.
MySQL will show you a list of the databases on the server. If this is a brand new
server (i.e. if you installed this server yourself in Chapter 1), the list should look
like this:
| Database |
| mysql
| test
2 rows in set (0.11 sec)